ports/92116: [PATCH] sysutils/afio: update to 2.5

Jeffrey H. Johnson CPE1704TKS at bellsouth.net
Sat Jan 21 22:50:06 UTC 2006


>Number:         92116
>Category:       ports
>Synopsis:       [PATCH] sysutils/afio: update to 2.5
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 21 22:50:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jeffrey H. Johnson
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD offworld.cqasys.com 6.0-STABLE FreeBSD 6.0-STABLE #21: Wed Jan 18 22:35:45 EST 2006
>Description:
- Update to 2.5

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- afio-2.5.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/sysutils/afio/Makefile /usr/home/trn/afio/Makefile
--- /usr/ports/sysutils/afio/Makefile	Sat Dec 20 19:22:25 2003
+++ /usr/home/trn/afio/Makefile	Sat Jan 21 17:13:37 2006
@@ -6,8 +6,8 @@
 #
 
 PORTNAME=	afio
-PORTVERSION=	2.4.7
-PORTREVISION=	1
+PORTVERSION=	2.5
+#PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	${MASTER_SITE_SUNSITE}
 MASTER_SITE_SUBDIR=	system/backup
diff -ruN --exclude=CVS /usr/ports/sysutils/afio/distinfo /usr/home/trn/afio/distinfo
--- /usr/ports/sysutils/afio/distinfo	Fri Nov 25 13:14:33 2005
+++ /usr/home/trn/afio/distinfo	Sat Jan 21 17:10:43 2006
@@ -1,3 +1,3 @@
-MD5 (afio-2.4.7.tgz) = 28fd6daa7805ee2263879ff1b9c96a9e
-SHA256 (afio-2.4.7.tgz) = a00a5c26c2f323ca87cb82278915391537ac25327d27510bbca3b8b482e36899
-SIZE (afio-2.4.7.tgz) = 91224
+SIZE (afio-2.5.tgz) = 179184
+MD5 (afio-2.5.tgz) = 8c6665e0f875dcd8e1bdb18644b59688
+SHA256 (afio-2.5.tgz) = e7801a0f0a8dcbae41f4156dee5dae2a34a558d6c3ceac517efad4fed610ff2e
diff -ruN --exclude=CVS /usr/ports/sysutils/afio/files/patch-aa /usr/home/trn/afio/files/patch-aa
--- /usr/ports/sysutils/afio/files/patch-aa	Wed Feb  2 11:24:45 2000
+++ /usr/home/trn/afio/files/patch-aa	Sat Jan 21 17:35:07 2006
@@ -1,60 +1,136 @@
---- Makefile.orig	Thu Nov 25 22:42:26 1999
-+++ Makefile	Thu Jan 27 15:03:54 2000
-@@ -26,14 +26,14 @@
- c	= -DHAVEMEMCMP
- ##  Define DEFFMTCMD to being how to format the media you use the most
- ##		This is the DEFault FoRMat CoManD. 
--d	= -DDEFFMTCMD='"fdformat /dev/fd0H1440"'
-+d	= -DDEFFMTCMD='"/usr/bin/fdformat -f 1440 /dev/fd0.1440"'
- ##  Define LONGZFILE if you want .Z to be tagged on the end of a 14 char
- ##	file name (or longer for BSD) in the archive when the file is compressed
- #e	= -DLONGZFILE
- 
- ##  Define PRG_COMPRESS to get something other than `gzip'.
- # you need to edit compfile.c (-G option) if you change this line.
--f	= -DPRG_COMPRESS='"gzip"'
-+f	= -DPRG_COMPRESS='"/usr/bin/gzip"'
- 
- ## Define HAVEFNMATCH if you want to use the gnu fnmatch() routine for
- # -y -Y -w -W matching.
-@@ -43,6 +43,11 @@
- 
- g	= -DHAVEFNMATCH
- 
-+## Define HAVE_PARAM_H if your system has sys/param.h. This is used for BSD
-+#  detection.
-+
-+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
-@@ -56,13 +61,14 @@
- 
- #CFLAGS1 = -ggdb
- #CFLAGS1 = -Wall -s -g -O2 -fomit-frame-pointer
--CFLAGS1 = -Wall -O2 -fomit-frame-pointer
-+#CFLAGS1 = -Wall -O2 -fomit-frame-pointer
-+CFLAGS1 = -fomit-frame-pointer -fno-strength-reduce
- 
- 
--CC=gcc
-+#CC=gcc
- 
- 
--CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $I
-+CFLAGS += ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $h $I
- LDFLAGS =
- 
- afio : afio.o compfile.o exten.o match.o $M
-@@ -72,8 +78,8 @@
- 	rm -f *.o afio
- 
- install: afio
--	cp afio /usr/bin
--	cp afio.1 /usr/man/man1
-+	install -cs -o root -g wheel afio ${PREFIX}/bin
-+	install -c -o root -g wheel afio.1 ${PREFIX}/man/man1
- 
- 
- afio.o : afio.h patchlevel.h
+*** Makefile.orig	Sun Dec 21 05:23:51 2003
+--- Makefile	Sat Jan 21 17:34:53 2006
+***************
+*** 26,56 ****
+  #b	= -UUNIXPC
+  ##  Define HAVEMEMCMP if you have memcmp otherwise assumes bcmp
+  c	= -DHAVEMEMCMP
+  ##  Define DEFFMTCMD to being how to format the media you use the most
+  ##		This is the DEFault FoRMat CoManD. 
+! d	= -DDEFFMTCMD='"fdformat /dev/fd0H1440"'
+  ##  Define LONGZFILE if you want .Z to be tagged on the end of a 14 char
+  ##	file name (or longer for BSD) in the archive when the file is compressed
+  #e	= -DLONGZFILE
+  
+  ##  Define HAVE_LCHOWN is the system has an lchown call (like chown but does
+  ##  not follow symlinks)
+  e2      = -DHAVE_LCHOWN
+  
+  ##  Define PRG_COMPRESS to get something other than `gzip'.
+  # you need to edit compfile.c (-G option) if you change this line.
+! f	= -DPRG_COMPRESS='"gzip"'
+  
+  ## Define HAVEFNMATCH if you want to use the gnu fnmatch() routine for
+  # -y -Y -w -W matching.
+  # If it is not defined, a primitive replacement match routine is used that
+  # only supports patterns of the form "cccc" and "cccc*".  Make sure that
+  # you change the manual page in this case.
+  
+  g	= -DHAVEFNMATCH
+  
+  # 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
+  # two lines:
+  
+--- 26,61 ----
+  #b	= -UUNIXPC
+  ##  Define HAVEMEMCMP if you have memcmp otherwise assumes bcmp
+  c	= -DHAVEMEMCMP
+  ##  Define DEFFMTCMD to being how to format the media you use the most
+  ##		This is the DEFault FoRMat CoManD. 
+! 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
+  ##	file name (or longer for BSD) in the archive when the file is compressed
+  #e	= -DLONGZFILE
+  
+  ##  Define HAVE_LCHOWN is the system has an lchown call (like chown but does
+  ##  not follow symlinks)
+  e2      = -DHAVE_LCHOWN
+  
+  ##  Define PRG_COMPRESS to get something other than `gzip'.
+  # you need to edit compfile.c (-G option) if you change this line.
+! f	= -DPRG_COMPRESS='"/usr/bin/gzip"'
+  
+  ## Define HAVEFNMATCH if you want to use the gnu fnmatch() routine for
+  # -y -Y -w -W matching.
+  # If it is not defined, a primitive replacement match routine is used that
+  # only supports patterns of the form "cccc" and "cccc*".  Make sure that
+  # you change the manual page in this case.
+  
+  g	= -DHAVEFNMATCH
+  
++ ## Define HAVE_PARAM_H if your system has sys/param.h. This is used for BSD
++ #  detection.
++ 
++ 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
+  # two lines:
+  
+***************
+*** 69,83 ****
+  
+  # even more warnings flags..
+  MW=
+  #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}
+  
+! CC=gcc
+  
+! CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e ${e2} $f $g $I
+  LDFLAGS =
+  
+  afio : afio.o compfile.o exten.o match.o $M
+  	${CC} ${LDFLAGS} afio.o compfile.o exten.o match.o $M -o afio
+  
+--- 74,91 ----
+  
+  # even more warnings flags..
+  MW=
+  #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 = -fomit-frame-pointer -fno-strength-reduce
+  
+! #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 $f $g $h $I
+  LDFLAGS =
+  
+  afio : afio.o compfile.o exten.o match.o $M
+  	${CC} ${LDFLAGS} afio.o compfile.o exten.o match.o $M -o afio
+  
+***************
+*** 86,97 ****
+  	rm -f regtest/cmpstat regtest/makesparse
+  	rm -f regtest/statsize regtest/statsize64
+  	cd regtest; /bin/sh regtest.clean
+  
+  install: afio
+! 	cp afio /usr/local/bin
+! 	cp afio.1 /usr/share/man/man1
+  
+  # generate default list of -E extensions from manpage
+  # note: on sun, I had to change awk command below to nawk or gawk
+  # to get it to work.
+  exten_default.h : afio.1
+--- 94,106 ----
+  	rm -f regtest/cmpstat regtest/makesparse
+  	rm -f regtest/statsize regtest/statsize64
+  	cd regtest; /bin/sh regtest.clean
+  
+  install: afio
+! 	install -cs -o root -g wheel afio ${PREFIX}/bin
+! 	install -c -o root -g wheel afio.1 ${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
+  # to get it to work.
+  exten_default.h : afio.1
diff -ruN --exclude=CVS /usr/ports/sysutils/afio/files/patch-ab /usr/home/trn/afio/files/patch-ab
--- /usr/ports/sysutils/afio/files/patch-ab	Mon Sep 29 19:36:20 2003
+++ /usr/home/trn/afio/files/patch-ab	Sat Jan 21 17:32:12 2006
@@ -1,33 +1,83 @@
---- afio.c.orig	Tue Oct  9 23:03:53 2001
-+++ afio.c	Mon Sep 29 16:34:02 2003
-@@ -613,7 +613,7 @@
-                aruntil, arbsize);    
- #else
-       fprintf (stderr, "Media size %ld is less than block size %d\n",
--	       (ulong) aruntil, arbsize);
-+	       (u_long) aruntil, arbsize);
- #endif
-    usage ();
-     }
-@@ -2929,10 +2929,10 @@
-          see out(). 
-        */
-       if(asb->sb_rdev==0) asb->sb_rdev=(asb->sb_dev << 16) + asb->sb_ino;
--      if (mknod (name, asb->sb_mode, asb->sb_rdev) < 0
-+      if (mkfifo (name, asb->sb_mode) < 0
- 	  && (errno != ENOENT
- 	      || dirneed (name) < 0
--	      || mknod (name, asb->sb_mode, asb->sb_rdev) < 0))
-+	      || mkfifo (name, asb->sb_mode) < 0))
- 	return (warn (name, syserr ()));
-       break;
-     case S_IFDIR:
-@@ -2960,7 +2960,7 @@
- 	return (warn (name, syserr ()));
-       break;
- #endif /* S_IFIFO */
--#ifdef	S_IFSOCK
-+#ifdef	S_IFSOCK && !defined (__FreeBSD__)
-     case S_IFSOCK:
-       fd = 0;
-       if (exists)
+*** afio.c.orig	Sat Dec 20 17:16:13 2003
+--- afio.c	Sat Jan 21 17:31:23 2006
+***************
+*** 648,658 ****
+           daniel.andersson at 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 at 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-2.5.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list