pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/bind9 - Reorder assignment to fix "pkglint" warnings.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2357f3fda6b2
branches:  trunk
changeset: 490583:2357f3fda6b2
user:      tron <tron%pkgsrc.org@localhost>
date:      Tue Mar 15 16:07:01 2005 +0000

description:
- Reorder assignment to fix "pkglint" warnings.
- Use RCD_SCRIPTS mechanism to install startup scripts as suggested by
  Greg A. Woods in PR pkg/19099.

diffstat:

 net/bind9/Makefile |  22 +++++++---------------
 net/bind9/PLIST    |   4 +---
 2 files changed, 8 insertions(+), 18 deletions(-)

diffs (83 lines):

diff -r a0539ddebb17 -r 2357f3fda6b2 net/bind9/Makefile
--- a/net/bind9/Makefile        Tue Mar 15 16:02:57 2005 +0000
+++ b/net/bind9/Makefile        Tue Mar 15 16:07:01 2005 +0000
@@ -1,18 +1,18 @@
-# $NetBSD: Makefile,v 1.65 2005/01/26 09:32:31 tron Exp $
+# $NetBSD: Makefile,v 1.66 2005/03/15 16:07:01 tron Exp $
 
 DISTNAME=      bind-${BIND_VERSION}
 PKGNAME=       bind-${BIND_VERSION}pl1
 CATEGORIES=    net
 MASTER_SITES=  ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/
 
+PATCH_SITES=           ${MASTER_SITES}
+PATCHFILES=            9.3.0-patch1
+PATCH_DIST_STRIP=      -p1
+
 MAINTAINER=    tron%NetBSD.org@localhost
 HOMEPAGE=      http://www.isc.org/sw/bind/
 COMMENT=       Version 9 of the Berkeley Internet Name Daemon, implementation of DNS
 
-PATCH_SITES=           ${MASTER_SITES}
-PATCHFILES=            9.3.0-patch1
-PATCH_DIST_STRIP=      -p1
-
 BIND_VERSION=  9.3.0
 DIST_SUBDIR=   bind/${BIND_VERSION}
 
@@ -23,6 +23,7 @@
 
 USE_BUILDLINK3=                yes
 USE_LIBTOOL=           yes
+USE_PKGINSTALL=                yes
 
 GNU_CONFIGURE= yes
 CONFIGURE_ARGS+=--with-libtool=yes \
@@ -35,14 +36,6 @@
 
 PTHREAD_OPTS+= native
 
-post-build:
-       ${SED} \
-               -e 's|@PREFIX@|${PREFIX}|' \
-               <${FILESDIR}/named.sh >${WRKDIR}/named
-       ${SED} \
-               -e 's|@PREFIX@|${PREFIX}|' \
-               <${FILESDIR}/lwresd.sh >${WRKDIR}/lwresd
-
 # include/isc/ipv6.h is installed on non-ipv6 platforms
 .if defined(USE_INET6) && (${USE_INET6} == "YES")
 PLIST_SUBST+=  IPV6H="@comment "
@@ -51,6 +44,7 @@
 .endif
 
 PLIST_SRC=     ${WRKDIR}/PLIST
+RCD_SCRIPTS=   lwresd named
 
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bind9
@@ -67,8 +61,6 @@
        (cd ${PREFIX}; ${FIND} share/doc/bind9 -type f -print ) >> ${PLIST_SRC}
        (cd ${PREFIX}; ${FIND} share/doc/bind9 -type d -print ) | \
                ${SED} -e 's/^/@dirrm /' | ${SORT} -r >> ${PLIST_SRC}
-       ${INSTALL_SCRIPT} ${WRKDIR}/named ${PREFIX}/etc/rc.d/named9
-       ${INSTALL_SCRIPT} ${WRKDIR}/lwresd ${PREFIX}/etc/rc.d/lwresd
 
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
diff -r a0539ddebb17 -r 2357f3fda6b2 net/bind9/PLIST
--- a/net/bind9/PLIST   Tue Mar 15 16:02:57 2005 +0000
+++ b/net/bind9/PLIST   Tue Mar 15 16:07:01 2005 +0000
@@ -1,11 +1,9 @@
-@comment $NetBSD: PLIST,v 1.13 2004/10/03 09:20:41 tron Exp $
+@comment $NetBSD: PLIST,v 1.14 2005/03/15 16:07:01 tron Exp $
 bin/dig
 bin/host
 bin/isc-config.sh
 bin/nslookup
 bin/nsupdate
-etc/rc.d/lwresd
-etc/rc.d/named9
 ${IPV6H}include/isc/ipv6.h
 include/bind/arpa/inet.h
 include/bind/arpa/nameser.h



Home | Main Index | Thread Index | Old Index