pkgsrc/archivers/afio/patches/patch-aa
minskim a75e443d46 - Update afio to 2.5.
- Use buildlink framework.
- NO_CONFIGURE=yes
- Enable pkgviews installation.

Changes in 2.5:

  - In afio.h ulo and ull macros, added L and LL letters in constants.
  - Documented `long long' issues in PORTING file.  Removed ifdeffed
    typedef ulonglong porting hacks from the afio.h file.
  - Changed mknod() call to mkfifo() call when creating named pipe from
    archive.  Freebsd cannot make named pipes with mknod.
  - Added some extra defines to suppress some warnings on sun platform.
    Also added some stuff around awk invocations in makefile and regtest
    to make things easier on sun -- the sun platform I tried it on had a
    default awk that was too ancient to understand things like gsub.
  - Added some discussion of sun and freebsd to PORTING file.
  - Fix to regression test: no longer complains if two compared directory
    inodes have a size difference.  Bases on bug report by vasudeva.
  - Changed sanity check on the stdin at the start of executing -o mode:
    now the check only happens if stdin is a tty.  This allows scripts to
    make empty archives, and is needed for compatibility with tob.  Based
    on problem report by Dirk Eddelbuettel.
  - Changed read() to readall() in outdata().
  - Updated SCRIPTS file.
2004-04-11 23:04:50 +00:00

40 lines
1.6 KiB
Text

$NetBSD: patch-aa,v 1.2 2004/04/11 23:04:50 minskim Exp $
--- Makefile.orig 2003-12-21 04:23:51.000000000 -0600
+++ 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.
-d = -DDEFFMTCMD='"fdformat /dev/fd0H1440"'
+d = -DDEFFMTCMD='"cdrecord dev=/dev/rcd0d -v -force blank=all"' # or '"fdformat /dev/fd0a"'
## 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
@@ -71,11 +71,12 @@ LARGEFILEFLAGS=-D_FILE_OFFSET_BITS=64 -D
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 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer ${LARGEFILEFLAGS} ${MW}
+CFLAGS1 = ${LARGEFILEFLAGS}
-CC=gcc
+#CC=gcc
-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
LDFLAGS =
afio : afio.o compfile.o exten.o match.o $M
@@ -88,8 +89,8 @@ clean:
cd regtest; /bin/sh regtest.clean
install: afio
- cp afio /usr/local/bin
- cp afio.1 /usr/share/man/man1
+ cp afio ${PREFIX}/bin
+ cp 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