[csw-devel] SF.net SVN: gar:[2320] csw/trunk/net
bonivart at users.sourceforge.net
bonivart at users.sourceforge.net
Wed Nov 19 14:39:52 CET 2008
Revision: 2320
http://gar.svn.sourceforge.net/gar/?rev=2320&view=rev
Author: bonivart
Date: 2008-11-19 13:39:52 +0000 (Wed, 19 Nov 2008)
Log Message:
-----------
bind: moved to gar and updated to 9.4.2-P2
Added Paths:
-----------
csw/trunk/net/bind/
csw/trunk/net/bind/Makefile
csw/trunk/net/bind/checksums
csw/trunk/net/bind/files/
csw/trunk/net/bind/files/CSWbind.README.CSW
csw/trunk/net/bind/files/CSWbind.cswnamed
csw/trunk/net/bind/files/CSWbind.db.127.0.0
csw/trunk/net/bind/files/CSWbind.db.localhost
csw/trunk/net/bind/files/CSWbind.gspec
csw/trunk/net/bind/files/CSWbind.named.conf
csw/trunk/net/bind/files/CSWbind.named.conf.CSW
csw/trunk/net/bind/files/CSWbind.named.root
csw/trunk/net/bind/files/CSWbind.postinstall
csw/trunk/net/bind/files/CSWbind.preinstall
csw/trunk/net/bind/files/CSWbind.preremove
csw/trunk/net/bind/files/CSWbind.rndc.key
Added: csw/trunk/net/bind/Makefile
===================================================================
--- csw/trunk/net/bind/Makefile (rev 0)
+++ csw/trunk/net/bind/Makefile 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,56 @@
+GARNAME = bind
+GARVERSION = 9.4.2
+RELEASE = P2
+DISTVERSION = $(GARVERSION)-$(RELEASE)
+DISTNAME = $(GARNAME)-$(DISTVERSION)
+WORKSRC = $(WORKDIR)/$(DISTNAME)
+CATEGORIES = net
+
+DESCRIPTION = ISC BIND reference implementation
+define BLURB
+ BIND is open-source software that implements the Domain Name System (DNS)
+ protocols for the Internet. It is a reference implementation of those
+ protocols, but it is also production-grade software, suitable for use in
+ high-volume and high-reliability applications.
+endef
+
+MASTER_SITES = http://ftp.isc.org/isc/bind9/$(GARVERSION)-$(RELEASE)/
+DISTFILES = $(GARNAME)-$(GARVERSION)-$(RELEASE).tar.gz
+DISTFILES += $(call admfiles,CSWbind,preinstall postinstall preremove)
+
+CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS += --with-libtool
+CONFIGURE_ARGS += --with-openssl=/opt/csw
+CONFIGURE_ARGS += --enable-threads
+CONFIGURE_ARGS += --enable-largefile
+CONFIGURE_ARGS += --sysconfdir=/etc/opt/csw
+CONFIGURE_ARGS += --localstatedir=/var/opt/csw/named
+
+INSTALL_SCRIPTS = custom
+
+include ../category.mk
+
+SPKG_REVSTAMP := $(SPKG_REVSTAMP)_rev=$(RELEASE)
+SPKG_SOURCEURL = http://www.isc.org/software/bind
+#SPKG_CLASSES = none cswinitsmf
+
+install-custom:
+ @echo " ==> Installing $(GARNAME) (custom)"
+ @rm -rf $(DESTDIR)
+# @ginstall -d $(DESTDIR)/etc/opt/csw/init.d
+# @cp $(FILEDIR)/CSWbind.cswnamed $(DESTDIR)/etc/opt/csw/init.d/cswnamed
+ @ginstall -d $(DESTDIR)/etc/init.d
+ @cp $(FILEDIR)/CSWbind.cswnamed $(DESTDIR)/etc/init.d/cswnamed
+ @ginstall -d $(DESTDIR)/etc/opt/csw
+ @cp $(FILEDIR)/CSWbind.named.conf.CSW $(DESTDIR)/etc/opt/csw/named.conf.CSW
+ @ginstall -d $(DESTDIR)$(docdir)/$(GARNAME)
+ @cp $(FILEDIR)/CSWbind.README.CSW $(DESTDIR)$(docdir)/$(GARNAME)/README.CSW
+ @cp $(FILEDIR)/CSWbind.db.127.0.0 $(DESTDIR)$(docdir)/$(GARNAME)/db.127.0.0
+ @cp $(FILEDIR)/CSWbind.db.localhost $(DESTDIR)$(docdir)/$(GARNAME)/db.localhost
+ @cp $(FILEDIR)/CSWbind.named.conf $(DESTDIR)$(docdir)/$(GARNAME)/named.conf
+ @cp $(FILEDIR)/CSWbind.named.root $(DESTDIR)$(docdir)/$(GARNAME)/named.root
+ @cp $(FILEDIR)/CSWbind.rndc.key $(DESTDIR)$(docdir)/$(GARNAME)/rndc.key
+ @cp $(WORKSRC)/COPYRIGHT $(DESTDIR)$(docdir)/$(GARNAME)/LICENSE
+ ( cd $(WORKSRC) ; \
+ gmake DESTDIR=$(DESTDIR) install )
+ @$(MAKECOOKIE)
Added: csw/trunk/net/bind/checksums
===================================================================
--- csw/trunk/net/bind/checksums (rev 0)
+++ csw/trunk/net/bind/checksums 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,5 @@
+74464f8af260ad71a19a3400a1ae00bb download/bind-9.4.2-P2.tar.gz
+9d20fd7cceac478243ac485868b9ef35 download/CSWbind.gspec
+9338f20547092ec54136ebebd5f663d3 download/CSWbind.preinstall
+78702926bd064e3a1f4ac56ae85866a9 download/CSWbind.postinstall
+104f5539928c029738b0a1808f8af262 download/CSWbind.preremove
Added: csw/trunk/net/bind/files/CSWbind.README.CSW
===================================================================
--- csw/trunk/net/bind/files/CSWbind.README.CSW (rev 0)
+++ csw/trunk/net/bind/files/CSWbind.README.CSW 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,20 @@
+README.CSW
+==========
+
+Default locations
+-----------------
+Configuration directory: /etc/opt/csw.
+Work directory: /var/opt/csw/named.
+
+Installation
+------------
+1. Modify the named.conf file in /etc/opt/csw.
+2. Create the zone files you specified in named.conf.
+3. Start Bind with "/etc/init.d/cswnamed start".
+
+There's sample files to look at in this directory.
+
+More info here: http://www.isc.org/software/BIND/.
+
+
+bonivart/081118
Added: csw/trunk/net/bind/files/CSWbind.cswnamed
===================================================================
--- csw/trunk/net/bind/files/CSWbind.cswnamed (rev 0)
+++ csw/trunk/net/bind/files/CSWbind.cswnamed 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,45 @@
+#!/sbin/sh
+
+# rc-script for CSW Bind
+# Peter Bonivart, 2008-11-18
+
+USER=named
+#OPTIONS="-d 1" # debug mode
+#OPTIONS="-c /opt/csw/etc/named.conf" # use old location of conf file
+OPTIONS="-u $USER"
+
+ZONE= # used for initialization, do not change
+
+case "$1" in
+ 'start')
+ if [ -f /opt/csw/sbin/named -a -f /etc/opt/csw/named.conf ]; then
+ echo 'Starting bind.'
+ # ulimit -n 1024
+ /opt/csw/sbin/named $OPTIONS &
+ fi
+ ;;
+ 'stop')
+ echo 'Shutting down bind.'
+ if [ -x /usr/bin/zonename ]; then
+ if [ "`/usr/bin/zonename`" = "global" ]; then
+ ZONE="-z global"
+ fi
+ fi
+ pkill $ZONE named
+ exit 0
+ ;;
+ 'reload')
+ echo 'Reloading bind.'
+ if [ -x /usr/bin/zonename ]; then
+ if [ "`/usr/bin/zonename`" = "global" ]; then
+ ZONE="-z global"
+ fi
+ fi
+ pkill -HUP $ZONE named
+ exit 0
+ ;;
+ *)
+ echo "Usage: $0 { start | stop | reload }"
+ exit 1
+ ;;
+esac
Property changes on: csw/trunk/net/bind/files/CSWbind.cswnamed
___________________________________________________________________
Added: svn:executable
+ *
Added: csw/trunk/net/bind/files/CSWbind.db.127.0.0
===================================================================
--- csw/trunk/net/bind/files/CSWbind.db.127.0.0 (rev 0)
+++ csw/trunk/net/bind/files/CSWbind.db.127.0.0 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,11 @@
+$TTL 86400
+@ IN SOA ns.yourdomain.com. hostmaster.yourdomain.com. (
+ 2007100201 ; Serial number
+ 10800 ; Refresh every 3 H
+ 3600 ; Retry every 1 H
+ 604800 ; Expire after 1 W
+ 86400 ) ; Minimum TTL of 1 D
+
+ IN NS ns.yourdomain.com.
+
+1 IN PTR localhost.
Added: csw/trunk/net/bind/files/CSWbind.db.localhost
===================================================================
--- csw/trunk/net/bind/files/CSWbind.db.localhost (rev 0)
+++ csw/trunk/net/bind/files/CSWbind.db.localhost 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,11 @@
+$TTL 86400
+localhost. IN SOA ns.yourdomain.com. hostmaster.yourdomain.com. (
+ 2007100201 ; Serial number
+ 10800 ; Refresh every 3 H
+ 3600 ; Retry every 1 H
+ 604800 ; Expire every 1 W
+ 86400 ) ; Minimum TTL of 1 D
+
+localhost. IN NS ns.yourdomain.com.
+
+localhost. IN A 127.0.0.1
Added: csw/trunk/net/bind/files/CSWbind.gspec
===================================================================
--- csw/trunk/net/bind/files/CSWbind.gspec (rev 0)
+++ csw/trunk/net/bind/files/CSWbind.gspec 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,8 @@
+%var bitname bind
+%var pkgname CSWbind
+%include url file://%{PKGLIB}/csw_dyndepend.gspec
+%prototype exec cswproto -s %{TIMESTAMP} -r %{DESTDIR} %{DESTDIR}
+%copyright
+
+Please see /opt/csw/share/doc/bind/LICENSE for license information
+
Added: csw/trunk/net/bind/files/CSWbind.named.conf
===================================================================
--- csw/trunk/net/bind/files/CSWbind.named.conf (rev 0)
+++ csw/trunk/net/bind/files/CSWbind.named.conf 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,33 @@
+options {
+ directory "/var/opt/csw/named";
+ pid-file "named.pid";
+};
+
+key "rndc-key" {
+ algorithm hmac-md5;
+ secret "nm/hkdldjGjsdfjSdfsdDD==";
+};
+
+controls {
+ inet 127.0.0.1 port 953
+ allow { 127.0.0.1; } keys { "rndc-key"; };
+};
+
+zone "localhost" {
+ type master;
+ file "default/db.localhost";
+ forwarders { };
+};
+
+zone "0.0.127.in-addr.arpa" {
+ type master;
+ file "default/db.127.0.0";
+ forwarders { };
+};
+
+# Hint zone
+
+zone "." {
+ type hint;
+ file "default/named.root";
+};
Added: csw/trunk/net/bind/files/CSWbind.named.conf.CSW
===================================================================
--- csw/trunk/net/bind/files/CSWbind.named.conf.CSW (rev 0)
+++ csw/trunk/net/bind/files/CSWbind.named.conf.CSW 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,4 @@
+options {
+ directory "/var/opt/csw/named";
+ pid-file "named.pid";
+};
Added: csw/trunk/net/bind/files/CSWbind.named.root
===================================================================
--- csw/trunk/net/bind/files/CSWbind.named.root (rev 0)
+++ csw/trunk/net/bind/files/CSWbind.named.root 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,87 @@
+; This file holds the information on root name servers needed to
+; initialize cache of Internet domain name servers
+; (e.g. reference this file in the "cache . <file>"
+; configuration file of BIND domain name servers).
+;
+; This file is made available by InterNIC
+; under anonymous FTP as
+; file /domain/named.root
+; on server FTP.INTERNIC.NET
+; -OR- RS.INTERNIC.NET
+;
+; last update: Jan 29, 2004
+; related version of root zone: 2004012900
+;
+;
+; formerly NS.INTERNIC.NET
+;
+. 3600000 IN NS A.ROOT-SERVERS.NET.
+A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
+;
+; formerly NS1.ISI.EDU
+;
+. 3600000 NS B.ROOT-SERVERS.NET.
+B.ROOT-SERVERS.NET. 3600000 A 192.228.79.201
+;
+; formerly C.PSI.NET
+;
+. 3600000 NS C.ROOT-SERVERS.NET.
+C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
+;
+; formerly TERP.UMD.EDU
+;
+. 3600000 NS D.ROOT-SERVERS.NET.
+D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
+;
+; formerly NS.NASA.GOV
+;
+. 3600000 NS E.ROOT-SERVERS.NET.
+E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
+;
+; formerly NS.ISC.ORG
+;
+. 3600000 NS F.ROOT-SERVERS.NET.
+;
+. 3600000 NS E.ROOT-SERVERS.NET.
+E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
+;
+; formerly NS.ISC.ORG
+;
+. 3600000 NS F.ROOT-SERVERS.NET.
+F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
+;
+; formerly NS.NIC.DDN.MIL
+;
+. 3600000 NS G.ROOT-SERVERS.NET.
+G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
+;
+; formerly AOS.ARL.ARMY.MIL
+;
+. 3600000 NS H.ROOT-SERVERS.NET.
+H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
+;
+; formerly NIC.NORDU.NET
+;
+. 3600000 NS I.ROOT-SERVERS.NET.
+I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
+;
+; operated by VeriSign, Inc.
+;
+. 3600000 NS J.ROOT-SERVERS.NET.
+J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30
+;
+; operated by RIPE NCC
+;
+. 3600000 NS K.ROOT-SERVERS.NET.
+K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
+;
+; operated by ICANN
+;
+. 3600000 NS L.ROOT-SERVERS.NET.
+L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12
+;
+; operated by WIDE
+;
+. 3600000 NS M.ROOT-SERVERS.NET.
+M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
+; End of File
Added: csw/trunk/net/bind/files/CSWbind.postinstall
===================================================================
--- csw/trunk/net/bind/files/CSWbind.postinstall (rev 0)
+++ csw/trunk/net/bind/files/CSWbind.postinstall 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# 2008-11-19
+
+ETC=$PKG_INSTALL_ROOT/etc/opt/csw
+VAR=$PKG_INSTALL_ROOT/var/opt/csw/named
+
+# check csw.conf
+if [ -x $BASEDIR/etc/csw.conf ] ; then
+ . $BASEDIR/etc/csw.conf
+fi
+if [ -x $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf ] ; then
+ . $PKG_INSTALL_ROOT/etc/opt/csw/csw.conf
+fi
+
+# enable?
+if [ ! -f "$ETC/named.conf" ]; then
+ if [ "$autoenable_daemons" = "no" ]; then
+ echo "named.conf not created due to csw.conf setting."
+ else
+ cp -p $ETC/named.conf.CSW $ETC/named.conf
+ fi
+else
+ echo "named.conf already exists, will not copy named.conf.CSW to it."
+fi
+
+# set owner on var dir
+chown -R named $VAR
+
+echo
+echo ">>> Read /opt/csw/share/doc/bind/README.CSW for more info <<<"
+echo
+
+exit 0
Property changes on: csw/trunk/net/bind/files/CSWbind.postinstall
___________________________________________________________________
Added: svn:executable
+ *
Added: csw/trunk/net/bind/files/CSWbind.preinstall
===================================================================
--- csw/trunk/net/bind/files/CSWbind.preinstall (rev 0)
+++ csw/trunk/net/bind/files/CSWbind.preinstall 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# 2008-11-19
+
+# named user
+/usr/bin/grep "^named:" $PKG_INSTALL_ROOT/etc/passwd > /dev/null 2>&1
+if [ "$?" = "0" ]; then
+ echo User named already exists
+else
+ echo Adding user named
+ /usr/sbin/useradd -u 10001 -c "CSW BIND DNS" -d /false -s /bin/false named > /dev/null 2>&1
+ if [ "$?" = "4" ]; then
+ echo UID 10001 already in use - using next available
+ /usr/sbin/useradd -c "CSW BIND DNS" -d /false -s /bin/false named > /dev/null 2>&1
+ fi
+fi
+
+exit 0
Property changes on: csw/trunk/net/bind/files/CSWbind.preinstall
___________________________________________________________________
Added: svn:executable
+ *
Added: csw/trunk/net/bind/files/CSWbind.preremove
===================================================================
--- csw/trunk/net/bind/files/CSWbind.preremove (rev 0)
+++ csw/trunk/net/bind/files/CSWbind.preremove 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# 2008-11-19
+
+ETC=$PKG_INSTALL_ROOT/etc/opt/csw
+
+echo
+
+# stop bind
+/etc/init.d/cswnamed stop
+
+# remove named user if created by this package
+/usr/bin/grep "^named:" $PKG_INSTALL_ROOT/etc/passwd | /usr/bin/grep ":CSW BIND DNS:" > /dev/null 2>&1
+if [ "$?" = "0" ]; then
+ echo Removing user named
+ /usr/sbin/userdel named > /dev/null 2>&1
+fi
+
+# remove conf files
+if [ "`cmp "$ETC/named.conf" "$ETC/named.conf.CSW"`" ]; then
+ echo "named.conf modified, will not remove it."
+else
+ /bin/rm $ETC/named.conf
+fi
+
+exit 0
Property changes on: csw/trunk/net/bind/files/CSWbind.preremove
___________________________________________________________________
Added: svn:executable
+ *
Added: csw/trunk/net/bind/files/CSWbind.rndc.key
===================================================================
--- csw/trunk/net/bind/files/CSWbind.rndc.key (rev 0)
+++ csw/trunk/net/bind/files/CSWbind.rndc.key 2008-11-19 13:39:52 UTC (rev 2320)
@@ -0,0 +1,4 @@
+key "rndc-key" {
+ algorithm hmac-md5;
+ secret "nm/hkdldjGjsdfjSdfsdDD==";
+};
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