File nxcleanup.spec of Package nxcleanup

Name      : nxcleanup
Version   : 0.4.1
Release   : 1%{?dist}
Packager  : Urs Beyerle <urs.beyerle@env.ethz.ch>
Summary   : Clean up dead NX sessions
License   : GPL
Group     : System
Source0   : nxcleanup
Source1   : nxcleanup.cron
Source2   : nxcleanup.sh
Source3   : nxcleanup.csh
Source4   : nxclean
Source5   : nxwatch_cron
Source6   : nxwatch
BuildRoot : %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch : noarch
Requires  : NX

%description
Tries to clean up dead NX sessions.


%prep
echo

%build
echo 

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
mkdir -p $RPM_BUILD_ROOT/etc/cron.d
mkdir -p $RPM_BUILD_ROOT/usr/sbin
mkdir -p $RPM_BUILD_ROOT/usr/bin

cp -a %{SOURCE0} $RPM_BUILD_ROOT/usr/sbin/
cp -a %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/
cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d/
cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d/
cp -a %{SOURCE4} $RPM_BUILD_ROOT/usr/bin/
cp -a %{SOURCE5} $RPM_BUILD_ROOT/etc/cron.d/
cp -a %{SOURCE6} $RPM_BUILD_ROOT/usr/bin/


%clean
rm -rf $RPM_BUILD_ROOT


%files
%attr(700,root,root) /usr/sbin/nxcleanup
%attr(644,root,root) /etc/cron.d/nxcleanup.cron
%attr(644,root,root) /etc/cron.d/nxwatch_cron
%attr(755,root,root) /etc/profile.d/nxcleanup.*
%attr(755,root,root) /usr/bin/nxclean
%attr(755,root,root) /usr/bin/nxwatch


%changelog
* Fri Jan 16 2009 Urs Beyerle <urs.beyerle@env.ethz.ch> - 0.4.1-1
- bug fixes

* Wed Jul 09 2008 Urs Beyerle <urs.beyerle@psi.ch> - 0.4-1
- add /usr/bin/nxwatch and /etc/cron.d/nxwatch_cron

* Mon Jun 16 2008 Urs Beyerle <urs.beyerle@psi.ch> - 0.3-1
- update /usr/sbin/nxcleanup
- update /usr/bin/nxclean

* Thu Jun 12 2008 Urs Beyerle <urs.beyerle@psi.ch> - 0.2-1
- add /usr/bin/nxclean (a script for the user to clean all his
  processes and sessions on the system)
- update /usr/sbin/nxcleanup
 
* Wed Mar 19 2008 Urs Beyerle <urs.beyerle@psi.ch> - 0.1-1
- inital build.
openSUSE Build Service is sponsored by