]> git.pld-linux.org Git - packages/anacron.git/commitdiff
- partialy rewrited.
authorkloczek <kloczek@pld-linux.org>
Fri, 19 May 2000 11:30:00 +0000 (11:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    anacron.spec -> 1.2

anacron.spec

index 39133ea8f51c39faeabe9a61327bc4f6f35f5eeb..1d232bce168a9c6b24ea42ac22517bcfe4e31c18 100644 (file)
@@ -1,5 +1,5 @@
-Summary:       A cron-like program that can run jobs lost during downtime.
-Summary(pl):   Wersja crona z mo¿liwo¶ci± uruchamiania zapomnianych procesów.
+Summary:       A cron-like program that can run jobs lost during downtime
+Summary(pl):   Wersja crona z mo¿liwo¶ci± uruchamiania zapomnianych procesów
 Name:          anacron
 Version:       2.1
 Release:       6
 Name:          anacron
 Version:       2.1
 Release:       6
@@ -14,25 +14,27 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Anacron (like `anac(h)ronistic') is a periodic command scheduler. It
 
 %description
 Anacron (like `anac(h)ronistic') is a periodic command scheduler. It
-executes commands at intervals specified in days. Unlike cron, it does not
-assume that the system is running continuously. It can therefore be used to
-control the execution of daily, weekly and monthly jobs (or anything with a
-period of n days), on systems that don't run 24 hours a day. When installed
-and configured properly, Anacron will make sure that the commands are run
-at the specified intervals as closely as machine-uptime permits.
-
-This package is pre-configured to execute the daily jobs of the Red Hat
-Linux system. You should install this program if your system isn't powered
-on 24 hours a day to make sure the maintenance jobs of other Red Hat Linux
-packages are executed each day.
+executes commands at intervals specified in days. Unlike cron, it does
+not assume that the system is running continuously. It can therefore
+be used to control the execution of daily, weekly and monthly jobs (or
+anything with a period of n days), on systems that don't run 24 hours
+a day. When installed and configured properly, Anacron will make sure
+that the commands are run at the specified intervals as closely as
+machine-uptime permits.
+
+This package is pre-configured to execute the daily jobs of the Red
+Hat Linux system. You should install this program if your system isn't
+powered on 24 hours a day to make sure the maintenance jobs of other
+Red Hat Linux packages are executed each day.
 
 %description -l pl
 
 %description -l pl
-cron to standardowy unixowy program, okresowo uruchamiaj±cy zadane przez
-u¿ytkowników programy. anacron jest wersj± crona umo¿liwiaj±c± uruchamianie
-procesów które normalnie by siê nie wykona³y z powodu wy³±czenia maszyny.
-Jest to doskona³e rozwi±zanie dla komputerów domowych które nie s± w³±czone
-24h na dobê. Uwaga - anacron nie zastêpuje crona a jedynie go wspomaga! Nie
-ma mo¿liwo¶ci uruchamiania procesów np co godzinê
+cron to standardowy unixowy program, okresowo uruchamiaj±cy zadane
+przez u¿ytkowników programy. anacron jest wersj± crona umo¿liwiaj±c±
+uruchamianie procesów które normalnie by siê nie wykona³y z powodu
+wy³±czenia maszyny. Jest to doskona³e rozwi±zanie dla komputerów
+domowych które nie s± w³±czone 24h na dobê. Uwaga - anacron nie
+zastêpuje crona a jedynie go wspomaga! Nie ma mo¿liwo¶ci uruchamiania
+procesów np co godzinê
 
 %prep
 %setup -q
 
 %prep
 %setup -q
@@ -41,17 +43,18 @@ ma mo
 make CFLAGS="$RPM_OPT_FLAGS"
 
 %install
 make CFLAGS="$RPM_OPT_FLAGS"
 
 %install
-install -d $RPM_BUILD_ROOT/{etc/,usr/sbin/,usr/share/man/man5,usr/share/man/man8/}
-install -d $RPM_BUILD_ROOT/var/spool/anacron/
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%_{sbindir},%{_mandir}/man{5,8}} \
+       $RPM_BUILD_ROOT/{var/spool/anacron,etc/rc.d/init.d}
 
 
-#
-install anacron $RPM_BUILD_ROOT%{_sbindir}
+install -s anacron $RPM_BUILD_ROOT%{_sbindir}
 install anacron.8 $RPM_BUILD_ROOT%{_mandir}/man8/
 install anacrontab.5 $RPM_BUILD_ROOT%{_mandir}/man5/
 install anacron.8 $RPM_BUILD_ROOT%{_mandir}/man8/
 install anacrontab.5 $RPM_BUILD_ROOT%{_mandir}/man5/
-install %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/anacron
 
 
-for i in cron.daily cron.weekly cron.monthly;do
-install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/$i/
+for i in cron.daily cron.weekly cron.monthly; do
+install  -d $RPM_BUILD_ROOT%{_sysconfdir}/$i/
 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/$i/0anacron
 #!/bin/sh
 #
 cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/$i/0anacron
 #!/bin/sh
 #
@@ -68,10 +71,8 @@ anacron -u $i
 EOF
 done
 
 EOF
 done
 
-strip $RPM_BUILD_ROOT/%{_sbindir}/anacron
-
-install -d $RPM_BUILD_ROOT/etc/rc.d/init.d/
-install $RPM_SOURCE_DIR/anacron.init $RPM_BUILD_ROOT/etc/rc.d/init.d/anacron
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man{5,8}/* \
+       NEWS README
 
 %post
 /sbin/chkconfig --add anacron
 
 %post
 /sbin/chkconfig --add anacron
@@ -84,14 +85,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 
 %files
 %defattr(644,root,root,755)
-%doc COPYING NEWS README
+%doc *.gz
+%attr(755,root,root) %{_sbindir}/anacron
+%attr(754,root,root) /etc/rc.d/init.d/*
 %config %{_sysconfdir}/anacrontab
 %dir /var/spool/anacron/
 %config %{_sysconfdir}/anacrontab
 %dir /var/spool/anacron/
-%{_mandir}/man5/*
-%{_mandir}/man8/*
-%defattr(755,root,root,755)
-%config /etc/rc.d/init.d/*
-%attr(755,root,root) %{_sbindir}/anacron
 %config %{_sysconfdir}/cron.daily/0anacron
 %config %{_sysconfdir}/cron.monthly/0anacron
 %config %{_sysconfdir}/cron.weekly/0anacron
 %config %{_sysconfdir}/cron.daily/0anacron
 %config %{_sysconfdir}/cron.monthly/0anacron
 %config %{_sysconfdir}/cron.weekly/0anacron
+%{_mandir}/man[58]/*
This page took 0.083267 seconds and 4 git commands to generate.