pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/djbdns-run Note in DESCR and in README.pkgsrc that...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6c2d492ef04b
branches:  trunk
changeset: 480227:6c2d492ef04b
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Sep 02 08:23:02 2004 +0000

description:
Note in DESCR and in README.pkgsrc that {dnscache,tinydns}-showctl
are useful only for services configured in the standard way (with
{dnscache,tinydns}-conf(8)).

On second thought, don't use the G prefix for the account names.
It makes the dnscache account longer than 8 characters, which in
turn makes noise in the nightly report. (Also, it looks a little
funny.) Since this is already a heavily customized way of running
djbdns services, it's just a little more customized now.

Bump version.

diffstat:

 net/djbdns-run/DESCR               |   4 +++-
 net/djbdns-run/Makefile            |  12 ++++++------
 net/djbdns-run/files/README.pkgsrc |  10 ++++++++++
 net/djbdns-run/files/axfrdns.sh    |   6 +++---
 net/djbdns-run/files/dnscache.sh   |   6 +++---
 net/djbdns-run/files/tinydns.sh    |   6 +++---
 6 files changed, 28 insertions(+), 16 deletions(-)

diffs (130 lines):

diff -r 0d6c770a169b -r 6c2d492ef04b net/djbdns-run/DESCR
--- a/net/djbdns-run/DESCR      Thu Sep 02 07:04:54 2004 +0000
+++ b/net/djbdns-run/DESCR      Thu Sep 02 08:23:02 2004 +0000
@@ -1,3 +1,5 @@
 This package creates all the needed basic config files to run djbdns
 services, and provides NetBSD-style rc.d scripts. It also includes
-Jonathan de Boyne Pollard's dnscache-showctl and tinydns-showctl.
+Jonathan de Boyne Pollard's dnscache-showctl and tinydns-showctl,
+useful if you run services configured with dnscache-conf(8) or
+tinydns-conf(8).
diff -r 0d6c770a169b -r 6c2d492ef04b net/djbdns-run/Makefile
--- a/net/djbdns-run/Makefile   Thu Sep 02 07:04:54 2004 +0000
+++ b/net/djbdns-run/Makefile   Thu Sep 02 08:23:02 2004 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2004/09/01 20:15:56 schmonz Exp $
+# $NetBSD: Makefile,v 1.3 2004/09/02 08:23:02 schmonz Exp $
 #
 
-DISTNAME=              djbdns-run-20040901
+DISTNAME=              djbdns-run-20040902
 CATEGORIES=            net
 MASTER_SITES=          # empty
 DISTFILES=             # empty
@@ -26,10 +26,10 @@
 MAKE_DIRS+=            ${PKG_SYSCONFDIR}/dnscache/servers
 MAKE_DIRS+=            ${PKG_SYSCONFDIR}/tinydns
 PKG_GROUPS=            djbdns
-PKG_USERS+=            Gdnslog:djbdns::dnslog
-PKG_USERS+=            Gaxfrdns:djbdns::axfrdns
-PKG_USERS+=            Gdnscache:djbdns::dnscache
-PKG_USERS+=            Gtinydns:djbdns::tinydns
+PKG_USERS+=            dnslog:djbdns::dnslog
+PKG_USERS+=            axfrdns:djbdns::axfrdns
+PKG_USERS+=            dnscache:djbdns::dnscache
+PKG_USERS+=            tinydns:djbdns::tinydns
 RCD_SCRIPTS=           axfrdns dnscache tinydns
 FILES_SUBST+=          PKGNAME=${PKGNAME}
 
diff -r 0d6c770a169b -r 6c2d492ef04b net/djbdns-run/files/README.pkgsrc
--- a/net/djbdns-run/files/README.pkgsrc        Thu Sep 02 07:04:54 2004 +0000
+++ b/net/djbdns-run/files/README.pkgsrc        Thu Sep 02 08:23:02 2004 +0000
@@ -9,3 +9,13 @@
 
 If you need to ask for help on the dns list, please mention that
 you're using the djbdns-run package from pkgsrc.
+
+Jonathan de Boyne Pollard's dnscache-showctl and tinydns-showctl
+scripts are included. When posting to the dns list, it's normally
+a good idea to include the output of those commands. However, those
+scripts expect services configured with dnscache-conf(8) and
+tinydns-conf(8).
+
+This package configures them in a much different way, in order to
+run nicely from rc.d. Pollard's scripts are only useful, therefore,
+if you've configured additional djbdns services in the standard way.
diff -r 0d6c770a169b -r 6c2d492ef04b net/djbdns-run/files/axfrdns.sh
--- a/net/djbdns-run/files/axfrdns.sh   Thu Sep 02 07:04:54 2004 +0000
+++ b/net/djbdns-run/files/axfrdns.sh   Thu Sep 02 08:23:02 2004 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: axfrdns.sh,v 1.1.1.1 2004/09/01 20:13:04 schmonz Exp $
+# $NetBSD: axfrdns.sh,v 1.2 2004/09/02 08:23:02 schmonz Exp $
 #
 # @PKGNAME@ script to control axfrdns (DNS zone-transfer and TCP service)
 #
@@ -25,11 +25,11 @@
 # User-settable rc.conf variables and their default values:
 axfrdns_tcpflags=${axfrdns_tcpflags-"-vDRHl0"}
 axfrdns_datalimit=${axfrdns_datalimit-"300000"}
-axfrdns_logcmd=${axfrdns_logcmd-"@LOCALBASE@/bin/setuidgid Gdnslog logger -t nb${name} -p daemon.info"}
+axfrdns_logcmd=${axfrdns_logcmd-"@LOCALBASE@/bin/setuidgid dnslog logger -t nb${name} -p daemon.info"}
 
 axfrdns_precmd()
 {
-       command="@SETENV@ - ROOT=@PKG_SYSCONFDIR@/tinydns IP=${tinydns_ip} @LOCALBASE@/bin/envuidgid Gaxfrdns @LOCALBASE@/bin/softlimit -d ${axfrdns_datalimit} @LOCALBASE@/bin/argv0 
@LOCALBASE@/bin/tcpserver ${name} ${axfrdns_tcpflags} -x @PKG_SYSCONFDIR@/axfrdns/tcp.cdb -- ${tinydns_ip} 53 @LOCALBASE@/bin/axfrdns </dev/null 2>&1 | ${axfrdns_logcmd}"
+       command="@SETENV@ - ROOT=@PKG_SYSCONFDIR@/tinydns IP=${tinydns_ip} @LOCALBASE@/bin/envuidgid axfrdns @LOCALBASE@/bin/softlimit -d ${axfrdns_datalimit} @LOCALBASE@/bin/argv0 
@LOCALBASE@/bin/tcpserver ${name} ${axfrdns_tcpflags} -x @PKG_SYSCONFDIR@/axfrdns/tcp.cdb -- ${tinydns_ip} 53 @LOCALBASE@/bin/axfrdns </dev/null 2>&1 | ${axfrdns_logcmd}"
        command_args="&"
        rc_flags=""
 }
diff -r 0d6c770a169b -r 6c2d492ef04b net/djbdns-run/files/dnscache.sh
--- a/net/djbdns-run/files/dnscache.sh  Thu Sep 02 07:04:54 2004 +0000
+++ b/net/djbdns-run/files/dnscache.sh  Thu Sep 02 08:23:02 2004 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: dnscache.sh,v 1.1.1.1 2004/09/01 20:13:04 schmonz Exp $
+# $NetBSD: dnscache.sh,v 1.2 2004/09/02 08:23:02 schmonz Exp $
 #
 # @PKGNAME@ script to control dnscache (caching DNS resolver)
 #
@@ -25,11 +25,11 @@
 dnscache_ipsend=${dnscache_ipsend-"0.0.0.0"}
 dnscache_size=${dnscache_size-"1000000"}
 dnscache_datalimit=${dnscache_datalimit-"3000000"}
-dnscache_logcmd=${dnscache_logcmd-"@LOCALBASE@/bin/setuidgid Gdnslog logger -t nb${name} -p daemon.info"}
+dnscache_logcmd=${dnscache_logcmd-"@LOCALBASE@/bin/setuidgid dnslog logger -t nb${name} -p daemon.info"}
 
 dnscache_precmd()
 {
-       command="@SETENV@ - ROOT=@PKG_SYSCONFDIR@/dnscache IP=${dnscache_ip} IPSEND=${dnscache_ipsend} CACHESIZE=${dnscache_size} @LOCALBASE@/bin/envuidgid Gdnscache @LOCALBASE@/bin/softlimit -o250 
-d ${dnscache_datalimit} @LOCALBASE@/bin/dnscache </dev/random 2>&1 | ${dnscache_logcmd}"
+       command="@SETENV@ - ROOT=@PKG_SYSCONFDIR@/dnscache IP=${dnscache_ip} IPSEND=${dnscache_ipsend} CACHESIZE=${dnscache_size} @LOCALBASE@/bin/envuidgid dnscache @LOCALBASE@/bin/softlimit -o250 -d 
${dnscache_datalimit} @LOCALBASE@/bin/dnscache </dev/random 2>&1 | ${dnscache_logcmd}"
        command_args="&"
        rc_flags=""
 }
diff -r 0d6c770a169b -r 6c2d492ef04b net/djbdns-run/files/tinydns.sh
--- a/net/djbdns-run/files/tinydns.sh   Thu Sep 02 07:04:54 2004 +0000
+++ b/net/djbdns-run/files/tinydns.sh   Thu Sep 02 08:23:02 2004 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: tinydns.sh,v 1.1.1.1 2004/09/01 20:13:04 schmonz Exp $
+# $NetBSD: tinydns.sh,v 1.2 2004/09/02 08:23:02 schmonz Exp $
 #
 # @PKGNAME@ script to control tinydns (authoritative DNS service)
 #
@@ -24,11 +24,11 @@
 # User-settable rc.conf variables and their default values:
 tinydns_ip=${tinydns_ip-"127.0.0.2"}
 tinydns_datalimit=${tinydns_datalimit-"300000"}
-tinydns_logcmd=${tinydns_logcmd-"@LOCALBASE@/bin/setuidgid Gdnslog logger -t nb${name} -p daemon.info"}
+tinydns_logcmd=${tinydns_logcmd-"@LOCALBASE@/bin/setuidgid dnslog logger -t nb${name} -p daemon.info"}
 
 tinydns_precmd()
 {
-       command="@SETENV@ - ROOT=@PKG_SYSCONFDIR@/tinydns IP=${tinydns_ip} @LOCALBASE@/bin/envuidgid Gtinydns @LOCALBASE@/bin/softlimit -d ${tinydns_datalimit} @LOCALBASE@/bin/tinydns </dev/null 2>&1 
| ${tinydns_logcmd}"
+       command="@SETENV@ - ROOT=@PKG_SYSCONFDIR@/tinydns IP=${tinydns_ip} @LOCALBASE@/bin/envuidgid tinydns @LOCALBASE@/bin/softlimit -d ${tinydns_datalimit} @LOCALBASE@/bin/tinydns </dev/null 2>&1 
| ${tinydns_logcmd}"
        command_args="&"
        rc_flags=""
 }



Home | Main Index | Thread Index | Old Index