ports/92990: sysutils/fcron

Brad Huntting huntting at studious.glarp.com
Tue Feb 7 19:50:04 UTC 2006


>Number:         92990
>Category:       ports
>Synopsis:       sysutils/fcron
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 07 19:50:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Brad Huntting
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD studious.glarp.com 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Jan 26 10:33:54 MST 2006 root@:/usr/src/sys/i386/compile/STUDIOUS i386


	
>Description:
	The new stable release (3.0.1) of fcron:

	Changes to the port include:

		Update version from fcron version 3.0.0 to fcron
		version 3.0.1.  Changed MASTER_SITES and PORTVERSION
		appropriately.

		'fcrondyn' is now installed with the port.  This
		was previously disabled because it activated a bug
		which passed a bad timeval to select().

		French documentation should be installed if MANLANG=fr

		Added Installation reminder about installing pam
		files.  Since nothing works without them, should
		we just install the pam files in ${DESTDIR}/pam.d/
		(assuming they dont already exist)?

		fcron pseudouser and group are now created (if
		necessary) with uid,gid=247 (<1000).  This should
		prevent the fcron pseudouser from showing up as a
		regular user on login screens like kdm and gdm.

	
>How-To-Repeat:
	
>Fix:

------------------------------ cut here ------------------------------
diff -ruPN fcron.orig/Makefile fcron/Makefile
--- fcron.orig/Makefile	Thu Jan 26 10:12:52 2006
+++ fcron/Makefile	Tue Feb  7 12:03:02 2006
@@ -7,11 +7,12 @@
 #
 
 PORTNAME=	fcron
-PORTVERSION=	3.0.0
-PORTREVISION=	2
+PORTVERSION=	3.0.1
+PORTREVISION=	0
 CATEGORIES=	sysutils
 MASTER_SITES=	${MASTER_SITE_SUNSITE} \
-		http://fcron.free.fr/
+		http://fcron.free.fr/archives/ \
+		ftp://ftp.seul.org/pub/fcron/
 MASTER_SITE_SUBDIR=	system/daemons/cron
 DISTNAME=	${PORTNAME}-${PORTVERSION}.src
 
@@ -23,7 +24,7 @@
 USE_PERL5_BUILD=yes
 CONFIGURE_ARGS=	--with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
 		--with-rootname=root --with-rootgroup=wheel \
-		--with-docdir=${DOCSDIR} --with-fcrondyn=no
+		--with-docdir=${DOCSDIR}
 
 WRKSRC=		${WRKDIR}/fcron-${PORTVERSION}
 
@@ -36,12 +37,19 @@
 
 PORTDOCS=	*
 
+.if defined(MANLANG) && exists(${WRKSRC}/doc/${MANLANG})
+DOCSRC=		${WRKSRC}/doc/${MANLANG}
+.else
+DOCSRC=		${WRKSRC}/doc/en
+.endif
+
 pre-su-install:
 	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/fcron ${PREFIX}/sbin
 	${INSTALL_PROGRAM} -g fcron -o fcron -m 6111 ${WRKSRC}/fcrontab ${PREFIX}/bin
+	${INSTALL_PROGRAM} -g fcron -o fcron -m 6111 ${WRKSRC}/fcrondyn ${PREFIX}/bin
 	${INSTALL_PROGRAM} -g fcron -m 4110 ${WRKSRC}/fcronsighup ${PREFIX}/bin
 .for f in fcron.allow fcron.conf fcron.deny
 	${INSTALL_DATA} -g fcron -m 640 ${WRKSRC}/files/${f} ${PREFIX}/etc/${f}.dist
@@ -49,12 +57,12 @@
 	${MKDIR} ${EXAMPLESDIR}
 	${INSTALL_DATA} ${FILESDIR}/fcrontab-* ${WRKSRC}/files/*.pam ${EXAMPLESDIR}
 .for n in 1 5 8
-	${INSTALL_MAN} ${MAN${n}:S|^|${WRKSRC}/doc/man/|} ${PREFIX}/man/man${n}
+	${INSTALL_MAN} ${MAN${n}:S|^|${DOCSRC}/man/|} ${PREFIX}/man/man${n}
 .endfor
 .if !defined(NOPORTDOCS)
 .  for d in txt HTML
 	${MKDIR} ${DOCSDIR}/${d}
-	${INSTALL_DATA} ${WRKSRC}/doc/${d}/* ${DOCSDIR}/${d}
+	${INSTALL_DATA} ${DOCSRC}/${d}/* ${DOCSDIR}/${d}
 .  endfor
 .endif
 
diff -ruPN fcron.orig/distinfo fcron/distinfo
--- fcron.orig/distinfo	Thu Jan 26 10:12:52 2006
+++ fcron/distinfo	Tue Feb  7 12:06:47 2006
@@ -1,3 +1,3 @@
-MD5 (fcron-3.0.0.src.tar.gz) = 55e92f8536c8b52c9b73b96a6a3e0fe3
-SHA256 (fcron-3.0.0.src.tar.gz) = 861e0ea68525f960e512aaebbc09d5848a9862982038a14a3e65c9e74ff2650e
-SIZE (fcron-3.0.0.src.tar.gz) = 409015
+MD5 (fcron-3.0.1.src.tar.gz) = 8e5dcb3a646c11294294895954ef0a48
+SHA256 (fcron-3.0.1.src.tar.gz) = 31288b04619bb9c7cd5fe6ff004c1e2c1340685cec2d0fa8725259c491699de9
+SIZE (fcron-3.0.1.src.tar.gz) = 536972
diff -ruPN fcron.orig/files/pkg-message.in fcron/files/pkg-message.in
--- fcron.orig/files/pkg-message.in	Tue Oct  4 11:54:23 2005
+++ fcron/files/pkg-message.in	Sun Jan 29 10:16:47 2006
@@ -5,6 +5,12 @@
 	fcron_enable="YES"
 	cron_enable="NO"
 
+install the pam config files
+
+	mkdir -p %%PREFIX%%/etc/pam.d
+	cp %%EXAMPLESDIR%%/fcron.pam %%PREFIX%%/etc/pam.d/fcron
+	cp %%EXAMPLESDIR%%/fcrontab.pam %%PREFIX%%/etc/pam.d/fcrontab
+
 and move any jobs in /etc/crontab to the root fcrontab(5) file. See:
 
 %%EXAMPLESDIR%%
diff -ruPN fcron.orig/pkg-install fcron/pkg-install
--- fcron.orig/pkg-install	Sun Oct 30 10:23:50 2005
+++ fcron/pkg-install	Sun Jan 29 10:00:02 2006
@@ -3,11 +3,13 @@
 if [ "$2" = PRE-INSTALL ]; then
 	user=fcron
 	group=fcron
+	uid=247
+	gid=247
 
 	if /usr/sbin/pw groupshow $group 2>/dev/null; then
 		echo "Using already existing group \"$group\"."
 	else
-		if /usr/sbin/pw groupadd $group; then
+		if /usr/sbin/pw groupadd $group -g $gid; then
 			echo "Added group \"$group\"."
 		else
 			echo "Unable to add group \"$group\"."
@@ -19,7 +21,7 @@
 	if /usr/sbin/pw usershow $user 2>/dev/null; then
 		echo "Using already existing user \"$user\"."
 	else
-		if /usr/sbin/pw useradd $user -g $group -c "fcron pseudo-user"; then
+		if /usr/sbin/pw useradd $user -u $uid -g $group -c "fcron pseudo-user"; then
 			echo "Added user \"$user\"."
 		else
 			echo "Unable to add user \"$user\"."
diff -ruPN fcron.orig/pkg-plist fcron/pkg-plist
--- fcron.orig/pkg-plist	Thu Jan 26 10:12:52 2006
+++ fcron/pkg-plist	Sun Jan 29 10:22:37 2006
@@ -1,5 +1,6 @@
 bin/fcronsighup
 bin/fcrontab
+bin/fcrondyn
 etc/fcron.allow.dist
 etc/fcron.conf.dist
 etc/fcron.deny.dist
------------------------------ end ------------------------------

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list