pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/nsd
Module Name: pkgsrc
Committed By: ryoon
Date: Tue Jan 29 14:54:03 UTC 2019
Modified Files:
pkgsrc/net/nsd: Makefile
Added Files:
pkgsrc/net/nsd/files: nlnsd.sh
Removed Files:
pkgsrc/net/nsd/files: nsd.sh
Log Message:
Do not conflict with nsd in NetBSD base. Rename rc.d script to nlsnd
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 pkgsrc/net/nsd/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/net/nsd/files/nlnsd.sh
cvs rdiff -u -r1.4 -r0 pkgsrc/net/nsd/files/nsd.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/nsd/Makefile
diff -u pkgsrc/net/nsd/Makefile:1.100 pkgsrc/net/nsd/Makefile:1.101
--- pkgsrc/net/nsd/Makefile:1.100 Thu Jan 17 13:59:37 2019
+++ pkgsrc/net/nsd/Makefile Tue Jan 29 14:54:03 2019
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.100 2019/01/17 13:59:37 prlw1 Exp $
+# $NetBSD: Makefile,v 1.101 2019/01/29 14:54:03 ryoon Exp $
DISTNAME= nsd-4.1.26
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/
@@ -55,7 +56,7 @@ CONFIGURE_ARGS+=--with-ssl=${BUILDLINK_P
CPPFLAGS+= -D_OPENBSD_SOURCE
.endif
-RCD_SCRIPTS= nsd
+RCD_SCRIPTS= nlnsd
NSD_USER?= nsd
NSD_GROUP?= nsd
Added files:
Index: pkgsrc/net/nsd/files/nlnsd.sh
diff -u /dev/null pkgsrc/net/nsd/files/nlnsd.sh:1.1
--- /dev/null Tue Jan 29 14:54:03 2019
+++ pkgsrc/net/nsd/files/nlnsd.sh Tue Jan 29 14:54:03 2019
@@ -0,0 +1,36 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: nlnsd.sh,v 1.1 2019/01/29 14:54:03 ryoon Exp $
+#
+# PROVIDE: nlnsd
+# REQUIRE: DAEMON
+#
+
+. /etc/rc.subr
+
+name="nlnsd"
+rcvar=${name}
+
+command=@PREFIX@/sbin/nsd
+pidfile=/var/run/nsd/nsd.pid
+required_files="@PKG_SYSCONFDIR@/nsd.conf"
+start_precmd="nsd_precmd"
+
+nsd_precmd()
+{
+ if [ ! -d @VARBASE@/run/nsd ]; then
+ @MKDIR@ @VARBASE@/run/nsd
+ @CHMOD@ 0750 @VARBASE@/run/nsd
+ @CHOWN@ @NSD_USER@:@NSD_GROUP@ @VARBASE@/run/nsd
+ fi
+}
+
+nsd_flags=${nsd_flags:-""}
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config ${name}
+ run_rc_command "$1"
+else
+ echo -n " ${name}"
+ ${command} ${nsd_flags}
+fi
Home |
Main Index |
Thread Index |
Old Index