Index: head/sysutils/fcron/Makefile =================================================================== --- head/sysutils/fcron/Makefile (revision 419319) +++ head/sysutils/fcron/Makefile (revision 419320) @@ -1,67 +1,67 @@ # $FreeBSD$ PORTNAME= fcron -PORTVERSION= 3.2.0 +PORTVERSION= 3.2.1 CATEGORIES= sysutils MASTER_SITES= http://fcron.free.fr/archives/ \ ftp://ftp.seul.org/pub/fcron/ DISTNAME= ${PORTNAME}-${PORTVERSION}.src MAINTAINER= bob@eager.cx COMMENT= Periodic command scheduler LICENSE= GPLv2 OPTIONS_DEFINE= DOCS EXAMPLES GNU_CONFIGURE= yes USES= perl5 gmake USE_PERL5= build CONFIGURE_ARGS= --localstatedir=/var \ --with-cflags="${CFLAGS}" \ --with-rootname=root --with-rootgroup=wheel \ --with-docdir=${DOCSDIR} \ --with-dsssl-dir=no WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} USERS= fcron GROUPS= fcron USE_RC_SUBR= fcron SUB_FILES= pkg-message PAMDIR?= etc/pam.d PLIST_SUB+= PAMDIR=etc/pam.d PORTDOCS= * DOCSRC= ${WRKSRC}/doc/en do-install: ${INSTALL_PROGRAM} ${WRKSRC}/fcron ${STAGEDIR}${PREFIX}/sbin ${INSTALL_PROGRAM} ${WRKSRC}/fcrontab ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/fcrondyn ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/fcronsighup ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/files/fcron.pam ${STAGEDIR}${PREFIX}/${PAMDIR}/fcron ${INSTALL_DATA} ${WRKSRC}/files/fcrontab.pam ${STAGEDIR}${PREFIX}/${PAMDIR}/fcrontab .for f in fcron.allow fcron.conf fcron.deny ${INSTALL_DATA} -m 640 ${WRKSRC}/files/${f} ${STAGEDIR}${PREFIX}/etc/${f}.sample .endfor .for n in 1 5 8 ${INSTALL_MAN} ${DOCSRC}/man/*.${n} ${STAGEDIR}${PREFIX}/man/man${n} .endfor ${MKDIR} -m 770 ${STAGEDIR}/var/spool/fcron do-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${FILESDIR}/fcrontab-* ${WRKSRC}/files/*.pam ${STAGEDIR}${EXAMPLESDIR} do-install-DOCS-on: .for d in txt HTML ${MKDIR} ${STAGEDIR}${DOCSDIR}/${d} ${INSTALL_DATA} ${DOCSRC}/${d}/* ${STAGEDIR}${DOCSDIR}/${d} .endfor .include Index: head/sysutils/fcron/distinfo =================================================================== --- head/sysutils/fcron/distinfo (revision 419319) +++ head/sysutils/fcron/distinfo (revision 419320) @@ -1,2 +1,3 @@ -SHA256 (fcron-3.2.0.src.tar.gz) = eb13b86ed96805d117e19847f1da30b834f1990f7ef4c38f5007234d44679564 -SIZE (fcron-3.2.0.src.tar.gz) = 595408 +TIMESTAMP = 1469650893 +SHA256 (fcron-3.2.1.src.tar.gz) = 6114d0a39a32853669c0c0ba0f96d92920e7cabca3ff1edf37d25750403e5f6a +SIZE (fcron-3.2.1.src.tar.gz) = 601142 Index: head/sysutils/fcron/files/patch-fcrondyn.c =================================================================== --- head/sysutils/fcron/files/patch-fcrondyn.c (revision 419319) +++ head/sysutils/fcron/files/patch-fcrondyn.c (nonexistent) @@ -1,23 +0,0 @@ -Fix use of size_t in context where ssize_t (error value included) is -more correct. - ---- fcrondyn.c.orig 2014-05-10 17:03:59 UTC -+++ fcrondyn.c -@@ -482,7 +482,7 @@ talk_fcron(char *cmd_str, int fd) - long int *cmd = NULL; - int cmd_len = 0; - char buf[LINE_LEN]; -- size_t read_len = 0; -+ ssize_t read_len = 0; - char existing_connection = (fd < 0) ? 0 : 1; - fd_set read_set; /* needed to use select to check if some data is waiting */ - struct timeval tv; -@@ -578,7 +578,7 @@ talk_fcron(char *cmd_str, int fd) - } - - -- while ((read_len = (size_t) recv(fd, buf, sizeof(buf) - 1, 0)) >= 0 -+ while ((read_len = (ssize_t) recv(fd, buf, sizeof(buf) - 1, 0)) >= 0 - || errno == EINTR) { - - if (errno == EINTR && debug_opt) Property changes on: head/sysutils/fcron/files/patch-fcrondyn.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/sysutils/fcron/files/patch-configure =================================================================== --- head/sysutils/fcron/files/patch-configure (revision 419319) +++ head/sysutils/fcron/files/patch-configure (revision 419320) @@ -1,11 +1,11 @@ ---- configure.orig 2014-07-06 10:05:56 UTC +--- configure.orig 2016-06-26 17:46:37 UTC +++ configure -@@ -5153,7 +5153,7 @@ if ${ax_cv_lib_readline+:} false; then : +@@ -5164,7 +5164,7 @@ if ${ax_cv_lib_readline+:} false; then : else ORIG_LIBS="$LIBS" - for readline_lib in readline edit editline; do + for readline_lib in readline editline; do for termcap_lib in "" termcap curses ncurses; do if test -z "$termcap_lib"; then TRY_LIB="-l$readline_lib" Index: head/sysutils/fcron/files/patch-fileconf.c =================================================================== --- head/sysutils/fcron/files/patch-fileconf.c (revision 419319) +++ head/sysutils/fcron/files/patch-fileconf.c (revision 419320) @@ -1,15 +1,15 @@ We don't need to fflush the file, since it is opened read-only. ---- fileconf.c.orig 2014-05-10 17:03:59 UTC +--- fileconf.c.orig 2016-06-26 17:42:39 UTC +++ fileconf.c @@ -278,10 +278,6 @@ read_file(char *filename, int fd) 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_safe(default_line.cl_runas); + Free_safe(default_line.cl_mailfrom); Free_safe(default_line.cl_mailto); - Free_safe(default_line.cl_tz); Index: head/sysutils/fcron/files/patch-save.c =================================================================== --- head/sysutils/fcron/files/patch-save.c (revision 419319) +++ head/sysutils/fcron/files/patch-save.c (revision 419320) @@ -1,15 +1,15 @@ Replace fdatasync() with fsync() because FreeBSD doesn't have fdatasync(). ---- save.c.orig 2014-05-10 17:03:59 UTC +--- save.c.orig 2016-06-26 15:02:48 UTC +++ save.c -@@ -311,8 +311,8 @@ write_file_to_disk(int fd, struct cf_t * +@@ -315,8 +315,8 @@ write_file_to_disk(int fd, struct cf_t * * This is to avoid cases where the file name (meta-data) would be updated, * and there is a crash before the data is fully written: not sure if that * is possible, but better safe than sorry! */ - if (fdatasync(fd) < 0) { - error_e("could not fdatasync() %s's fcrontab", file->cf_user); + if (fsync(fd) < 0) { + error_e("could not fsync() %s's fcrontab", file->cf_user); return ERR; }