[20512] trunk

source_changes at macosforge.org source_changes at macosforge.org
Fri Nov 3 14:51:15 PST 2006


Revision: 20512
          http://trac.macosforge.org/projects/macports/changeset/20512
Author:   dluke at macports.org
Date:     2006-11-03 14:51:15 -0800 (Fri, 03 Nov 2006)

Log Message:
-----------
bind9:
 - Remove inactive maintainer
 - Whitespace cleanup
 - use macports startupitem.* instead of DarwinPortsStartup

Modified Paths:
--------------
    trunk/dports/net/bind9/Portfile

Removed Paths:
-------------
    trunk/dports/net/bind9/files/bind.sh

Property Changed:
----------------
    trunk/


Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - a2b01108-8822-4c85-91cd-1541804339d8:/local/macports:20632
f2dd1c64-7982-4318-98ce-263798263e0a:/local:20416
   + a2b01108-8822-4c85-91cd-1541804339d8:/local/macports:20632
f2dd1c64-7982-4318-98ce-263798263e0a:/local:20502

Modified: trunk/dports/net/bind9/Portfile
===================================================================
--- trunk/dports/net/bind9/Portfile	2006-11-03 22:49:56 UTC (rev 20511)
+++ trunk/dports/net/bind9/Portfile	2006-11-03 22:51:15 UTC (rev 20512)
@@ -2,34 +2,39 @@
 
 PortSystem 1.0
 
-name				bind9
-version				9.3.2-P2
+name			bind9
+version			9.3.2-P2
 
-categories			net
-maintainers			bchesneau at mac.com dluke at geeklair.net
-platforms			darwin freebsd sunos
+categories		net
+maintainers		dluke at geeklair.net
+platforms		darwin freebsd sunos
 
-description			Domain Name System server
+description		Domain Name System server
 long_description  	The BIND DNS Server is used on the vast majority of name \
-					serving machines on the Internet, providing a robust \
-					and stable \
-					architecture on top of which an organization's naming architecture \
-					can be built.  The resolver library included in the BIND distribution \
-					provides the standard APIs for translation between domain names \
-					and Internet addresses and is intended to be linked with applications \
-					requiring name service.
-homepage			http://www.isc.org
+				serving machines on the Internet, providing a robust \
+				and stable \
+				architecture on top of which an organization's naming architecture \
+				can be built.  The resolver library included in the BIND distribution \
+				provides the standard APIs for translation between domain names \
+				and Internet addresses and is intended to be linked with applications \
+				requiring name service.
+homepage		http://www.isc.org
 
-distname			bind-${version}
+distname		bind-${version}
 master_sites		isc:${portname}/${version}
-checksums			md5 948101be324deb15ff94a5b6a639ea39
-depends_lib			port:openssl
+checksums		md5 948101be324deb15ff94a5b6a639ea39
+depends_lib		port:openssl
 
-test.run			yes
-test.target			test
+test.run		yes
+test.target		test
 
+startupitem.create	yes
+startupitem.start	"${prefix}/sbin/named"
+startupitem.restart	"/bin/kill -HUP \$(/bin/cat ${prefix}/var/run/named.pid)"
+startupitem.stop	"/bin/kill -15 \$(/bin/cat ${prefix}/var/run/named.pid)"
+
 configure.args		--mandir=${prefix}/share/man --enable-libbind \
-					--with-openssl=${prefix}
+				--with-openssl=${prefix}
 
 post-patch {
 	# Put bind includes in ${prefix}/include/bind
@@ -47,12 +52,6 @@
 		${destroot}${prefix}/var/named \
 		${destroot}${prefix}/var/run
 	
-	# Install the startup script
-	xinstall -o root -m 755 ${filespath}/bind.sh \
-		${destroot}${prefix}/etc/rc.d
-	reinplace "s|%%PREFIX%%|${prefix}|g" \
-		${destroot}${prefix}/etc/rc.d/bind.sh
-
 	# Install the conf file as a sample
 	xinstall -o root -m 644 ${filespath}/named.conf \
 		${destroot}${prefix}/etc/named.conf.dist
@@ -70,10 +69,6 @@
 
 platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
 
-variant darwin {
-	depends_run-append	path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
-}
-
 variant ipv6 {
 	configure.args-append 	--enable-ipv6
 }

Deleted: trunk/dports/net/bind9/files/bind.sh
===================================================================
--- trunk/dports/net/bind9/files/bind.sh	2006-11-03 22:49:56 UTC (rev 20511)
+++ trunk/dports/net/bind9/files/bind.sh	2006-11-03 22:51:15 UTC (rev 20512)
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-PIDFILE=named.pid
-CAT=/bin/cat
-KILL=/bin/kill
-
-case "$1" in
-
-start)
-  echo "starting bind"
-  %%PREFIX%%/sbin/named
-  ;;
-
-restart)
-  echo "restarting bind"
-  $KILL -HUP `$CAT %%PREFIX%%/var/run/$PIDFILE` 
-  ;;
-
-stop)
-  echo "stopping bind"
-  $KILL -15 `$CAT %%PREFIX%%/var/run/$PIDFILE` 
-  ;;
-
-*)
-  echo "Usage: %%PREFIX%%/etc/rc.d/bind {start|stop|restart}"
-  exit 1
-  ;;
-
-esac

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061103/a708eb21/attachment.html


More information about the macports-changes mailing list