[23419] trunk/dports/devel/perforce/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sat Mar 31 12:28:26 PDT 2007


Revision: 23419
          http://trac.macosforge.org/projects/macports/changeset/23419
Author:   markd at macports.org
Date:     2007-03-31 12:28:25 -0700 (Sat, 31 Mar 2007)

Log Message:
-----------
Closes #11306.  Update to 06.2 and convert DarwinPortsStartup to StartupItems.

Modified Paths:
--------------
    trunk/dports/devel/perforce/Portfile

Modified: trunk/dports/devel/perforce/Portfile
===================================================================
--- trunk/dports/devel/perforce/Portfile	2007-03-31 18:33:13 UTC (rev 23418)
+++ trunk/dports/devel/perforce/Portfile	2007-03-31 19:28:25 UTC (rev 23419)
@@ -2,21 +2,21 @@
 
 PortSystem 1.0
 name		perforce
-version		06.1
+version		06.2
 categories	devel
 maintainers	nomaintainer at macports.org
 description	Fast source code management system
 long_description	Perforce is a commercial revision control system that can be used gratis for developing free software. (see the WWW page for details). 
 homepage    http://www.perforce.com/
-platforms	darwin freebsd
+platforms	darwin
 master_sites    ftp://www.perforce.com/pub/perforce/r${version}/bin.darwin80ppc/ \
                 http://www.perforce.com/perforce/doc.052/man/
 dist_subdir	${name}
 worksrcdir	${name}
 distfiles	p4 p4.1 p4d p4d.1
-checksums	p4 md5 c93999fe1fe3f87ea1dfec1aad3e883d \
+checksums	p4 md5 345fe525b8a647c5b12fc078a67edba6 \
 		p4.1 md5 e5cada2f402e1e016be7999fdc49035d \
-		p4d md5 95608c2f44fe378a03bc9a48fc10a36e \
+		p4d md5 b00b4a3ff97afe4526ba2a7a8fa7008c \
 		p4d.1 md5 1aa86f28ba0698266bf1dcaded3e4106
 extract		{ system "mkdir -p ${portpath}/${workdir}/${worksrcdir}"
 	 	  system "cp ${distpath}/* \
@@ -36,7 +36,8 @@
 		    ${destroot}${prefix}/share/man/man8" }
 
 variant server {
-depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
+	startupitem.create    yes
+	startupitem.start    "su -c ${prefix}/sbin/p4d -d -r ${prefix}/share/perforce/depot -L ${prefix}/share/perforce/log"
 
 	post-destroot {
 		addgroup perforce
@@ -45,15 +46,8 @@
 			home=${prefix}/share/perforce shell=/bin/sh
 		system "install -o perforce -m 755 -d \
 			${destroot}${prefix}/share/perforce/depot"
-		system "install -o root -m 755 -d ${destroot}${prefix}/etc/rc.d"
 		system "install -o perforce -m 644 -c /dev/null \
 			${destroot}${prefix}/share/perforce/log"
-		set script [open "${destroot}${prefix}/etc/rc.d/perforce.sh" w 0755]
-		puts $script "#!/bin/sh"
-		puts $script "su perforce -c \"${prefix}/sbin/p4d -d -r \
-			${prefix}/share/perforce/depot -L \
-			${prefix}/share/perforce/log\""
-		close $script
 	}
 }
 

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


More information about the macports-changes mailing list