aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-01-07 07:15:20 +0800
committermat <mat@FreeBSD.org>2014-01-07 07:15:20 +0800
commitc3312a8a3d8e78248e879f100b3b0705877295d6 (patch)
tree4625f45fa4a8153ec08829b7a6bc153b30a3dc24
parentb284f5de05209f3e622b305853fef9cbdf60dce5 (diff)
downloadfreebsd-ports-gnome-c3312a8a3d8e78248e879f100b3b0705877295d6.tar.gz
freebsd-ports-gnome-c3312a8a3d8e78248e879f100b3b0705877295d6.tar.zst
freebsd-ports-gnome-c3312a8a3d8e78248e879f100b3b0705877295d6.zip
Yet another round of fixes.
This time, it seems all of REPLACE_BASE, not REPLACE_BASE and post Bind removal from base seem to work consistently.
-rw-r--r--dns/bind98/Makefile13
-rw-r--r--dns/bind98/pkg-plist40
-rw-r--r--dns/bind99/Makefile13
-rw-r--r--dns/bind99/pkg-plist40
4 files changed, 52 insertions, 54 deletions
diff --git a/dns/bind98/Makefile b/dns/bind98/Makefile
index 95ed8c6dcdbf..c29000cae098 100644
--- a/dns/bind98/Makefile
+++ b/dns/bind98/Makefile
@@ -2,7 +2,7 @@
PORTNAME= bind98
PORTVERSION= 9.8.6
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= dns net ipv6
MASTER_SITES= ${MASTER_SITE_ISC}
MASTER_SITE_SUBDIR= bind9/${ISCVERSION}
@@ -22,6 +22,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var --disable-linux-caps \
--disable-symtable \
--with-randomdev=/dev/random
+ETCDIR= ${PREFIX}/etc/namedb
CONFLICTS= bind9*-9.[45679].* bind9*-sdb-9.[45679].* bind-tools-9.*
@@ -106,13 +107,11 @@ GSSAPI_CONFIGURE_WITH= gssapi
ARCH= x86_64
.endif
-.if ${PORT_OPTIONS:MLINKS} && empty(${PORT_OPTIONS:MREPLACE_BASE})
-PLIST_SUB+= LINKS=""
-.else
-PLIST_SUB+= LINKS="@comment "
+.if !${PORT_OPTIONS:MLINKS} || ${PORT_OPTIONS:MREPLACE_BASE}
+PKGINSTALL=${NONEXISTENT}
.endif
-.if ${PORT_OPTIONS:MTHREADS} && empty(PORT_OPTIONS:MDLZ_MYSQL)
+.if ${PORT_OPTIONS:MTHREADS} && !${PORT_OPTIONS:MDLZ_MYSQL}
CONFIGURE_ARGS+= --enable-threads
.else
CONFIGURE_ARGS+= --disable-threads
@@ -139,7 +138,7 @@ BIND_DESTETC= /etc/namedb
PLIST_SUB+= SHARE_MAN=""
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000100
BIND_DESTETC= ${PREFIX}/etc/namedb
-PKGINSTALL= /nonexistent
+PKGINSTALL= ${NONEXISTENT}
.else
BIND_DESTETC= ${PREFIX}/etc
.endif
diff --git a/dns/bind98/pkg-plist b/dns/bind98/pkg-plist
index 7f6386cd5e29..a63c5308ac38 100644
--- a/dns/bind98/pkg-plist
+++ b/dns/bind98/pkg-plist
@@ -334,26 +334,26 @@ sbin/rndc
sbin/rndc-confgen
@unexec rm -f %%BIND_DESTETC%%/rndc.conf.sample
%%NOBASE%%etc/rc.d/named
-%%NOBASE%%@unexec if cmp -s %%BIND_DESTETC%%/named.conf.sample %%BIND_DESTETC%%/named.conf; then rm -f %%BIND_DESTETC%%/named.conf; fi
-%%NOBASE%%%%BIND_DESTETC%%/named.conf.sample
-%%NOBASE%%@exec if [ ! -f %%BIND_DESTETC%%/named.conf ] ; then cp -p %D/%F %B/named.conf; fi
-%%NOBASE%%%%BIND_DESTETC%%/named.root
-%%NOBASE%%%%BIND_DESTETC%%/master/empty.db
-%%NOBASE%%%%BIND_DESTETC%%/master/localhost-forward.db
-%%NOBASE%%%%BIND_DESTETC%%/master/localhost-reverse.db
-%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/dynamic
-%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/dynamic
-%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/dynamic
-%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/master
-%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/master
-%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/master
-%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/slave
-%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/slave
-%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/slave
-%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/working
-%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/working
-%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/working
-%%NOBASE%%@dirrmtry %%BIND_DESTETC%%
+%%NOBASE%%@unexec if cmp -s %D/%%ETCDIR%%/named.conf.sample %D/%%ETCDIR%%/named.conf; then rm -f %D/%%ETCDIR%%/named.conf; fi
+%%NOBASE%%%%ETCDIR%%/named.conf.sample
+%%NOBASE%%@exec if [ ! -f %D/%%ETCDIR%%/named.conf ] ; then cp -p %D/%F %B/named.conf; fi
+%%NOBASE%%%%ETCDIR%%/named.root
+%%NOBASE%%%%ETCDIR%%/master/empty.db
+%%NOBASE%%%%ETCDIR%%/master/localhost-forward.db
+%%NOBASE%%%%ETCDIR%%/master/localhost-reverse.db
+%%NOBASE%%@exec mkdir %D/%%ETCDIR%%/dynamic
+%%NOBASE%%@exec chown bind:bind %D/%%ETCDIR%%/dynamic
+%%NOBASE%%@dirrmtry %%ETCDIR%%/dynamic
+%%NOBASE%%@exec mkdir %D/%%ETCDIR%%/master
+%%NOBASE%%@exec chown bind:bind %D/%%ETCDIR%%/master
+%%NOBASE%%@dirrmtry %%ETCDIR%%/master
+%%NOBASE%%@exec mkdir %D/%%ETCDIR%%/slave
+%%NOBASE%%@exec chown bind:bind %D/%%ETCDIR%%/slave
+%%NOBASE%%@dirrmtry %%ETCDIR%%/slave
+%%NOBASE%%@exec mkdir %D/%%ETCDIR%%/working
+%%NOBASE%%@exec chown bind:bind %D/%%ETCDIR%%/working
+%%NOBASE%%@dirrmtry %%ETCDIR%%/working
+%%NOBASE%%@dirrmtry %%ETCDIR%%
@dirrm include/bind9
@dirrm include/dns
@dirrm include/dst
diff --git a/dns/bind99/Makefile b/dns/bind99/Makefile
index eb22f39c1d84..c7c46a9b74ce 100644
--- a/dns/bind99/Makefile
+++ b/dns/bind99/Makefile
@@ -2,7 +2,7 @@
PORTNAME?= bind99
PORTVERSION= 9.9.4
-PORTREVISION?= 6
+PORTREVISION?= 7
CATEGORIES= dns net ipv6
MASTER_SITES= ${MASTER_SITE_ISC}
MASTER_SITE_SUBDIR= bind9/${ISCVERSION}
@@ -23,6 +23,7 @@ CONFIGURE_ARGS= --localstatedir=/var --disable-linux-caps \
--disable-symtable \
--with-randomdev=/dev/random \
--without-python
+ETCDIR= ${PREFIX}/etc/namedb
CONFLICTS= bind9*-9.[45678].* bind9*-sdb-9.[45678].* bind-tools-9.*
@@ -113,13 +114,11 @@ GSSAPI_CONFIGURE_WITH= gssapi
ARCH= x86_64
.endif
-.if ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE)
-PLIST_SUB+= LINKS=""
-.else
-PLIST_SUB+= LINKS="@comment "
+.if !${PORT_OPTIONS:MLINKS} || ${PORT_OPTIONS:MREPLACE_BASE}
+PKGINSTALL=${NONEXISTENT}
.endif
-.if ${PORT_OPTIONS:MTHREADS} && empty(PORT_OPTIONS:MDLZ_MYSQL)
+.if ${PORT_OPTIONS:MTHREADS} && !${PORT_OPTIONS:MDLZ_MYSQL}
CONFIGURE_ARGS+= --enable-threads
.else
CONFIGURE_ARGS+= --disable-threads
@@ -146,7 +145,7 @@ BIND_DESTETC= /etc/namedb
PLIST_SUB+= SHARE_MAN=""
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000100
BIND_DESTETC= ${PREFIX}/etc/namedb
-PKGINSTALL= /nonexistent
+PKGINSTALL= ${NONEXISTENT}
.else
BIND_DESTETC= ${PREFIX}/etc
.endif
diff --git a/dns/bind99/pkg-plist b/dns/bind99/pkg-plist
index fdf5e85c32d5..7ff64acb8d35 100644
--- a/dns/bind99/pkg-plist
+++ b/dns/bind99/pkg-plist
@@ -337,26 +337,26 @@ sbin/rndc
sbin/rndc-confgen
@unexec rm -f %%BIND_DESTETC%%/rndc.conf.sample
%%NOBASE%%etc/rc.d/named
-%%NOBASE%%@unexec if cmp -s %%BIND_DESTETC%%/named.conf.sample %%BIND_DESTETC%%/named.conf; then rm -f %%BIND_DESTETC%%/named.conf; fi
-%%NOBASE%%%%BIND_DESTETC%%/named.conf.sample
-%%NOBASE%%@exec if [ ! -f %%BIND_DESTETC%%/named.conf ] ; then cp -p %D/%F %B/named.conf; fi
-%%NOBASE%%%%BIND_DESTETC%%/named.root
-%%NOBASE%%%%BIND_DESTETC%%/master/empty.db
-%%NOBASE%%%%BIND_DESTETC%%/master/localhost-forward.db
-%%NOBASE%%%%BIND_DESTETC%%/master/localhost-reverse.db
-%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/dynamic
-%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/dynamic
-%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/dynamic
-%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/master
-%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/master
-%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/master
-%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/slave
-%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/slave
-%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/slave
-%%NOBASE%%@exec mkdir %%BIND_DESTETC%%/working
-%%NOBASE%%@exec chown bind:bind %%BIND_DESTETC%%/working
-%%NOBASE%%@dirrmtry %%BIND_DESTETC%%/working
-%%NOBASE%%@dirrmtry %%BIND_DESTETC%%
+%%NOBASE%%@unexec if cmp -s %D/%%ETCDIR%%/named.conf.sample %D/%%ETCDIR%%/named.conf; then rm -f %D/%%ETCDIR%%/named.conf; fi
+%%NOBASE%%%%ETCDIR%%/named.conf.sample
+%%NOBASE%%@exec if [ ! -f %D/%%ETCDIR%%/named.conf ] ; then cp -p %D/%F %B/named.conf; fi
+%%NOBASE%%%%ETCDIR%%/named.root
+%%NOBASE%%%%ETCDIR%%/master/empty.db
+%%NOBASE%%%%ETCDIR%%/master/localhost-forward.db
+%%NOBASE%%%%ETCDIR%%/master/localhost-reverse.db
+%%NOBASE%%@exec mkdir %D/%%ETCDIR%%/dynamic
+%%NOBASE%%@exec chown bind:bind %D/%%ETCDIR%%/dynamic
+%%NOBASE%%@dirrmtry %%ETCDIR%%/dynamic
+%%NOBASE%%@exec mkdir %D/%%ETCDIR%%/master
+%%NOBASE%%@exec chown bind:bind %D/%%ETCDIR%%/master
+%%NOBASE%%@dirrmtry %%ETCDIR%%/master
+%%NOBASE%%@exec mkdir %D/%%ETCDIR%%/slave
+%%NOBASE%%@exec chown bind:bind %D/%%ETCDIR%%/slave
+%%NOBASE%%@dirrmtry %%ETCDIR%%/slave
+%%NOBASE%%@exec mkdir %D/%%ETCDIR%%/working
+%%NOBASE%%@exec chown bind:bind %D/%%ETCDIR%%/working
+%%NOBASE%%@dirrmtry %%ETCDIR%%/working
+%%NOBASE%%@dirrmtry %%ETCDIR%%
@dirrm include/bind9
@dirrm include/dns
@dirrm include/dst