diff -udprN /usr/ports/sysutils/afio/distinfo ./distinfo --- /usr/ports/sysutils/afio/distinfo 2014-01-22 15:30:13.000000000 +0000 +++ ./distinfo 2019-04-17 07:08:05.227388000 +0000 @@ -1,2 +1,3 @@ -SHA256 (afio-2.5.tgz) = e7801a0f0a8dcbae41f4156dee5dae2a34a558d6c3ceac517efad4fed610ff2e -SIZE (afio-2.5.tgz) = 179184 +TIMESTAMP = 1555483777 +SHA256 (afio-2.5.2.tgz) = c64ca14109df547e25702c9f3a9ca877881cd4bf38dcbe90fbd09c8d294f42b9 +SIZE (afio-2.5.2.tgz) = 194030 diff -udprN /usr/ports/sysutils/afio/files/patch-afio.c ./files/patch-afio.c --- /usr/ports/sysutils/afio/files/patch-afio.c 2014-07-29 15:00:12.000000000 +0000 +++ ./files/patch-afio.c 2019-04-17 07:29:10.165983000 +0000 @@ -1,83 +1,11 @@ -*** afio.c.orig Sat Dec 20 17:16:13 2003 ---- afio.c Sat Jan 21 17:31:23 2006 -*************** -*** 648,658 **** - daniel.andersson@sto.sema.se */ - fprintf (stderr, "Media size %ld is less than block size %d\n", - aruntil, arbsize); - #else - fprintf (stderr, "Media size %ld is less than block size %d\n", -! (unsigned long) aruntil, arbsize); - #endif - usage (); - } - if (arpad == 0) - arpad = arbsize; ---- 648,658 ---- - daniel.andersson@sto.sema.se */ - fprintf (stderr, "Media size %ld is less than block size %d\n", - aruntil, arbsize); - #else - fprintf (stderr, "Media size %ld is less than block size %d\n", -! (u_long) aruntil, arbsize); - #endif - usage (); - } - if (arpad == 0) - arpad = arbsize; -*************** -*** 3155,3168 **** - return (warn (name, syserr ())); - else - exists = 0; - } - -! if (mknod (name, asb->sb_mode, asb->sb_rdev) < 0 - && (errno != ENOENT - || dirneed (name) < 0 -! || mknod (name, asb->sb_mode, asb->sb_rdev) < 0)) - return (warn (name, syserr ())); - break; - case S_IFDIR: - if (exists) - { ---- 3155,3168 ---- - return (warn (name, syserr ())); - else - exists = 0; - } - -! if (mkfifo (name, asb->sb_mode) < 0 - && (errno != ENOENT - || dirneed (name) < 0 -! || mkfifo (name, asb->sb_mode) < 0)) - return (warn (name, syserr ())); - break; - case S_IFDIR: - if (exists) - { -*************** -*** 3194,3204 **** - || dirneed (name) < 0 - || mkfifo (name, asb->sb_mode) < 0)) - return (warn (name, syserr ())); - break; - #endif /* S_IFIFO */ -! #ifdef S_IFSOCK - case S_IFSOCK: - fd = 0; - if (exists) - if (perm != operm && chmod (name, perm) < 0) - return (warn (name, syserr ())); ---- 3194,3204 ---- - || dirneed (name) < 0 - || mkfifo (name, asb->sb_mode) < 0)) - return (warn (name, syserr ())); - break; - #endif /* S_IFIFO */ -! #ifdef S_IFSOCK && !defined (__FreeBSD__) - case S_IFSOCK: - fd = 0; - if (exists) - if (perm != operm && chmod (name, perm) < 0) - return (warn (name, syserr ())); +--- afio.c.orig 2018-11-30 14:25:04 UTC ++++ afio.c +@@ -3423,7 +3423,7 @@ openotty (name, asb, linkp, ispass, dozf + return (warn (name, syserr ())); + break; + #endif /* S_IFIFO */ +-#ifdef S_IFSOCK ++#ifdef S_IFSOCK && !defined (__FreeBSD__) + case S_IFSOCK: + fd = 0; + if (exists) diff -udprN /usr/ports/sysutils/afio/files/patch-afio.h ./files/patch-afio.h --- /usr/ports/sysutils/afio/files/patch-afio.h 2014-07-29 15:00:12.000000000 +0000 +++ ./files/patch-afio.h 2019-04-17 07:30:08.099906000 +0000 @@ -1,5 +1,5 @@ ---- afio.h.orig Sun Sep 20 04:04:54 1998 -+++ afio.h Wed Dec 9 01:33:32 1998 +--- afio.h.orig 2018-11-30 14:25:04 UTC ++++ afio.h @@ -1,5 +1,9 @@ /* afio.h defines for afio. */ diff -udprN /usr/ports/sysutils/afio/files/patch-compfile.c ./files/patch-compfile.c --- /usr/ports/sysutils/afio/files/patch-compfile.c 2014-07-29 15:00:12.000000000 +0000 +++ ./files/patch-compfile.c 2019-04-17 07:29:29.233881000 +0000 @@ -1,11 +1,11 @@ ---- compfile.c.orig Thu Nov 25 22:22:28 1999 -+++ compfile.c Thu Jan 27 14:36:31 2000 -@@ -207,7 +207,7 @@ +--- compfile.c.orig 2018-11-30 14:25:04 UTC ++++ compfile.c +@@ -224,7 +224,7 @@ void waitforgzip() * version; */ --#if ( defined(sun) && defined(__svr4__) ) -+#if ( defined(sun) && defined(__svr4__) || defined(__FreeBSD__) ) +-#if ( defined(sun) && defined(__svr4__) ) || defined(__CYGWIN32__) ++#if ( defined(sun) && defined(__svr4__) ) || defined(__FreeBSD__) #include #else #include diff -udprN /usr/ports/sysutils/afio/files/patch-Makefile ./files/patch-Makefile --- /usr/ports/sysutils/afio/files/patch-Makefile 2014-08-21 19:15:49.000000000 +0000 +++ ./files/patch-Makefile 2019-04-17 06:44:58.231326000 +0000 @@ -1,9 +1,9 @@ ---- Makefile.orig 2003-12-21 10:23:51 UTC +--- Makefile.orig 2018-11-30 14:25:04 UTC +++ Makefile @@ -28,7 +28,7 @@ SHELL=/bin/sh c = -DHAVEMEMCMP ## Define DEFFMTCMD to being how to format the media you use the most - ## This is the DEFault FoRMat CoManD. + ## This is the DEFault FoRMat CoManD. -d = -DDEFFMTCMD='"fdformat /dev/fd0H1440"' +d = -DDEFFMTCMD='"/usr/sbin/fdformat -f 1440 /dev/fd0"' ## Define LONGZFILE if you want .Z to be tagged on the end of a 14 char @@ -25,30 +25,31 @@ +## Define HAVE_PARAM_H if your system has sys/param.h. This is used for BSD +# detection. + -+h = -DHAVE_PARAM_H ++h = -DHAVE_PARAM_H + # fnmatch() is in the gnu C library, so it is directly available on # Linux. If your system (e.g. SCO) does not have the gnu C library, # unpack the archive gnu.fnmatch.tar.gz and uncomment the following -@@ -71,11 +76,14 @@ LARGEFILEFLAGS=-D_FILE_OFFSET_BITS=64 -D - MW= +@@ -74,13 +79,15 @@ MW=-Wformat -Werror=format-security -Wal + #code can be reviewed manually #MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -Wimplicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissing-declarations --CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer ${LARGEFILEFLAGS} ${MW} -+#CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer ${LARGEFILEFLAGS} ${MW} -+CFLAGS1 = -fomit-frame-pointer -fno-strength-reduce +-CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer -Wno-unused-result $(LARGEFILEFLAGS) $(MW) ++#CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer -Wno-unused-result $(LARGEFILEFLAGS) $(MW) ++CFLAGS1 = -fomit-frame-pointer -CC=gcc +#CC=gcc -+#CC=cc --CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e ${e2} $f $g $I -+#CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e ${e2} $f $g $I -+CFLAGS += ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $h $I - LDFLAGS = + # also using contents of usin CPPFLAGS, CFLAGS, LDFLAGS out of environment + # variables, if they exist +-CFLAGS += $(CFLAGS1) $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $(e2) $f $g $I ++#CFLAGS += $(CFLAGS1) $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $(e2) $f $g $I ++CFLAGS += $(CFLAGS1) $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $I + LDFLAGS += + CPPFLAGS += - afio : afio.o compfile.o exten.o match.o $M -@@ -88,8 +96,9 @@ clean: +@@ -95,8 +102,8 @@ clean: cd regtest; /bin/sh regtest.clean install: afio @@ -56,7 +57,6 @@ - cp afio.1 /usr/share/man/man1 + ${BSD_INSTALL_PROGRAM} afio ${DESTDIR}${PREFIX}/bin + ${BSD_INSTALL_MAN} afio.1 ${DESTDIR}${PREFIX}/man/man1 -+ # generate default list of -E extensions from manpage # note: on sun, I had to change awk command below to nawk or gawk diff -udprN /usr/ports/sysutils/afio/files/pkg-message.in ./files/pkg-message.in --- /usr/ports/sysutils/afio/files/pkg-message.in 2015-02-27 15:12:42.000000000 +0000 +++ ./files/pkg-message.in 2019-04-16 03:17:19.630243000 +0000 @@ -5,7 +5,7 @@ PLEASE SEE - %%PREFIX%%/share/docs/afio/README + %%PREFIX%%/share/doc/afio/README for details. diff -udprN /usr/ports/sysutils/afio/Makefile ./Makefile --- /usr/ports/sysutils/afio/Makefile 2017-11-25 09:00:15.000000000 +0000 +++ ./Makefile 2019-04-17 06:55:23.117592000 +0000 @@ -2,10 +2,9 @@ # $FreeBSD: head/sysutils/afio/Makefile 454874 2017-11-25 09:00:15Z amdmi3 $ PORTNAME= afio -PORTVERSION= 2.5 -PORTREVISION= 1 +PORTVERSION= 2.5.2 CATEGORIES= sysutils -MASTER_SITES= SUNSITE/system/backup +MASTER_SITES= http://members.chello.nl/~k.holtman/ MAINTAINER= portmaster@BSDforge.com COMMENT= Archiver and backup program with builtin compression @@ -13,8 +12,10 @@ COMMENT= Archiver and backup program wit LICENSE= ART20 BSD2CLAUSE LICENSE_COMB= multi -USES= tar:tgz shebangfix -SHEBANG_FILES= script1/backup script2/backup +USES= tar:tgz + +EXAMPLES_USES= shebangfix +EXAMPLES_SHEBANG_FILES= ${WRKSRC}/script1/backup ${WRKSRC}/script2/backup ALL_TARGET= ${PORTNAME} diff -udprN /usr/ports/sysutils/afio/pkg-descr ./pkg-descr --- /usr/ports/sysutils/afio/pkg-descr 2017-11-25 09:00:15.000000000 +0000 +++ ./pkg-descr 2019-04-17 06:33:22.715127000 +0000 @@ -1,9 +1,6 @@ -Afio makes cpio-format archives. It deals fairly gracefully -with potential input data corruption. Supports multi-volume -archives during interactive operation. Afio can make -compressed archives that are much safer than compressed tar, -or cpio archives. Afio has a tremendous number of options. -Afio might be best used as an `archive engine' in a backup -script. +Afio makes cpio-format archives. It deals somewhat gracefully with input data +corruption, supports multi-volume archives during interactive operation, and +can make compressed archives that are much safer than compressed tar or cpio +archives. Afio is best used as an `archive engine' in a backup script. -WWW: https://BSDforge.com/projects/sysutils/afio/ +WWW: http://members.chello.nl/k.holtman/afio.html