diff options
author | ohauer <ohauer@FreeBSD.org> | 2014-02-24 07:58:35 +0800 |
---|---|---|
committer | ohauer <ohauer@FreeBSD.org> | 2014-02-24 07:58:35 +0800 |
commit | 1bc6aa2bcb52a2cba526ed32c67fe86a3b04c2fc (patch) | |
tree | 6ed12e82e1add78713035b14a076878c0fcbb9b1 /dns | |
parent | 20865ca28fb6c9aeffad124b501d351a9bde4de9 (diff) | |
download | freebsd-ports-gnome-1bc6aa2bcb52a2cba526ed32c67fe86a3b04c2fc.tar.gz freebsd-ports-gnome-1bc6aa2bcb52a2cba526ed32c67fe86a3b04c2fc.tar.zst freebsd-ports-gnome-1bc6aa2bcb52a2cba526ed32c67fe86a3b04c2fc.zip |
- remove duplicate PORTDOCS (from r343903)
- remove pre-patch delay
- remove PKGMESSAGE and PKG-INSTALL from post-install section
- move MANx into pkg-plist
- move pkg-install and pkg-deinstall into pkg-plist
- adopt ${opt}_ENABLE|ON syntax
Diffstat (limited to 'dns')
-rw-r--r-- | dns/nsd3/Makefile | 96 | ||||
-rw-r--r-- | dns/nsd3/files/pkg-deinstall.in | 16 | ||||
-rw-r--r-- | dns/nsd3/files/pkg-install.in | 19 | ||||
-rw-r--r-- | dns/nsd3/pkg-plist | 14 |
4 files changed, 31 insertions, 114 deletions
diff --git a/dns/nsd3/Makefile b/dns/nsd3/Makefile index de07c08ac225..4cb864c87b75 100644 --- a/dns/nsd3/Makefile +++ b/dns/nsd3/Makefile @@ -3,6 +3,7 @@ PORTNAME= nsd PORTVERSION= 3.2.17 +PORTREVISION= 1 CATEGORIES= dns ipv6 MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/ \ ftp://ftp.rhnet.is/pub/nsd/ @@ -13,8 +14,6 @@ COMMENT= Authoritative only non-recursive name server LICENSE= BSD3CLAUSE -PORTDOCS= CREDITS ChangeLog LICENSE NSD-DATABASE NSD-DIFFFILE \ - CONFLICTS= nsd-[0-2]* nsd-4* USE_RC_SUBR= nsd @@ -33,18 +32,13 @@ CONFIGURE_ARGS= --with-user=${NSDUSER} \ --with-dbfile=${NSDDBDIR}/nsd.db \ --with-pidfile=${NSDRUNDIR}/nsd.pid -SUB_FILES= pkg-install pkg-deinstall -SUB_LIST+= NSDUSER=${NSDUSER} \ +PLIST_SUB= NSDUSER=${NSDUSER} \ NSDGROUP=${NSDGROUP} \ NSDDBDIR=${NSDDBDIR} \ NSDRUNDIR=${NSDRUNDIR} USE_OPENSSL= yes -MAN5= nsd.conf.5 -MAN8= nsd.8 nsdc.8 zonec.8 nsd-checkconf.8 nsd-notify.8 nsd-patch.8 \ - nsd-xfer.8 - PORTDOCS= CREDITS ChangeLog LICENSE NSD-DATABASE NSD-DIFFFILE \ NSD-FOR-BIND-USERS README README.icc RELNOTES \ REQUIREMENTS TESTPLAN TODO UPGRADING coding-style \ @@ -67,88 +61,32 @@ MAXIPS_DESC= Raise max-ips from 8 to ${NSDMAX_IPS} RRL_DESC= Response Rate Limiting EUI_RRTYPES_DESC= EUI48 and EUI64 RRtypes support -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MROOT_SERVER} -CONFIGURE_ARGS+= --enable-root-server -.endif - -.if empty(PORT_OPTIONS:MLARGEFILE) -CONFIGURE_ARGS+= --disable-largefile -.endif - -.if empty(PORT_OPTIONS:MIPV6) -CONFIGURE_ARGS+= --disable-ipv6 -.endif +ROOT_SERVER_CONFIGURE_ENABLE= root-server +LARGEFILE_CONFIGURE_ENABLE= largefile +IPV6_CONFIGURE_ENABLE= ipv6 +BIND8_STATS_CONFIGURE_ON= --enable-bind8-stats +CHECKING_CONFIGURE_ENABLE= checking +NSEC3_CONFIGURE_ENABLE= nsec3 +MINRESPSIZE_CONFIGURE_ENABLE= minimal-responses +NSEC3PREHASH_CONFIGURE_ENABLE= full-prehash +MMAP_CONFIGURE_ENABLE= mmap +MAXIPS_CONFIGURE_ON= --with-max-ips=${NSDMAX_IPS} +RRL_CONFIGURE_ENABLE= ratelimit +EUI_RRTYPES_CONFIGURE_ENABLE= draft-rrtypes -.if ${PORT_OPTIONS:MBIND8_STATS} -CONFIGURE_ARGS+= --enable-bind8-stats -.endif +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MZONE_STATS} -. if empty(PORT_OPTIONS:MBIND8_STATS) +. if !${PORT_OPTIONS:MBIND8_STATS} CONFIGURE_ARGS+= --enable-bind8-stats . endif CONFIGURE_ARGS+= --enable-zone-stats .endif -.if ${PORT_OPTIONS:MCHECKING} -CONFIGURE_ARGS+= --enable-checking -.endif - -.if empty(PORT_OPTIONS:MNSEC3) -CONFIGURE_ARGS+= --disable-nsec3 -.endif - -.if empty(PORT_OPTIONS:MMINRESPSIZE) -CONFIGURE_ARGS+= --disable-minimal-responses -.endif - -.if empty(PORT_OPTIONS:MNSEC3PREHASH) -CONFIGURE_ARGS+= --disable-full-prehash -.endif - -.if ${PORT_OPTIONS:MMMAP} -CONFIGURE_ARGS+= --enable-mmap -.endif - -.if ${PORT_OPTIONS:MMAXIPS} -CONFIGURE_ARGS+= --with-max-ips=${NSDMAX_IPS} -.endif - -.if ${PORT_OPTIONS:MRRL} -CONFIGURE_ARGS+= --enable-ratelimit -.endif - -.if ${PORT_OPTIONS:MEUI_RRTYPES} -CONFIGURE_ARGS+= --enable-draft-rrtypes -.endif - -pre-patch: -.if defined(NSD_OPTIONS) - @${ECHO_MSG} - @${ECHO_MSG} - @${ECHO_MSG} - @${ECHO_MSG} "***** ALERT *****" - @${ECHO_MSG} "NSD_OPTIONS is no longer supported," - @${ECHO_MSG} "${PORTNAME} uses OPTIONS, consider running" - @${ECHO_MSG} "# make config" - @${ECHO_MSG} - @${ECHO_MSG} - @${ECHO_MSG} - @sleep 10 -.endif - post-install: ${INSTALL_DATA} ${WRKSRC}/nsd.conf.sample \ ${STAGEDIR}${PREFIX}/etc/nsd/nsd.conf.sample -.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} -.for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}/${f} -.endfor -.endif - @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - @${CAT} ${PKGMESSAGE} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/dns/nsd3/files/pkg-deinstall.in b/dns/nsd3/files/pkg-deinstall.in deleted file mode 100644 index fde1e1c22526..000000000000 --- a/dns/nsd3/files/pkg-deinstall.in +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -# $FreeBSD$ - -PATH="/bin:/sbin:/usr/bin:/usr/sbin" - -NSDDBDIR=%%NSDDBDIR%% -NSDRUNDIR=%%NSDRUNDIR%% - -if [ "$2" = "POST-DEINSTALL" ]; then - echo "=> Deleting ${NSDDBDIR} if empty..." - rm -d ${NSDDBDIR} 2>/dev/null || true - echo "=> Deleting ${NSDRUNDIR} if empty..." - rm -d ${NSDRUNDIR} 2>/dev/null || true -fi - -exit 0 diff --git a/dns/nsd3/files/pkg-install.in b/dns/nsd3/files/pkg-install.in deleted file mode 100644 index 624f4bb59b7c..000000000000 --- a/dns/nsd3/files/pkg-install.in +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -# $FreeBSD$ - -PATH="/bin:/sbin:/usr/bin:/usr/sbin" - -NSDUSER=%%NSDUSER%% -NSDGROUP=%%NSDGROUP%% -NSDDBDIR=%%NSDDBDIR%% -NSDRUNDIR=%%NSDRUNDIR%% - -CHOWN="chown" -INSTALL_DIR="install -d -o ${NSDUSER} -g ${NSDGROUP} -m 0755" - -if [ "$2" = "POST-INSTALL" ]; then - ${INSTALL_DIR} ${NSDDBDIR} ${NSDRUNDIR} - ${CHOWN} -R ${NSDUSER}:${NSDGROUP} ${NSDDBDIR} ${NSDRUNDIR} -fi - -exit 0 diff --git a/dns/nsd3/pkg-plist b/dns/nsd3/pkg-plist index b87f4cb31c49..278a4382303f 100644 --- a/dns/nsd3/pkg-plist +++ b/dns/nsd3/pkg-plist @@ -1,4 +1,12 @@ %%ETCDIR%%/nsd.conf.sample +man/man5/nsd.conf.5.gz +man/man8/nsd-checkconf.8.gz +man/man8/nsd-notify.8.gz +man/man8/nsd-patch.8.gz +man/man8/nsd-xfer.8.gz +man/man8/nsd.8.gz +man/man8/nsdc.8.gz +man/man8/zonec.8.gz sbin/nsd sbin/nsd-checkconf sbin/nsd-notify @@ -6,4 +14,10 @@ sbin/nsd-patch sbin/nsd-xfer sbin/nsdc sbin/zonec +@exec install -o %%NSDUSER%% -g %%NSDGROUP%% -m 0755 -d %%NSDRUNDIR%% +@exec install -o %%NSDUSER%% -g %%NSDGROUP%% -m 0755 -d %%NSDDBDIR%% +@exec chown -R %%NSDUSER%%:%%NSDGROUP%% %%NSDRUNDIR%% +@exec chown -R %%NSDUSER%%:%%NSDGROUP%% %%NSDDBDIR%% @dirrmtry %%ETCDIR%% +@dirrmtry %%NSDRUNDIR%% +@dirrmtry %%NSDDBDIR%% |