FreeBSD Bugzilla – Attachment 56838 Details for
Bug 85817
update to fcron port
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.dat
file.dat (text/plain; charset="us-ascii"), 11.78 KB, created by
huntting
on 2005-10-02 19:06:17 UTC
(
hide
)
Description:
file.dat
Filename:
MIME Type:
Creator:
huntting
Created:
2005-10-02 19:06:17 UTC
Size:
11.78 KB
patch
obsolete
>diff -ruPN ../fcron/Makefile ./Makefile >--- ../fcron/Makefile Tue Sep 20 08:20:28 2005 >+++ ./Makefile Sun Oct 2 11:38:16 2005 >@@ -1,54 +1,49 @@ > # ex:ts=8 > # New ports collection makefile for: fcron >-# Date created: Mar 1, 2001 >-# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org> >+# Date created: Oct 2 2005 >+# Whom: Brad Huntting <huntting@glarp.com> > # > # $FreeBSD: ports/sysutils/fcron/Makefile,v 1.18 2005/09/20 14:20:28 erwin Exp $ > # > > PORTNAME= fcron >-PORTVERSION= 2.1.0 >+PORTVERSION= 3.0.0 > CATEGORIES= sysutils > MASTER_SITES= ${MASTER_SITE_SUNSITE} \ > http://fcron.free.fr/ > MASTER_SITE_SUBDIR= system/daemons/cron > DISTNAME= ${PORTNAME}-${PORTVERSION}.src > >-MAINTAINER= ports@FreeBSD.org >-COMMENT= Fcron is a periodical command scheduler >+MAINTAINER= huntting@glarp.com >+COMMENT= fcron is a periodic command scheduler > >-NO_PACKAGE= "Runaway package build" >- >-USE_AUTOCONF_VER= 213 >+USE_RC_SUBR= fcron >+USE_AUTOCONF_VER= 259 >+USE_GMAKE= yes > USE_PERL5= yes >-CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \ >+CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-boot-install=no \ > --with-rootname=root --with-rootgroup=wheel \ > --with-answer-all=yes > >-.if !defined(NOPORTDOCS) >+WRKSRC= ${WRKDIR}/fcron-${PORTVERSION} >+ >+.if defined(NOPORTDOCS) >+CONFIGURE_ARGS+= --with-docdir=${WRKDIR}/docs >+.else > CONFIGURE_ARGS+= --with-docdir=${DOCSDIR} >-PLIST_SUB= PORTVERSION=${PORTVERSION} > .endif > >-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} >- >-MAN1= fcrontab.1 >-MAN3= bitstring.3 >-MAN5= fcrontab.5 fcron.conf.5 >-MAN8= fcron.8 >+pre-su-install: >+ ${INSTALL} -m 644 ${WRKSRC}/files/fcron.conf ${LOCALBASE}/etc/fcron.conf.dist >+ ${INSTALL} -m 640 ${WRKSRC}/files/fcron.allow ${LOCALBASE}/etc/fcron.allow.dist >+ ${INSTALL} -m 640 ${WRKSRC}/files/fcron.deny ${LOCALBASE}/etc/fcron.deny.dist > > post-install: >-.if !defined(NOPORTDOCS) >- @${MKDIR} ${DOCSDIR} >- @${INSTALL_DATA} ${WRKSRC}/doc/FAQ ${DOCSDIR} >- @${INSTALL_DATA} ${WRKSRC}/files/fcron.pam ${DOCSDIR} >- @${INSTALL_DATA} ${WRKSRC}/files/fcrontab.pam ${DOCSDIR} >-.endif >-.for i in allow deny conf >-.if !exists(${PREFIX}/etc/fcron.$i) >- @${CP} -p ${PREFIX}/etc/fcron.$i.dist ${PREFIX}/etc/fcron.$i >+ ${CHGRP} fcron ${LOCALBASE}/etc/fcron.allow.dist >+ ${CHGRP} fcron ${LOCALBASE}/etc/fcron.deny.dist >+.if ! defined(NOPORTDOCS) >+ ${INSTALL} -m 644 ${FILESDIR}/sample-fcrontab-* ${DOCSDIR}/ > .endif >-.endfor > @${CAT} ${PKGMESSAGE} > > .include <bsd.port.mk> >diff -ruPN ../fcron/distinfo ./distinfo >--- ../fcron/distinfo Tue Mar 30 20:11:22 2004 >+++ ./distinfo Sun Oct 2 11:36:56 2005 >@@ -1,2 +1,2 @@ >-MD5 (fcron-2.1.0.src.tar.gz) = 054a21772e06ea9b37243c34d38fd9fb >-SIZE (fcron-2.1.0.src.tar.gz) = 147802 >+MD5 (fcron-3.0.0.src.tar.gz) = 55e92f8536c8b52c9b73b96a6a3e0fe3 >+SIZE (fcron-3.0.0.src.tar.gz) = 409015 >diff -ruPN ../fcron/files/fcron.in ./files/fcron.in >--- ../fcron/files/fcron.in Wed Dec 31 17:00:00 1969 >+++ ./files/fcron.in Sun Oct 2 11:36:56 2005 >@@ -0,0 +1,19 @@ >+#!/bin/sh >+# >+# $FreeBSD: src/etc/rc.d/cron,v 1.5.2.1 2004/10/10 09:50:53 mtm Exp $ >+# >+ >+# PROVIDE: fcron >+# REQUIRE: LOGIN >+# BEFORE: securelevel >+# KEYWORD: shutdown >+ >+. /etc/rc.subr >+ >+name="fcron" >+rcvar="`set_rcvar`" >+command="%%LOCALBASE%%/sbin/${name}" >+pidfile="/var/run/${name}.pid" >+ >+load_rc_config $name >+run_rc_command "$1" >diff -ruPN ../fcron/files/patch-Makefile.in ./files/patch-Makefile.in >--- ../fcron/files/patch-Makefile.in Sat Jan 26 19:47:27 2002 >+++ ./files/patch-Makefile.in Wed Dec 31 17:00:00 1969 >@@ -1,29 +0,0 @@ >---- Makefile.in.org Wed Jan 23 21:49:55 2002 >-+++ Makefile.in Wed Jan 23 21:50:52 2002 >-@@ -102,23 +102,20 @@ >- if test ! -d $(DESTMAN)/man3; then $(INSTALL) -g $(ROOTGROUP) -o $(ROOTNAME) -m 755 -d $(DESTMAN)/man3 ; fi >- if test ! -d $(DESTMAN)/man5; then $(INSTALL) -g $(ROOTGROUP) -o $(ROOTNAME) -m 755 -d $(DESTMAN)/man5 ; fi >- if test ! -d $(DESTMAN)/man8; then $(INSTALL) -g $(ROOTGROUP) -o $(ROOTNAME) -m 755 -d $(DESTMAN)/man8 ; fi >-- if test ! -d $(DESTDOC)/fcron-$(VERSION); then $(INSTALL) -g $(ROOTGROUP) -o $(ROOTNAME) -m 755 -d $(DESTDOC)/fcron-$(VERSION) ; fi >- # create the spool dir (and change its mode if it already exists) >- $(INSTALL) -g $(GROUPNAME) -o $(USERNAME) -m 770 -d $(FCRONTABS) >- >- $(INSTALL) -g $(ROOTGROUP) -o $(ROOTNAME) -m 110 -s fcron $(DESTSBIN) >- $(INSTALL) -g $(GROUPNAME) -o $(USERNAME) -m 6111 -s fcrontab $(DESTBIN) >- $(INSTALL) -g $(ROOTGROUP) -o $(ROOTNAME) -m 6111 -s fcronsighup $(DESTBIN) >-- test -f $(ETC)/fcron.allow || test -f $(ETC)/fcron.deny || $(INSTALL) -m 640 -o $(ROOTNAME) -g $(GROUPNAME) $(SRCDIR)/files/fcron.allow $(SRCDIR)/files/fcron.deny $(ETC) >-- test -f $(ETC)/fcron.conf || $(INSTALL) -m 640 -o $(ROOTNAME) -g $(GROUPNAME) $(SRCDIR)/files/fcron.conf $(ETC) >-- test "${USEPAM}" = "0" || $(SRCDIR)/script/install-pam-conf $(SRCDIR) $(ETC) $(ROOTNAME) $(ROOTGROUP) "$(INSTALL)" >-+ $(INSTALL) -m 640 -o $(ROOTNAME) -g $(GROUPNAME) $(SRCDIR)/files/fcron.allow $(ETC)/fcron.allow.dist >-+ $(INSTALL) -m 640 -o $(ROOTNAME) -g $(GROUPNAME) $(SRCDIR)/files/fcron.deny $(ETC)/fcron.deny.dist >-+ $(INSTALL) -m 640 -o $(ROOTNAME) -g $(GROUPNAME) $(SRCDIR)/files/fcron.conf $(ETC)/fcron.conf.dist >- $(INSTALL) -m 644 -o $(ROOTNAME) $(SRCDIR)/doc/fcron.8 $(DESTMAN)/man8 >- $(INSTALL) -m 644 -o $(ROOTNAME) $(SRCDIR)/doc/fcrontab.1 $(DESTMAN)/man1 >- $(INSTALL) -m 644 -o $(ROOTNAME) $(SRCDIR)/doc/fcrontab.5 $(DESTMAN)/man5 >- $(INSTALL) -m 644 -o $(ROOTNAME) $(SRCDIR)/doc/fcron.conf.5 $(DESTMAN)/man5 >- $(INSTALL) -m 644 -o $(ROOTNAME) $(SRCDIR)/doc/bitstring.3 $(DESTMAN)/man3 >-- $(INSTALL) -m 644 -o $(ROOTNAME) doc/README doc/LICENSE doc/CHANGES doc/*.html \ >-- $(DESTDOC)/fcron-$(VERSION)/ >- >- # in order to get correct rights when upgrading : >- find $(FCRONTABS) -type f \( -name "*.orig" -a ! -name "root.orig" \) -exec chown $(USERNAME):$(GROUPNAME) {} \; -exec chmod 640 {} \; >diff -ruPN ../fcron/files/patch-conf.c ./files/patch-conf.c >--- ../fcron/files/patch-conf.c Tue Dec 7 01:47:42 2004 >+++ ./files/patch-conf.c Wed Dec 31 17:00:00 1969 >@@ -1,9 +0,0 @@ >---- conf.c.orig Tue Dec 7 11:44:09 2004 >-+++ conf.c Tue Dec 7 11:44:32 2004 >-@@ -1086,5 +1086,6 @@ >- break ; >- >- next_file: >-+ ; >- } >- } >diff -ruPN ../fcron/files/patch-configure.in ./files/patch-configure.in >--- ../fcron/files/patch-configure.in Sat Aug 25 14:10:21 2001 >+++ ./files/patch-configure.in Wed Dec 31 17:00:00 1969 >@@ -1,22 +0,0 @@ >---- configure.in.orig Sun Jul 8 07:32:17 2001 >-+++ configure.in Sat Aug 25 14:36:05 2001 >-@@ -201,13 +201,13 @@ >- fi >- ;; >- *) >-- if test -d "$withval"; then >-+# if test -d "$withval"; then >- etcdir="$withval" >-- AC_MSG_RESULT($withval) >-- else >-- AC_MSG_ERROR([ >--Directory $withval does not exist]) >-- fi >-+# AC_MSG_RESULT($withval) >-+# else >-+# AC_MSG_ERROR([ >-+#Directory $withval does not exist]) >-+# fi >- ;; >- esac ], >- if test -d "/etc"; then >diff -ruPN ../fcron/files/patch-script::boot-install ./files/patch-script::boot-install >--- ../fcron/files/patch-script::boot-install Fri Jul 20 00:47:57 2001 >+++ ./files/patch-script::boot-install Wed Dec 31 17:00:00 1969 >@@ -1,11 +0,0 @@ >---- script/boot-install.orig Fri Jul 20 14:44:40 2001 >-+++ script/boot-install Fri Jul 20 14:44:48 2001 >-@@ -11,7 +11,7 @@ >- # the automatic answer >- # the src dir >- >--PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin" >-+PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin" >- if test -d /usr/ucb; then >- PATH=/usr/ucb:$PATH >- fi >diff -ruPN ../fcron/files/patch-script::gen-in.pl ./files/patch-script::gen-in.pl >--- ../fcron/files/patch-script::gen-in.pl Wed Dec 31 17:00:00 1969 >+++ ./files/patch-script::gen-in.pl Sun Oct 2 11:36:56 2005 >@@ -0,0 +1,8 @@ >+--- script/gen-in.pl.orig Wed Jun 16 14:36:38 2004 >++++ script/gen-in.pl Tue Sep 6 11:29:55 2005 >+@@ -1,4 +1,4 @@ >+-#!/usr/bin/perl >++#!/usr/local/bin/perl >+ >+ # - read define assignations in config.h >+ # - read variable assignations in Makefile >diff -ruPN ../fcron/files/patch-script::has_usrgrp.pl ./files/patch-script::has_usrgrp.pl >--- ../fcron/files/patch-script::has_usrgrp.pl Wed Dec 31 17:00:00 1969 >+++ ./files/patch-script::has_usrgrp.pl Sun Oct 2 11:36:56 2005 >@@ -0,0 +1,8 @@ >+--- script/has_usrgrp.pl.orig Wed Jun 16 14:36:38 2004 >++++ script/has_usrgrp.pl Tue Sep 6 11:30:21 2005 >+@@ -1,4 +1,4 @@ >+-#!/usr/bin/perl >++#!/usr/local/bin/perl >+ >+ # call getpwnam() or getgrnam() to check if user or group (given as arg) exists >+ # on the system (getpwnam() and getgrnam() use nsswitch.conf, so it works >diff -ruPN ../fcron/files/sample-fcrontab-operator ./files/sample-fcrontab-operator >--- ../fcron/files/sample-fcrontab-operator Wed Dec 31 17:00:00 1969 >+++ ./files/sample-fcrontab-operator Sun Oct 2 11:36:56 2005 >@@ -0,0 +1,9 @@ >+# Derived from the default /etc/crontab for FreeBSD >+# See fcrontab(5) for syntax and semantics >+# >+SHELL=/bin/sh >+PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin >+HOME=/var/log >+# >+# Save some entropy so that /dev/random can re-seed on boot. >+@ 11 /usr/libexec/save-entropy >diff -ruPN ../fcron/files/sample-fcrontab-root ./files/sample-fcrontab-root >--- ../fcron/files/sample-fcrontab-root Wed Dec 31 17:00:00 1969 >+++ ./files/sample-fcrontab-root Sun Oct 2 11:36:56 2005 >@@ -0,0 +1,20 @@ >+# Derived from the default /etc/crontab for FreeBSD >+# See fcrontab(5) for syntax and semantics >+# >+SHELL=/bin/sh >+PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin >+HOME=/var/log >+# >+@serial,lavg5(1.5) 5 /usr/libexec/atrun >+# >+# Rotate log files every hour, if necessary. >+%hourly * newsyslog >+# >+# Perform daily/weekly/monthly maintenance. >+%daily,serial * * periodic daily >+%weekly,serial * * periodic weekly >+%monthly,serial * * * periodic monthly >+# >+# Adjust the time zone if the CMOS clock keeps local time, as opposed to >+# UTC time. See adjkerntz(8) for details. >+1,31 0-5 * * * root adjkerntz -a >diff -ruPN ../fcron/pkg-descr ./pkg-descr >--- ../fcron/pkg-descr Thu Mar 1 09:33:18 2001 >+++ ./pkg-descr Sun Oct 2 11:36:56 2005 >@@ -8,4 +8,6 @@ > according to its time of execution, which is normally the same as > system up time. > >+This is the stable release. >+ > WWW: http://fcron.free.fr/ >diff -ruPN ../fcron/pkg-message ./pkg-message >--- ../fcron/pkg-message Sat Jan 26 19:47:25 2002 >+++ ./pkg-message Sun Oct 2 11:36:56 2005 >@@ -1,5 +1,11 @@ > >-This new version of fcron uses PAM support for authentication. >-Please refer to the fcron.pam and fcrontab.pam files in the >-documentation directory for configuring PAM. >+ To enable fcron, and disable the default system cron, add >+ the following lines to your /etc/rc.conf: >+ >+ fcron_enable="YES" >+ cron_enable="NO" >+ >+ and move any jobs in /etc/crontab to roots fcrontab(5) >+ entry. See DOCSDIR/sample-fcrontab-* for a translation of >+ the default freebsd /etc/crontab. > >diff -ruPN ../fcron/pkg-plist ./pkg-plist >--- ../fcron/pkg-plist Sat Jan 26 19:47:25 2002 >+++ ./pkg-plist Sun Oct 2 11:36:56 2005 >@@ -1,17 +1,18 @@ >+@unexec rmdir /var/spool/fcron || true >+bin/fcrondyn > bin/fcronsighup > bin/fcrontab >-sbin/fcron >-@unexec if cmp -s %D/etc/fcron.allow %D/etc/fcron.allow.dist; then rm -f %D/etc/fcron.allow; fi >+etc/fcron.allow > etc/fcron.allow.dist >-@exec [ -f %B/fcron.allow ] || cp %B/%f %B/fcron.allow >-@unexec if cmp -s %D/etc/fcron.deny %D/etc/fcron.deny.dist; then rm -f %D/etc/fcron.deny; fi >-etc/fcron.deny.dist >-@exec [ -f %B/fcron.deny ] || cp %B/%f %B/fcron.deny >-@unexec if cmp -s %D/etc/fcron.conf %D/etc/fcron.conf.dist; then rm -f %D/etc/fcron.conf; fi >+etc/fcron.conf > etc/fcron.conf.dist >-@exec [ -f %B/fcron.conf ] || cp %B/%f %B/fcron.conf >+etc/fcron.deny >+etc/fcron.deny.dist > etc/rc.d/fcron.sh >-%%PORTDOCS%%share/doc/fcron/FAQ >-%%PORTDOCS%%share/doc/fcron/fcron.pam >-%%PORTDOCS%%share/doc/fcron/fcrontab.pam >-%%PORTDOCS%%@unexec rmdir %D/share/doc/fcron 2>/dev/null || true >+man/man1/fcrondyn.1 >+man/man1/fcrontab.1 >+man/man5/fcron.conf.5 >+man/man5/fcrontab.5 >+man/man8/fcron.8 >+sbin/fcron >+%%PORTDOCS%%@unexec rm -rf %D/share/doc/fcron-3.0.0 2>/dev/null || true
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 85817
:
56837
| 56838