Index: head/sysutils/fcron/Makefile =================================================================== --- head/sysutils/fcron/Makefile (revision 282354) +++ head/sysutils/fcron/Makefile (revision 282355) @@ -1,81 +1,82 @@ # ex:ts=8 # New ports collection makefile for: fcron # Date created: Mar 1, 2001 # Whom: Ying-Chieh Liao # # $FreeBSD$ # PORTNAME= fcron PORTVERSION= 3.0.6 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SUNSITE} \ http://fcron.free.fr/archives/ \ ftp://ftp.seul.org/pub/fcron/ MASTER_SITE_SUBDIR= system/daemons/cron DISTNAME= ${PORTNAME}-${PORTVERSION}.src MAINTAINER= rde@tavi.co.uk COMMENT= A periodic command scheduler GNU_CONFIGURE= yes USE_GMAKE= yes USE_PERL5_BUILD=yes CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --localstatedir=/var \ --with-cflags="${CFLAGS}" \ --with-rootname=root --with-rootgroup=wheel \ --with-docdir=${DOCSDIR} WRKSRC= ${WRKDIR}/fcron-${PORTVERSION} USE_RC_SUBR= fcron SUB_FILES= pkg-message MAN1= fcrontab.1 MAN5= fcron.conf.5 fcrontab.5 MAN8= fcron.8 PAMDIR?= /etc/pam.d PLIST_SUB+= PAMDIR=etc/pam.d PORTDOCS= * .if defined(MANLANG) && exists(${WRKSRC}/doc/${MANLANG}) DOCSRC= ${WRKSRC}/doc/${MANLANG} .else DOCSRC= ${WRKSRC}/doc/en .endif LICENSE= GPLv2 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 .endfor ${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${FILESDIR}/fcrontab-* ${WRKSRC}/files/*.pam ${EXAMPLESDIR} ${MKDIR} ${PAMDIR} [ -f ${PAMDIR}/fcron ] || ${INSTALL_DATA} ${WRKSRC}/files/fcron.pam ${PAMDIR}/fcron [ -f ${PAMDIR}/fcrontab ] || ${INSTALL_DATA} ${WRKSRC}/files/fcrontab.pam ${PAMDIR}/fcrontab .for n in 1 5 8 ${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} ${DOCSRC}/${d}/* ${DOCSDIR}/${d} . endfor .endif post-install: @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CAT} ${PKGMESSAGE} .include Property changes on: head/sysutils/fcron/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.27 \ No newline at end of property +1.28 \ No newline at end of property Index: head/sysutils/fcron/files/patch-fileconf.c =================================================================== --- head/sysutils/fcron/files/patch-fileconf.c (nonexistent) +++ head/sysutils/fcron/files/patch-fileconf.c (revision 282355) @@ -0,0 +1,15 @@ +We don't need to fflush the file, since it is opened read-only. + +--- fileconf.c.orig 2011-07-18 19:55:28.726082293 +0400 ++++ fileconf.c 2011-07-18 19:55:37.988079816 +0400 +@@ -264,10 +264,6 @@ + cf->cf_next = file_base; + file_base = cf; + +- /* don't close as underlying fd may still be used by calling function */ +- if (fflush(file) != 0) +- error_e("could not fflush() file_name"); +- + free(default_line.cl_runas); + free(default_line.cl_mailto); + free(default_line.cl_tz); Property changes on: head/sysutils/fcron/files/patch-fileconf.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/sysutils/fcron/files/patch-subs.c =================================================================== --- head/sysutils/fcron/files/patch-subs.c (nonexistent) +++ head/sysutils/fcron/files/patch-subs.c (revision 282355) @@ -0,0 +1,28 @@ +--- subs.c.orig 2011-07-18 17:28:21.745080904 +0400 ++++ subs.c 2011-07-18 19:39:18.999087202 +0400 +@@ -121,7 +121,11 @@ + + if (flags & O_CREAT) { + va_start(ap, flags); +- mode = va_arg(ap, mode_t); ++ /* Beware: default argument promotion. */ ++ if (sizeof(int) > sizeof(mode_t)) ++ mode = va_arg(ap, int); ++ else ++ mode = va_arg(ap, mode_t); + va_end(ap); + } + +@@ -179,7 +183,11 @@ + + if (flags & O_CREAT) { + va_start(ap, flags); +- mode = va_arg(ap, mode_t); ++ /* Beware: default argument promotion. */ ++ if (sizeof(int) > sizeof(mode_t)) ++ mode = va_arg(ap, int); ++ else ++ mode = va_arg(ap, mode_t); + va_end(ap); + } + Property changes on: head/sysutils/fcron/files/patch-subs.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property