]> git.pld-linux.org Git - packages/fcron.git/commitdiff
This commit was manufactured by cvs2git to create branch 'AC-branch'. AC-branch
authorcvs2git <feedback@pld-linux.org>
Wed, 6 Feb 2008 20:13:11 +0000 (20:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Sprout from master 2007-01-22 08:54:24 UTC Jakub Bogusz <qboosh@pld-linux.org> '- en fix'
Cherrypick from master 2008-02-06 20:13:11 UTC Elan Ruusamäe <glen@pld-linux.org> '- never use '<=' in trigger comparision (well just drop old triggers); rel 2':
    fcron-configure.patch -> 1.2
    fcron.spec -> 1.51

fcron-configure.patch
fcron.spec

index d09c141ba30f863ae0b302585ddeefa2e18bcda6..a4fd42c205775f83a572c52320131c233f15e11c 100644 (file)
@@ -1,17 +1,13 @@
-diff -urN fcron-3.0.0.org/configure.in fcron-3.0.0/configure.in
---- fcron-3.0.0.org/configure.in       2005-09-09 20:06:34.000000000 +0000
-+++ fcron-3.0.0/configure.in   2006-01-23 12:54:08.489340626 +0000
-@@ -154,13 +154,8 @@
+--- fcron-3.0.3/configure.in~  2007-06-03 23:24:08.000000000 +0200
++++ fcron-3.0.3/configure.in   2007-06-18 00:30:02.000000000 +0200
+@@ -199,10 +199,6 @@
      ;;
    *)
-     AC_MSG_CHECKING(sendmail)
--    if test -x "$withval"; then
-       AC_DEFINE_UNQUOTED(SENDMAIL, "$withval")
-       AC_MSG_RESULT($withval)
--    else
+     SENDMAIL=$withval
+-    if test $fcron_enable_checks = 'yes' -a ! -x "$withval"; then
 -      AC_MSG_ERROR([
 -File $withval is not an executable file])
 -    fi
      ;;
-   esac ], [
  AC_PATH_PROG(SENDMAIL, sendmail, , $PATH:/usr/lib:/usr/sbin )
+   esac ]
+ )
index 9ea82a26335657690d40b02db10c7e0dd88c05fa..0a0d0f83361304762bf958fb6fe4d6966c160fca 100644 (file)
@@ -1,12 +1,14 @@
+# TODO:
+# - check -mail_output_only_if_there_is_output.patch. I'm not sure we need it in >= 3.0.4 version
 Summary:       A periodical command scheduler which aims at replacing Vixie Cron
-Summary(pl):   Serwer okresowego uruchamiania poleceñ zastêpuj±cy Vixie Crona
+Summary(pl.UTF-8):     Serwer okresowego uruchamiania poleceń zastępujący Vixie Crona
 Name:          fcron
-Version:       3.0.2
-Release:       1
-License:       GPL
+Version:       3.0.4
+Release:       2
+License:       GPL v2+
 Group:         Daemons
 Source0:       http://fcron.free.fr/archives/%{name}-%{version}.src.tar.gz
-# Source0-md5: f35e6af41d356ebcb38882f86a14fb94
+# Source0-md5: 5a26a1dfd91fdc7e87401e98aef870e6
 Source1:       %{name}.init
 Source2:       cron.logrotate
 Source3:       cron.sysconfig
@@ -15,8 +17,8 @@ Source5:      %{name}.pam
 Source6:       %{name}.conf
 Source7:       %{name}tab.pam
 Source8:       %{name}.systab
-Patch0:                %{name}-mail_output_only_if_there_is_output.patch
-Patch1:                %{name}-configure.patch
+Patch0:                %{name}-configure.patch
+Patch1:                %{name}-Makefile.patch
 URL:           http://fcron.free.fr/
 # configure tests -x (check can be removed, just like sendmail)
 BuildRequires: /bin/vi
@@ -36,12 +38,10 @@ Requires:   /bin/run-parts
 Requires:      psmisc >= 20.1
 Requires:      rc-scripts
 Provides:      crondaemon
-Provides:      crontabs >= 1.7
+Provides:      crontabs = 1.7
 Provides:      group(crontab)
+Obsoletes:     crondaemon
 Obsoletes:     crontabs
-Obsoletes:     hc-cron
-Obsoletes:     mcron
-Obsoletes:     vixie-cron
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -53,15 +53,15 @@ minutes of system up time or to do a job only once in a specified
 interval of time. You can also set a nice value to a job, run it
 depending on the system load average and much more !
 
-%description -l pl
-Fcron jest serwerem okresowego uruchamiania poleceñ maj±cym za cel
-zast±pienie Vixie Crona, posiadaj±cym zaimplementowane wiêkszo¶æ
-spo¶ród jego funkcji. Jednak¿e fcron nie zak³ada, ¿e system dzia³a
-ca³y czas, ani ¿e jest uruchamiany regularnie: mo¿na, na przyk³ad,
-kazaæ fcronowi uruchamiaæ zadanie co ka¿de x godzin y minut od
-uruchomienia systemu lub wykonywaæ zadanie dok³adnie raz w podanym
-okresie czasu. Umo¿liwia równie¿ ustawianie warto¶ci nice dla zadania,
-uruchamianie go w zale¿no¶ci od obci±¿enia systemu i du¿o wiêcej.
+%description -l pl.UTF-8
+Fcron jest serwerem okresowego uruchamiania poleceń mającym za cel
+zastąpienie Vixie Crona, posiadającym zaimplementowane większość
+spośród jego funkcji. Jednakże fcron nie zakłada, że system działa
+cały czas, ani że jest uruchamiany regularnie: można, na przykład,
+kazać fcronowi uruchamiać zadanie co każde x godzin y minut od
+uruchomienia systemu lub wykonywać zadanie dokładnie raz w podanym
+okresie czasu. Umożliwia również ustawianie wartości nice dla zadania,
+uruchamianie go w zależności od obciążenia systemu i dużo więcej.
 
 %prep
 %setup -q
@@ -96,11 +96,8 @@ install -d $RPM_BUILD_ROOT{/var/{log,spool/cron},%{_mandir}} \
        $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,sysconfig} \
        $RPM_BUILD_ROOT%{_sysconfdir}/{cron,cron.{d,hourly,daily,weekly,monthly},pam.d}
 
-%{__make} install \
+%{__make} install-staged \
        DESTDIR=$RPM_BUILD_ROOT \
-       DESTSBIN=$RPM_BUILD_ROOT%{_sbindir} \
-       DESTBIN=$RPM_BUILD_ROOT%{_bindir} \
-       DESTMAN=$RPM_BUILD_ROOT%{_mandir} \
        ROOTNAME=$(id -u) \
        ROOTGROUP=$(id -g) \
        USERNAME=$(id -u) \
@@ -123,16 +120,16 @@ install %{SOURCE8} $RPM_BUILD_ROOT/etc/cron.hourly/fcron.systab
 
 touch $RPM_BUILD_ROOT/var/log/cron
 
-cat > $RPM_BUILD_ROOT%{_sysconfdir}/cron/cron.allow << EOF
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/cron/cron.allow << 'EOF'
 # cron.allow   This file describes the names of the users which are
 #              allowed to use the local cron daemon
 root
 EOF
 
-cat > $RPM_BUILD_ROOT%{_sysconfdir}/cron/cron.deny << EOF2
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/cron/cron.deny << 'EOF'
 # cron.deny    This file describes the names of the users which are
 #              NOT allowed to use the local cron daemon
-EOF2
+EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -169,7 +166,7 @@ if [ "$1" = "2" ]; then
 fi
 
 /sbin/chkconfig --add crond
-%service crond restart "cron daemon"
+%service crond restart "Cron Daemon"
 
 umask 027
 touch /var/log/cron
@@ -191,9 +188,9 @@ if [ "$1" = "0" ]; then
                chown $USER:crontab /var/spool/cron/$USER >/dev/null 2>&1
                chmod 600 /var/spool/cron/$USER >/dev/null 2>&1
        done
-       rm -f /var/spool/cron/rm\.*
+       rm -f /var/spool/cron/rm.*
        rm -f /var/spool/cron/fcrontab.sig
-       rm -f /var/spool/cron/new\.*
+       rm -f /var/spool/cron/new.*
 fi
 
 %postun
@@ -202,54 +199,14 @@ if [ "$1" = "0" ]; then
        %groupremove crontab
 fi
 
-%triggerpostun -- vixie-cron <= 3.0.1-85
-for i in `/bin/ls /var/spool/cron 2>/dev/null`
-do
-       chown ${i} /var/spool/cron/${i} 2>/dev/null || :
-done
-/bin/chmod 660 /var/log/cron
-/bin/chgrp crontab /var/log/cron
-/bin/chmod 640 /etc/cron/cron.*
-/bin/chgrp crontab /etc/cron/cron.*
-
-%triggerpostun -- vixie-cron <= 3.0.1-73
-if [ -f /etc/cron.d/cron.allow.rpmsave ]; then
-       mv -f /etc/cron.d/cron.allow.rpmsave /etc/cron/cron.allow
-fi
-if [ -f /etc/cron.d/cron.allow ]; then
-       mv -f /etc/cron.d/cron.allow /etc/cron/cron.allow
-fi
-if [ -f /etc/cron.d/cron.deny.rpmsave ]; then
-       mv -f /etc/cron.d/cron.deny.rpmsave /etc/cron/cron.deny
-fi
-if [ -f /etc/cron.d/cron.deny ]; then
-       mv -f /etc/cron.d/cron.deny /etc/cron/cron.deny
-fi
-
-%triggerpostun -- vixie-cron <= 3.0.1-70
-if [ -f /etc/cron.allow ]; then
-       mv -f /etc/cron.allow /etc/cron/cron.allow
-fi
-if [ -f /etc/cron.deny ]; then
-       mv -f /etc/cron.deny /etc/cron/cron.deny
-fi
-
 %triggerpostun -- hc-cron
+# reinstall crond init.d links, which could be different
 /sbin/chkconfig --del crond
 /sbin/chkconfig --add crond
 
-%triggerpostun -- hc-cron <= 0.14-12
-for i in `/bin/ls /var/spool/cron 2>/dev/null`; do
-       chown ${i} /var/spool/cron/${i} 2>/dev/null || :
-done
-/bin/chmod 660 /var/log/cron
-/bin/chgrp crontab /var/log/cron
-/bin/chmod 640 /etc/cron/cron.*
-/bin/chgrp crontab /etc/cron/cron.*
-
 %files
 %defattr(644,root,root,755)
-%doc doc/en/HTML doc/en/txt/{faq.txt,changes.txt,readme.txt,thanks.txt,todo.txt} 
+%doc doc/en/HTML doc/en/txt/{faq.txt,changes.txt,readme.txt,thanks.txt,todo.txt}
 %attr(750,root,crontab) %dir %{_sysconfdir}/cron*
 %attr(750,root,root) %{_sysconfdir}/cron.hourly/%{name}.systab
 %attr(640,root,crontab) %config(noreplace) /etc/cron.d/crontab
This page took 0.053287 seconds and 4 git commands to generate.