diff options
author | taca <taca@pkgsrc.org> | 2009-12-11 16:21:21 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2009-12-11 16:21:21 +0000 |
commit | 8c8fead3f7fe5cae12ed28f85106de95330c8364 (patch) | |
tree | 565fd17845ca3e2063ba4c3d6ccd571eec6bb031 /net | |
parent | 845d2391340cb4c705f45a1d615494805baff63a (diff) | |
download | pkgsrc-8c8fead3f7fe5cae12ed28f85106de95330c8364.tar.gz |
Modify named9.sh to create /dev/random in chrooted environment
as base system's /etc/rc.d/named.
Bump PKGREVISION.
Diffstat (limited to 'net')
-rw-r--r-- | net/bind9/Makefile | 3 | ||||
-rw-r--r-- | net/bind9/files/named9.sh | 15 | ||||
-rw-r--r-- | net/bind95/Makefile | 3 | ||||
-rw-r--r-- | net/bind95/files/named9.sh | 15 | ||||
-rw-r--r-- | net/bind96/Makefile | 3 | ||||
-rw-r--r-- | net/bind96/files/named9.sh | 14 |
6 files changed, 35 insertions, 18 deletions
diff --git a/net/bind9/Makefile b/net/bind9/Makefile index 9f012c68149..922cc70eff5 100644 --- a/net/bind9/Makefile +++ b/net/bind9/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.109 2009/07/28 20:39:45 reed Exp $ +# $NetBSD: Makefile,v 1.110 2009/12/11 16:21:21 taca Exp $ DISTNAME= bind-${BIND_VERSION} PKGNAME= ${DISTNAME:S/-P3/pl3/} +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/ \ http://ftp.belnet.be/pub/mirror/ftp.isc.org/isc/bind9/${BIND_VERSION}/ diff --git a/net/bind9/files/named9.sh b/net/bind9/files/named9.sh index 93781e05653..5859eb3ec5a 100644 --- a/net/bind9/files/named9.sh +++ b/net/bind9/files/named9.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: named9.sh,v 1.3 2005/05/17 13:17:34 sketch Exp $ +# $NetBSD: named9.sh,v 1.4 2009/12/11 16:21:21 taca Exp $ # # PROVIDE: named @@ -31,10 +31,15 @@ named_precmd() return 0; fi - if [ ! -c "${named_chrootdir}/dev/null" ]; then - @RM@ -f "${named_chrootdir}/dev/null" - ( cd /dev ; @PAX@ -rw -pe null "${named_chrootdir}/dev" ) - fi + for i in null random + do + if [ ! -c "${named_chrootdir}/dev/$i" ]; then + @RM@ -f "${named_chrootdir}/dev/$i" + (cd /dev && + @PAX@ -rw -pe "$i" "${named_chrootdir}/dev") + fi + done + if [ -f /etc/localtime ]; then @CMP@ -s /etc/localtime "${named_chrootdir}/etc/localtime" || \ @CP@ -p /etc/localtime "${named_chrootdir}/etc/localtime" diff --git a/net/bind95/Makefile b/net/bind95/Makefile index 05fab8df103..da3382468ea 100644 --- a/net/bind95/Makefile +++ b/net/bind95/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.13 2009/11/30 11:58:30 tron Exp $ +# $NetBSD: Makefile,v 1.14 2009/12/11 16:22:08 taca Exp $ DISTNAME= bind-${BIND_VERSION} PKGNAME= ${DISTNAME:S/-P/pl/} +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/ \ http://ftp.belnet.be/pub/mirror/ftp.isc.org/isc/bind9/${BIND_VERSION}/ diff --git a/net/bind95/files/named9.sh b/net/bind95/files/named9.sh index d61b037163d..d2658a2aab4 100644 --- a/net/bind95/files/named9.sh +++ b/net/bind95/files/named9.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: named9.sh,v 1.1.1.1 2008/06/21 23:15:28 adrianp Exp $ +# $NetBSD: named9.sh,v 1.2 2009/12/11 16:22:08 taca Exp $ # # PROVIDE: named @@ -31,10 +31,15 @@ named_precmd() return 0; fi - if [ ! -c "${named_chrootdir}/dev/null" ]; then - @RM@ -f "${named_chrootdir}/dev/null" - ( cd /dev ; @PAX@ -rw -pe null "${named_chrootdir}/dev" ) - fi + for i in null random + do + if [ ! -c "${named_chrootdir}/dev/$i" ]; then + @RM@ -f "${named_chrootdir}/dev/$i" + (cd /dev && + @PAX@ -rw -pe "$i" "${named_chrootdir}/dev") + fi + done + if [ -f /etc/localtime ]; then @CMP@ -s /etc/localtime "${named_chrootdir}/etc/localtime" || \ @CP@ -p /etc/localtime "${named_chrootdir}/etc/localtime" diff --git a/net/bind96/Makefile b/net/bind96/Makefile index 32d74170e74..6e37d2ebd0b 100644 --- a/net/bind96/Makefile +++ b/net/bind96/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.11 2009/11/25 09:50:06 taca Exp $ +# $NetBSD: Makefile,v 1.12 2009/12/11 16:22:31 taca Exp $ DISTNAME= bind-${BIND_VERSION} PKGNAME= ${DISTNAME:S/-P2/pl2/} +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/ \ http://ftp.belnet.be/pub/mirror/ftp.isc.org/isc/bind9/${BIND_VERSION}/ diff --git a/net/bind96/files/named9.sh b/net/bind96/files/named9.sh index 847face3598..a0ac107044a 100644 --- a/net/bind96/files/named9.sh +++ b/net/bind96/files/named9.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: named9.sh,v 1.3 2009/02/26 23:49:24 adrianp Exp $ +# $NetBSD: named9.sh,v 1.4 2009/12/11 16:22:31 taca Exp $ # # PROVIDE: named @@ -35,10 +35,14 @@ named_precmd() return 0; fi - if [ ! -c "${named_chrootdir}/dev/null" ]; then - @RM@ -f "${named_chrootdir}/dev/null" - ( cd /dev ; @PAX@ -rw -pe null "${named_chrootdir}/dev" ) - fi + for i in null random + do + if [ ! -c "${named_chrootdir}/dev/$i" ]; then + @RM@ -f "${named_chrootdir}/dev/$i" + (cd /dev && + @PAX@ -rw -pe "$i" "${named_chrootdir}/dev") + fi + done if [ -f /etc/localtime ]; then @CMP@ -s /etc/localtime "${named_chrootdir}/etc/localtime" || \ |