aboutsummaryrefslogtreecommitdiff
path: root/net/cap
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2002-11-24 10:55:50 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2002-11-24 10:55:50 +0000
commit2359546dd75d8ecdf7846106ded44d305f8b83ea (patch)
treeb68f317ea0675b0d32d4b539fcaf50fa2340896d /net/cap
parentf25385c4edfd4507d243ed4e73cfea63414e0837 (diff)
downloadports-2359546dd75d8ecdf7846106ded44d305f8b83ea.tar.gz
ports-2359546dd75d8ecdf7846106ded44d305f8b83ea.zip
Notes
Diffstat (limited to 'net/cap')
-rw-r--r--net/cap/Makefile4
-rw-r--r--net/cap/files/m4.setup.in2
-rw-r--r--net/cap/files/patch-lib-cap-ablog.c11
-rw-r--r--net/cap/pkg-descr2
4 files changed, 18 insertions, 1 deletions
diff --git a/net/cap/Makefile b/net/cap/Makefile
index 4c00081b6656..88fffda1d166 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 b62f5bb40b4d..f25d7cb0b4c7 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 000000000000..88c1db654032
--- /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 1e9d03a975c1..ce717da77bde 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