pkgsrc/security/cfs/patches/patch-aa
jlam 76c9a0c91a Add patches from Simon Burge <simonb@wasabisystems.com> to build cfs
without needing -traditional.  This fixes socklen_t lossage mentioned in
the README.netbsd file.  This was tested on i386 NetBSD-1.5 and -current.
2001-06-09 04:32:13 +00:00

55 lines
1.5 KiB
Text

$NetBSD: patch-aa,v 1.4 2001/06/09 04:32:14 jlam Exp $
--- Makefile.orig Thu May 3 11:29:21 2001
+++ Makefile Fri Jun 8 21:15:13 2001
@@ -74,18 +74,19 @@
#CC=cc
#COPT=-O -DNOT_ANSI_C -DPROTOTYPES=0
# for gcc, use
-CC=gcc
-COPT=-O2 -DPROTOTYPES=1
+#CC=gcc
+#COPT=-O2 -DPROTOTYPES=1
+CFLAGS+=${CFS_CFLAGS}
#1B: paths:
#some peple like /usr/local/sbin instead of /usr/local/etc
-BINDIR=/usr/local/bin
-ETCDIR=/usr/local/etc
+BINDIR=${PREFIX}/bin
+ETCDIR=${PREFIX}/sbin
PRINTCMD=enscript -Gr2
# you only need RSAREF for ESM
# these paths WILL have to be changed...
-RSALIB=/usr/mab/rsaref/install/rsaref.a
-RINCLUDES=/usr/mab/rsaref/source
+#RSALIB=/usr/mab/rsaref/install/rsaref.a
+#RINCLUDES=/usr/mab/rsaref/source
# if you're a paranoid fascist, you might want to configure
# default timeouts on the attach command. If you do,
@@ -229,7 +230,7 @@
# (3/3) CONFIGURE: one last thing
#==========================================================================
# finally, comment out the next line:
-CC=you_forgot_to_edit_the_makefile
+#CC=you_forgot_to_edit_the_makefile
# now you're done with local configuration.
@@ -322,6 +323,7 @@
nfsproto.h: nfsproto.x
rpcgen $(RPCOPTS) -h -o nfsproto.h nfsproto.x
+ ./unansi ${OPSYS} nfsproto.h
admproto_xdr.c: admproto.x
rpcgen $(RPCOPTS) -c -o admproto_xdr.c admproto.x
@@ -331,6 +333,7 @@
admproto.h: admproto.x
rpcgen $(RPCOPTS) -h -o admproto.h admproto.x
+ ./unansi ${OPSYS} admproto.h
admproto_clnt.c: admproto.x
rpcgen $(RPCOPTS) -l -o admproto_clnt.c admproto.x