summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archivers/afio/Makefile7
-rw-r--r--archivers/afio/distinfo12
-rw-r--r--archivers/afio/patches/patch-ab21
-rw-r--r--archivers/afio/patches/patch-ac106
4 files changed, 39 insertions, 107 deletions
diff --git a/archivers/afio/Makefile b/archivers/afio/Makefile
index 2e26fe1ff3b..87a5ade9d75 100644
--- a/archivers/afio/Makefile
+++ b/archivers/afio/Makefile
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2015/02/15 14:29:02 ryoon Exp $
+# $NetBSD: Makefile,v 1.16 2015/02/15 14:45:48 ryoon Exp $
-DISTNAME= afio-2.5
-PKGREVISION= 2
+DISTNAME= afio-2.5.1
CATEGORIES= archivers
-MASTER_SITES= http://www.ibiblio.org/pub/Linux/system/backup/
+MASTER_SITES= http://members.chello.nl/~k.holtman/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
diff --git a/archivers/afio/distinfo b/archivers/afio/distinfo
index d9ffd932c5d..41085d96288 100644
--- a/archivers/afio/distinfo
+++ b/archivers/afio/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.7 2012/06/23 18:02:15 dholland Exp $
+$NetBSD: distinfo,v 1.8 2015/02/15 14:45:48 ryoon Exp $
-SHA1 (afio-2.5.tgz) = 051765f209fded60f94944da8a76ae37c3423a23
-RMD160 (afio-2.5.tgz) = 991bdb794ee8b4b7e6a737afa85009aae925699d
-Size (afio-2.5.tgz) = 179184 bytes
+SHA1 (afio-2.5.1.tgz) = bff6b9a147dc5b0e6bd7f1a76f0b84e4dd9a7dc9
+RMD160 (afio-2.5.1.tgz) = 923981a9e6766781705ceedecd3d86afa5b9abae
+Size (afio-2.5.1.tgz) = 191765 bytes
SHA1 (patch-aa) = e35b47c2f10a6f80d8446e4c22a7a023dae55933
-SHA1 (patch-ab) = 746c0eaf036cba60fb48e798175e055df6addd77
-SHA1 (patch-ac) = 99378318e898429153352a2d9b47008f419865af
+SHA1 (patch-ab) = a93cf92b80f2b40e30987822b144c24f3a3e5c1e
+SHA1 (patch-ac) = d589b2e37d8a81373f14e4093fe8cc2b30b5489b
diff --git a/archivers/afio/patches/patch-ab b/archivers/afio/patches/patch-ab
index e4cd58bdbc8..e0bccafbb79 100644
--- a/archivers/afio/patches/patch-ab
+++ b/archivers/afio/patches/patch-ab
@@ -1,10 +1,10 @@
-$NetBSD: patch-ab,v 1.3 2012/06/23 18:02:15 dholland Exp $
+$NetBSD: patch-ab,v 1.4 2015/02/15 14:45:48 ryoon Exp $
- Use NAME_MAX if available rather than relying on MAXNAMLEN.
- Fix Solaris preprocessor symbols.
- Fix bad calls to execlp() that break on 64-bit platforms.
---- compfile.c.orig 2003-06-24 21:32:20.000000000 +0000
+--- compfile.c.orig 2012-02-05 13:45:01.000000000 +0000
+++ compfile.c
@@ -2,6 +2,7 @@
@@ -14,25 +14,16 @@ $NetBSD: patch-ab,v 1.3 2012/06/23 18:02:15 dholland Exp $
#include <unistd.h>
#include <string.h>
-@@ -179,7 +180,7 @@ int setupgzip(char *name)
- if (open (name, O_RDONLY) >= 0)
- {
- if(! compressargs)
-- execlp (compressprog, compressprog, "-c", farg, 0);
-+ execlp (compressprog, compressprog, "-c", farg, (char *)NULL);
- else
- execvp (compressprog, compress_arg_list);
- }
-@@ -210,7 +211,7 @@ void waitforgzip()
+@@ -211,7 +212,7 @@ void waitforgzip()
* version;
*/
--#if ( defined(sun) && defined(__svr4__) )
-+#if ( defined(__sun) && defined(__SVR4) )
+-#if ( defined(sun) && defined(__svr4__) ) || defined(__CYGWIN32__)
++#if ( defined(__sun) && defined(__svr4__) ) || defined(__CYGWIN32__)
#include <dirent.h>
#else
#include <sys/dir.h>
-@@ -283,7 +284,9 @@ compressfile (int *fdp, char *name, reg
+@@ -284,7 +285,9 @@ compressfile (int *fdp, char *name, reg
tmpcomp++;
else
tmpcomp = name;
diff --git a/archivers/afio/patches/patch-ac b/archivers/afio/patches/patch-ac
index 51196a4ba15..81b32a7e47b 100644
--- a/archivers/afio/patches/patch-ac
+++ b/archivers/afio/patches/patch-ac
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
+$NetBSD: patch-ac,v 1.3 2015/02/15 14:45:48 ryoon Exp $
- Use standard headers.
- Use strerror, not sys_errlist and sys_nerr.
@@ -8,32 +8,18 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
- Build fix for makedev() on Solaris and Interix.
- Fix bad calls to execlp() that break on 64-bit platforms.
---- afio.c.orig 2003-12-20 22:16:13.000000000 +0000
+--- afio.c.orig 2012-02-05 13:25:57.000000000 +0000
+++ afio.c
-@@ -166,52 +166,40 @@ static char *ident = "$Header: /u/buhrt/
- #include <signal.h>
- #include <strings.h>
- #include <sys/wait.h>
--#define linux_tstamp 1
--/* fix SunOS errno.h not declaring what the manpage says it declares
-- bogosity. */
-- extern int sys_nerr;
-- extern char *sys_errlist[];
--#endif
--
--#ifdef hpux
-- /* Fix that HPUX dosent have sys_nerr or sys_errlist
-- Added by Daniel Andersson, daniel.andersson@sto.sema.se
-- */
--extern int sys_nerr;
--extern char *sys_errlist[];
- #endif
+@@ -166,7 +166,7 @@ static char *ident = "$Header: /u/buhrt/
+ #include <stdio.h>
+ #include <errno.h>
- #include <unistd.h>
- #include <string.h>
- #include <stdlib.h>
--#include <sys/signal.h>
-+#include <signal.h>
+-#ifdef sun
++#ifdef __sun
+ #include <sys/types.h>
+ #include <utime.h>
+ #include <signal.h>
+@@ -202,30 +202,29 @@ extern char *sys_errlist[];
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
@@ -44,7 +30,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
#include "patchlevel.h"
#ifdef linux
--
+
-#define linux_tstamp 1
-
-#include <utime.h>
@@ -60,9 +46,6 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
#include <strings.h>
#endif
-+/* nothing should need this */
-+/*#define broken_utime*/
-+
#ifndef major
-#ifdef sun
+#if defined(sun) || defined(__INTERIX)
@@ -73,7 +56,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
#else
#include <sys/sysmacros.h>
#endif
-@@ -1122,7 +1110,7 @@ savedirstamp (char *name, time_t mtime)
+@@ -1140,7 +1139,7 @@ savedirstamp (char *name, time_t mtime)
STATIC void
restoredirstamps (void)
{
@@ -82,7 +65,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
auto struct utimbuf tstamp;
#else
auto time_t tstamp[2];
-@@ -1130,7 +1118,7 @@ restoredirstamps (void)
+@@ -1148,7 +1147,7 @@ restoredirstamps (void)
Dir *DirP_forw;
while(DirP!=NULL)
{
@@ -91,7 +74,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
tstamp.actime = DirP->d_mtime;
tstamp.modtime = DirP->d_mtime;
/* no error code checking on purpose */
-@@ -1212,7 +1200,7 @@ readcheck (av)
+@@ -1239,7 +1238,7 @@ readcheck (av)
auto char name[PATHSIZE];
auto char local[PATHSIZE];
int sel, res;
@@ -100,7 +83,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
auto struct utimbuf tstamp;
#else
auto time_t tstamp[2];
-@@ -1241,7 +1229,7 @@ readcheck (av)
+@@ -1267,7 +1266,7 @@ readcheck (av)
if(aflag && atime_sb_valid && ((sb.sb_mode & S_IFMT)==S_IFREG))
{
/* reset access time, this distroys the ctime btw. */
@@ -109,16 +92,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
tstamp.actime = atime_sb.sb_atime;
tstamp.modtime = atime_sb.sb_mtime;
VOID utime (name, &tstamp);
-@@ -1585,7 +1573,7 @@ incheckdata (int fd, off_t size, char *n
- if(compressargs)
- execvp (compressprog, compress_arg_list);
- else
-- execlp (compressprog, compressprog, "-d", "-c", 0);
-+ execlp (compressprog, compressprog, "-d", "-c", (char *)NULL);
- fprintf (stderr, "Could not uncompress, errno %d\n", errno);
- exit(1);
- break;
-@@ -1696,7 +1684,7 @@ inentry (name, asb)
+@@ -1758,7 +1757,7 @@ inentry (name, asb)
reg Link *linkp;
reg int ifd;
reg int ofd;
@@ -127,7 +101,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
auto struct utimbuf tstamp;
#else
auto time_t tstamp[2];
-@@ -1729,7 +1717,7 @@ inentry (name, asb)
+@@ -1794,7 +1793,7 @@ inentry (name, asb)
/* Cannot set utime on symlink (at least not under Linux) */
if((asb->sb_mode & S_IFMT) != S_IFLNK)
{
@@ -136,25 +110,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
tstamp.actime = tstamp.modtime = mflag ? timenow : asb->sb_mtime;
VOID utime (name, &tstamp);
#else
-@@ -3004,7 +2992,7 @@ opencontrolscript (char *name)
- VOID dup (pfd[0]);
- VOID close (pfd[0]);
-
-- execlp (controlscript, controlscript, label, 0);
-+ execlp (controlscript, controlscript, label, (char *)NULL);
-
- warnarch("Problems running control script:",(off_t)0);
- warn(controlscript,syserr());
-@@ -3266,7 +3254,7 @@ openotty (name, asb, linkp, ispass, dozf
- if(compressargs)
- execvp (compressprog, compress_arg_list);
- else
-- execlp (compressprog, compressprog, "-d", "-c", 0);
-+ execlp (compressprog, compressprog, "-d", "-c", (char *)NULL);
- fprintf (stderr, "Could not uncompress, errno %d\n", errno);
- exit (1);
- }
-@@ -3493,7 +3481,7 @@ out (av)
+@@ -3580,7 +3579,7 @@ out (av)
auto char name[PATHSIZE];
auto char fsname[PATHSIZE];
auto int compression;
@@ -163,7 +119,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
auto struct utimbuf tstamp;
#else
auto time_t tstamp[2];
-@@ -3638,7 +3626,7 @@ out (av)
+@@ -3750,7 +3749,7 @@ out (av)
if(aflag && *fsname && ((sb.sb_mode & S_IFMT)==S_IFREG))
{
/* reset access time, this distroys the ctime btw. */
@@ -172,7 +128,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
tstamp.actime = sb.sb_atime;
tstamp.modtime = sb.sb_mtime;
VOID utime (fsname, &tstamp);
-@@ -4133,7 +4121,7 @@ passitem (from, asb, ifd, dir)
+@@ -4251,7 +4250,7 @@ passitem (from, asb, ifd, dir)
{
reg int ofd;
@@ -181,7 +137,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
auto struct utimbuf tstamp;
#else
auto time_t tstamp[2];
-@@ -4149,7 +4137,7 @@ passitem (from, asb, ifd, dir)
+@@ -4267,7 +4266,7 @@ passitem (from, asb, ifd, dir)
continue;
if (ofd > 0)
passdata (from, ifd, to, ofd);
@@ -190,21 +146,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
tstamp.actime = tstamp.modtime = mflag ? timenow : asb->sb_mtime;
VOID utime (to, &tstamp);
#else
-@@ -4354,12 +4342,7 @@ fswrite (fd, buf, len)
- STATIC char *
- syserr ()
- {
-- static char msg[40];
--
-- if (errno > 0 && errno < sys_nerr)
-- return ((char *) sys_errlist[errno]);
-- VOID sprintf (msg, "Unknown error (errno %d)", errno);
-- return (msg);
-+ return strerror(errno);
- }
-
- /*
-@@ -4765,7 +4748,7 @@ xwait (pid, what, compstat2)
+@@ -4901,7 +4900,7 @@ xwait (pid, what, compstat2)
char *what;
int compstat2;
{
@@ -213,7 +155,7 @@ $NetBSD: patch-ac,v 1.2 2012/06/23 18:02:15 dholland Exp $
reg Child *cp;
reg Child **acp;
auto char why[100];
-@@ -4782,16 +4765,16 @@ xwait (pid, what, compstat2)
+@@ -4918,16 +4917,16 @@ xwait (pid, what, compstat2)
free ((char *) cp);
if (status == 0)
return (0);