[csw-devel] SF.net SVN: gar:[4353] csw/mgar/pkg/nsd/trunk
idogan23 at users.sourceforge.net
idogan23 at users.sourceforge.net
Thu Apr 16 17:57:13 CEST 2009
Revision: 4353
http://gar.svn.sourceforge.net/gar/?rev=4353&view=rev
Author: idogan23
Date: 2009-04-16 15:57:13 +0000 (Thu, 16 Apr 2009)
Log Message:
-----------
nsd: fixed MASTER_SITES, init script handled by cswinitsmf class
Modified Paths:
--------------
csw/mgar/pkg/nsd/trunk/Makefile
csw/mgar/pkg/nsd/trunk/checksums
Added Paths:
-----------
csw/mgar/pkg/nsd/trunk/files/cswnsd
Modified: csw/mgar/pkg/nsd/trunk/Makefile
===================================================================
--- csw/mgar/pkg/nsd/trunk/Makefile 2009-04-16 15:27:28 UTC (rev 4352)
+++ csw/mgar/pkg/nsd/trunk/Makefile 2009-04-16 15:57:13 UTC (rev 4353)
@@ -8,23 +8,25 @@
authoritative DNS nameserver.
endef
-MASTER_SITES = http://ww$(GARNAME)w.nlnetlabs.nl/downloads/nsd/
+MASTER_SITES = http://www.nlnetlabs.nl/projects/nsd/
+
+# If the url used to check for software update is different of MASTER_SITES, then
+# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
+UPSTREAM_MASTER_SITES = http://www.nlnetlabs.nl/downloads/nsd/
+
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
DISTFILES += $(call admfiles,CSWnsd,)
DISTFILES += cswusergroup
+DISTFILES += cswnsd
-SPKG_CLASSES = none cswusergroup cswcpsampleconf
-PROTOTYPE_FILTER = awk '$$$$3 ~ /\/nsd\/cswusergroup$$$$/ { $$$$2 = "cswusergroup" } $$$$3 ~ /\/nsd\/nsd.conf.CSW$$$$/ { $$$$2 = "cswcpsampleconf" } $$$$3 ~ /\/var\/opt\/csw\/nsd/ { $$$$5 = "nsd" } $$$$3 ~ /\/var\/opt\/csw\/nsd/ { $$$$6 = "nsd" } { print }'
+SPKG_CLASSES = none cswusergroup cswcpsampleconf cswinitsmf
+PROTOTYPE_FILTER = awk '$$$$3 ~ /\/init.d\/cswnsd$$$$/ { $$$$2 = "cswinitsmf" } $$$$3 ~ /\/nsd\/cswusergroup$$$$/ { $$$$2 = "cswusergroup" } $$$$3 ~ /\/nsd\/nsd.conf.CSW$$$$/ { $$$$2 = "cswcpsampleconf" } $$$$3 ~ /\/var\/opt\/csw\/nsd/ { $$$$5 = "nsd" } $$$$3 ~ /\/var\/opt\/csw\/nsd/ { $$$$6 = "nsd" } { print }'
REQUIRED_PKGS = CSWcswclassutils
# We define upstream file regex so we can be notifed of new upstream software release
UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
-# If the url used to check for software update is different of MASTER_SITES, then
-# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
-# UPSTREAM_MASTER_SITES =
-
CONFIGURE_ARGS = $(DIRPATHS)
CONFIGURE_ARGS += --with-ssl=/opt/csw
CONFIGURE_ARGS += --with-pidfile=/var/run/nsd.pid
@@ -35,6 +37,8 @@
post-install-modulated:
@ginstall -d $(DESTDIR)/var/opt/csw/nsd
+ @ginstall -d $(DESTDIR)/etc/opt/csw/init.d
+ @ginstall -m 755 $(FILEDIR)/cswnsd $(DESTDIR)/etc/opt/csw/init.d/cswnsd
@mv $(DESTDIR)/etc/opt/csw/nsd/nsd.conf.sample $(DESTDIR)/etc/opt/csw/nsd/nsd.conf.CSW
@ginstall -m 755 $(FILEDIR)/cswusergroup $(DESTDIR)/etc/opt/csw/nsd/cswusergroup
Modified: csw/mgar/pkg/nsd/trunk/checksums
===================================================================
--- csw/mgar/pkg/nsd/trunk/checksums 2009-04-16 15:27:28 UTC (rev 4352)
+++ csw/mgar/pkg/nsd/trunk/checksums 2009-04-16 15:57:13 UTC (rev 4353)
@@ -1,3 +1,4 @@
193710012704d807e85445886c72aca8 download/CSWnsd.gspec
+0eece57abde9d1cef8a962461b453d03 download/cswnsd
7a7560acb5d56847ea16fb8cd77b6ca5 download/cswusergroup
66b602a793b851ad109403d3d2654fad download/nsd-3.2.1.tar.gz
Added: csw/mgar/pkg/nsd/trunk/files/cswnsd
===================================================================
--- csw/mgar/pkg/nsd/trunk/files/cswnsd (rev 0)
+++ csw/mgar/pkg/nsd/trunk/files/cswnsd 2009-04-16 15:57:13 UTC (rev 4353)
@@ -0,0 +1,30 @@
+#!/sbin/sh
+
+case "$1" in
+ start)
+ echo "Starting nsd."
+ if [ ! -f /var/opt/csw/nsd/nsd.db ]; then
+ /opt/csw/sbin/nsdc rebuild >/dev/null 2>/dev/null
+ fi
+ /opt/csw/sbin/nsdc start
+ ;;
+ stop)
+ echo "Stopping nsd."
+ /opt/csw/sbin/nsdc stop
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ refresh)
+ echo "Refreshing nsd."
+ /opt/csw/sbin/nsdc reload
+ ;;
+ *)
+ echo "Usage: $0 { start | stop | restart | refresh }"
+ exit 1
+ ;;
+esac
+
+exit 0
Property changes on: csw/mgar/pkg/nsd/trunk/files/cswnsd
___________________________________________________________________
Added: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list