diff options
author | edwin <edwin@FreeBSD.org> | 2002-11-24 10:55:50 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2002-11-24 10:55:50 +0000 |
commit | 778a23c4a61ecc1ede164e73395458889119c2c1 (patch) | |
tree | 0687880601bf7951042aec277e436d387090a83d /net | |
parent | 37685f464dd093c4c6d40a8605fb6b8094eddf6d (diff) | |
download | FreeBSD-ports-778a23c4a61ecc1ede164e73395458889119c2c1.zip FreeBSD-ports-778a23c4a61ecc1ede164e73395458889119c2c1.tar.gz |
Make net/cap compiling again
PR: ports/44879
Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/cap/Makefile | 4 | ||||
-rw-r--r-- | net/cap/files/m4.setup.in | 2 | ||||
-rw-r--r-- | net/cap/files/patch-lib-cap-ablog.c | 11 | ||||
-rw-r--r-- | net/cap/pkg-descr | 2 |
4 files changed, 18 insertions, 1 deletions
diff --git a/net/cap/Makefile b/net/cap/Makefile index 4c00081..88fffda 100644 --- a/net/cap/Makefile +++ b/net/cap/Makefile @@ -31,6 +31,8 @@ DIST_SUBDIR= cap60 ALL_TARGET= libsmade dummy-libinstall programs INSTALL_TARGET= include libinstall install +USE_REINPLACE= YES + MAN1= AUFS.1 ash.1 atlook.1 atprint.1 cvt2apple.1 getzones.1 \ instappl.1 snitch.1 MAN3= CAP.3 @@ -57,6 +59,8 @@ READMES= applications/papif applications/lwsrv applications/aufs \ pre-patch: @(cd ${WRKSRC}; \ for f in ../cap60.patch* ; do ${PATCH} -s -p < $$f ; done) +post-patch: + ${FIND} ${WRKSRC} -name Makefile.m4 -exec ${REINPLACE_CMD} -e 's/CFLAGS=/CFLAGS+=/' \{\} \; pre-install: @${RM} -f ${WRKSRC}/libinstall diff --git a/net/cap/files/m4.setup.in b/net/cap/files/m4.setup.in index b62f5bb..f25d7cb 100644 --- a/net/cap/files/m4.setup.in +++ b/net/cap/files/m4.setup.in @@ -537,7 +537,7 @@ syscmd(rm -f datestring()) MFLAGS=mflags() LFLAGS=lflags() -CC=thecompiler() +CC?=thecompiler() LD=theloader() SHELL=/bin/sh INSTALLER=theinstaller() diff --git a/net/cap/files/patch-lib-cap-ablog.c b/net/cap/files/patch-lib-cap-ablog.c new file mode 100644 index 0000000..88c1db6 --- /dev/null +++ b/net/cap/files/patch-lib-cap-ablog.c @@ -0,0 +1,11 @@ +--- lib/cap/ablog.c.foo Mon Nov 4 16:43:02 2002 ++++ lib/cap/ablog.c Mon Nov 4 16:43:11 2002 +@@ -91,7 +91,7 @@ + #endif USEVPRINTF + int saveerr; + extern int errno; +- extern int sys_nerr; ++ extern __const int sys_nerr; + #ifndef __FreeBSD__ + extern char *sys_errlist[]; + #endif diff --git a/net/cap/pkg-descr b/net/cap/pkg-descr index 1e9d03a..ce717da 100644 --- a/net/cap/pkg-descr +++ b/net/cap/pkg-descr @@ -19,3 +19,5 @@ Note: Files are installed into following locations: /usr/local/etc/cap: Sample configuration files. /usr/local/lib/cap: More sample configuration files. /usr/local/share/doc/cap: Relevant documentation. + +WWW: http://www.cs.mu.oz.au/appletalk/cap.html |