aboutsummaryrefslogtreecommitdiffstats
path: root/net/bind8
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2002-02-28 13:31:24 +0800
committerdougb <dougb@FreeBSD.org>2002-02-28 13:31:24 +0800
commitbce5584e4cde120d49f688782f155f8fe1db39e4 (patch)
treeeaeb3a9517d82370c6bdf55538f3eae177bd6fef /net/bind8
parent5f3ba43780215768a0b46f11cd60f1af68f4118d (diff)
downloadfreebsd-ports-gnome-bce5584e4cde120d49f688782f155f8fe1db39e4.tar.gz
freebsd-ports-gnome-bce5584e4cde120d49f688782f155f8fe1db39e4.tar.zst
freebsd-ports-gnome-bce5584e4cde120d49f688782f155f8fe1db39e4.zip
Small tuneups:
* Make patching silent, like standard ports * Use MANPREFIX for man pages * Add a patch to specify the right arguments to getgrouplist, by __FreeBSD_version
Diffstat (limited to 'net/bind8')
-rw-r--r--net/bind8/Makefile4
-rw-r--r--net/bind8/files/patch-aa2
-rw-r--r--net/bind8/files/patch-port_freebsd_include_port_before.h25
3 files changed, 28 insertions, 3 deletions
diff --git a/net/bind8/Makefile b/net/bind8/Makefile
index 5fa4246a9ad7..6ab10759a6f6 100644
--- a/net/bind8/Makefile
+++ b/net/bind8/Makefile
@@ -33,8 +33,8 @@ MAN7= hostname.7 mailaddr.7
MAN8= named-bootconf.8 named-xfer.8 named.8 ndc.8 nslookup.8 \
nsupdate.8
-PATCH_ARGS= -d ${WRKDIR}
-PATCH_DIST_ARGS= -d ${WRKDIR}
+PATCH_ARGS= -s -d ${WRKDIR}
+PATCH_DIST_ARGS= -s -d ${WRKDIR}
post-install:
.if !defined(NOPORTDOCS)
diff --git a/net/bind8/files/patch-aa b/net/bind8/files/patch-aa
index d4af4cb15358..7ed25b139ea2 100644
--- a/net/bind8/files/patch-aa
+++ b/net/bind8/files/patch-aa
@@ -13,7 +13,7 @@
+'DESTBIN=${PREFIX}/bin'
+'DESTSBIN=${PREFIX}/sbin'
+'DESTEXEC=${PREFIX}/libexec'
-+'DESTMAN=${PREFIX}/man'
++'DESTMAN=${MANPREFIX}/man'
+'DESTHELP=${PREFIX}/share/misc'
+'DESTETC=${PREFIX}/etc'
'DESTRUN=/var/run'
diff --git a/net/bind8/files/patch-port_freebsd_include_port_before.h b/net/bind8/files/patch-port_freebsd_include_port_before.h
new file mode 100644
index 000000000000..59b9eac2a0bc
--- /dev/null
+++ b/net/bind8/files/patch-port_freebsd_include_port_before.h
@@ -0,0 +1,25 @@
+--- src/port/freebsd/include/port_before.h.orig Wed Oct 31 23:29:21 2001
++++ src/port/freebsd/include/port_before.h Tue Feb 26 21:50:52 2002
+@@ -15,6 +15,7 @@
+ #define SETPWENT_VOID
+ #endif
+
++#include <sys/param.h>
+ #include <sys/types.h>
+
+ #define GROUP_R_RETURN struct group *
+@@ -26,8 +27,14 @@
+ #define GROUP_R_ENT_ARGS void
+ #define GROUP_R_OK gptr
+ #define GROUP_R_BAD NULL
++
++#if defined(__FreeBSD_version) && __FreeBSD_version >= 500030
++#define GETGROUPLIST_ARGS const char *name, gid_t basegid, gid_t *groups, \
++ int *ngroups
++#else
+ #define GETGROUPLIST_ARGS const char *name, int basegid, int *groups, \
+ int *ngroups
++#endif
+
+ #define HOST_R_RETURN struct hostent *
+ #define HOST_R_SET_RETURN void