summaryrefslogtreecommitdiff
path: root/security/cfs
diff options
context:
space:
mode:
Diffstat (limited to 'security/cfs')
-rw-r--r--security/cfs/Makefile19
-rw-r--r--security/cfs/distinfo4
-rw-r--r--security/cfs/patches/patch-aa26
3 files changed, 34 insertions, 15 deletions
diff --git a/security/cfs/Makefile b/security/cfs/Makefile
index f0dbfec4322..b94cac3937c 100644
--- a/security/cfs/Makefile
+++ b/security/cfs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2004/04/25 04:48:00 snj Exp $
+# $NetBSD: Makefile,v 1.14.2.1 2004/07/29 21:54:34 agc Exp $
DISTNAME= cfs-1.4.1
PKGREVISION= 1
@@ -29,6 +29,7 @@ CFS_SUBST+= cmkkey->cfs_mkkey CMKKEY->CFS_MKKEY
CFS_SUBST+= cname->cfs_name CNAME->CFS_NAME
CFS_SUBST+= cpasswd->cfs_passwd CPASSWD->CFS_PASSWD
+.include "../../mk/compiler.mk"
.include "../../mk/bsd.prefs.mk"
MAKE_ENV+= OPSYS="${OPSYS}"
@@ -50,7 +51,9 @@ CFS_SUBST+= getpassword->getpass
CFLAGS+= -DHAVE_GETPASS
CFS_BUILD_SCRIPT= ${WRKSRC}/netbsd_make_with_bad_rpcgen
.elif ${OPSYS} == "SunOS"
+. if !empty(CC_VERSION:Mgcc)
CFLAGS+= -traditional
+. endif
CFLAGS+= -DPROTOTYPES=1
CFLAGS+= -DSOLARIS2X -DPORTMAP -DPTMX
MAKE_ENV+= MAKE=${MAKE_PROGRAM}
@@ -59,7 +62,9 @@ MAKE_ENV+= COMPAT=
MAKE_ENV+= RPCOPTS=
CFS_BUILD_SCRIPT= ${WRKSRC}/make_with_bad_rpcgen
.elif ${OPSYS} == "Linux"
+. if !empty(CC_VERSION:Mgcc)
CFLAGS+= -traditional
+. endif
CFLAGS+= -DPROTOTYPES=1
CFLAGS+= -U__OPTIMIZE__ -U__STDC__ -Dd_fileno=d_ino
MAKE_ENV+= MAKE=${MAKE_PROGRAM}
@@ -76,25 +81,25 @@ DOCDIR= ${PREFIX}/share/doc/cfs
RCD_SCRIPTS= cfsd
post-extract:
- ${RM} -f ${WRKSRC}/esm.1
+ @${RM} -f ${WRKSRC}/esm.1
post-patch:
- cd ${WRKSRC}; for file in *; do \
+ @cd ${WRKSRC}; for file in *; do \
${MV} -f $${file} $${file}.presubst; \
dest=`${ECHO} $${file} | ${SED} ${CFS_SUBST_SED}`; \
${SED} ${CFS_SUBST_SED} $${file}.presubst > $${dest}; \
${RM} -f $${file}.presubst; \
done
- ${CHMOD} +x ${CFS_BUILD_SCRIPT}
+ @${CHMOD} +x ${CFS_BUILD_SCRIPT}
pre-build:
- ${SED} -e "s|@AWK@|${AWK}|g" \
+ @${SED} -e "s|@AWK@|${AWK}|g" \
-e "s|@MV@|${MV}|g" \
${FILESDIR}/unansi.sh > ${WRKSRC}/unansi
- ${CHMOD} +x ${WRKSRC}/unansi
+ @${CHMOD} +x ${WRKSRC}/unansi
do-build:
- cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
${SH} ${CFS_BUILD_SCRIPT} ${ALL_TARGET}
post-install:
diff --git a/security/cfs/distinfo b/security/cfs/distinfo
index fe48580e5c9..1b4f61084fd 100644
--- a/security/cfs/distinfo
+++ b/security/cfs/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2001/06/09 04:32:14 jlam Exp $
+$NetBSD: distinfo,v 1.4.14.1 2004/07/29 21:54:34 agc Exp $
SHA1 (cfs-1.4.1.tar.gz) = be3f73b233149477b739456498c71b120d5f2fb5
Size (cfs-1.4.1.tar.gz) = 98943 bytes
-SHA1 (patch-aa) = 7cb790ac11d0626728db113ad8cccb11bd72d75d
+SHA1 (patch-aa) = c22350cfbcec8ad23bcafd6d9bc5017fb098d259
SHA1 (patch-ab) = 1ff2d2e32b87332ec66cc8f01299fa4b1ddac81a
SHA1 (patch-ac) = 354290ff606fab97b73980e6e512f10ef1397f01
SHA1 (patch-ad) = 2ed5967d59d8f91948b2dd9ed4b18c5073d63615
diff --git a/security/cfs/patches/patch-aa b/security/cfs/patches/patch-aa
index db8b2499343..290dcb00327 100644
--- a/security/cfs/patches/patch-aa
+++ b/security/cfs/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.4 2001/06/09 04:32:14 jlam Exp $
+$NetBSD: patch-aa,v 1.4.14.1 2004/07/29 21:54:34 agc Exp $
---- Makefile.orig Thu May 3 11:29:21 2001
-+++ Makefile Fri Jun 8 21:15:13 2001
+--- Makefile.orig 2001-05-04 04:29:21.000000000 +1000
++++ Makefile
@@ -74,18 +74,19 @@
#CC=cc
#COPT=-O -DNOT_ANSI_C -DPROTOTYPES=0
@@ -28,7 +28,7 @@ $NetBSD: patch-aa,v 1.4 2001/06/09 04:32:14 jlam Exp $
# if you're a paranoid fascist, you might want to configure
# default timeouts on the attach command. If you do,
-@@ -229,7 +230,7 @@
+@@ -229,7 +230,7 @@ RINCLUDES=/usr/mab/rsaref/source
# (3/3) CONFIGURE: one last thing
#==========================================================================
# finally, comment out the next line:
@@ -37,7 +37,7 @@ $NetBSD: patch-aa,v 1.4 2001/06/09 04:32:14 jlam Exp $
# now you're done with local configuration.
-@@ -322,6 +323,7 @@
+@@ -322,6 +323,7 @@ nfsproto_svr.c: nfsproto.x
nfsproto.h: nfsproto.x
rpcgen $(RPCOPTS) -h -o nfsproto.h nfsproto.x
@@ -45,7 +45,7 @@ $NetBSD: patch-aa,v 1.4 2001/06/09 04:32:14 jlam Exp $
admproto_xdr.c: admproto.x
rpcgen $(RPCOPTS) -c -o admproto_xdr.c admproto.x
-@@ -331,6 +333,7 @@
+@@ -331,6 +333,7 @@ admproto_svr.c: admproto.x
admproto.h: admproto.x
rpcgen $(RPCOPTS) -h -o admproto.h admproto.x
@@ -53,3 +53,17 @@ $NetBSD: patch-aa,v 1.4 2001/06/09 04:32:14 jlam Exp $
admproto_clnt.c: admproto.x
rpcgen $(RPCOPTS) -l -o admproto_clnt.c admproto.x
+@@ -359,10 +362,10 @@ printout: $(SRCS) cfs.h mcg.h safer.h ad
+ $(PRINTCMD) $(SRCS) cfs.h mcg.h safer.h admproto.h nfsproto.h
+
+ install_cfs: cfsd cattach cdetach cmkdir
+- install -m 0755 -c -o root cfsd $(ETCDIR)
+- install -m 0755 -c -o root cattach cdetach cmkdir cpasswd cfssh \
++ ${BSD_INSTALL} -m 0755 -c -o root cfsd $(ETCDIR)
++ ${BSD_INSTALL} -m 0755 -c -o root cattach cdetach cmkdir cpasswd cfssh \
+ cname ccat cmkkey $(BINDIR)
+-# install -m 0755 i o $(BINDIR)
++# ${BSD_INSTALL} -m 0755 i o $(BINDIR)
+ @echo "Kill any running cfsd prior to restarting."
+ @echo "See the README file for more information."
+ @echo "Don't forget to install the man pages (*.[18])."