[63980] users/ged/sysutils/cfengine3/Portfile

ged at macports.org ged at macports.org
Fri Feb 19 14:50:44 PST 2010


Revision: 63980
          http://trac.macports.org/changeset/63980
Author:   ged at macports.org
Date:     2010-02-19 14:50:41 -0800 (Fri, 19 Feb 2010)
Log Message:
-----------
Commenting out the cf2-particular pre- and post-stage sections to get stuff to at least install

Modified Paths:
--------------
    users/ged/sysutils/cfengine3/Portfile

Modified: users/ged/sysutils/cfengine3/Portfile
===================================================================
--- users/ged/sysutils/cfengine3/Portfile	2010-02-19 21:54:19 UTC (rev 63979)
+++ users/ged/sysutils/cfengine3/Portfile	2010-02-19 22:50:41 UTC (rev 63980)
@@ -1,30 +1,35 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 # $Id$
-PortSystem		1.0
+PortSystem			1.0
 
-name			    cfengine3
-version			    3.0.2
-revision		    0
-categories		    sysutils
-maintainers		    ged
-description		    network configuration-management tool
-long_description    a tool for setting up and maintaining BSD and System-5-like operating \
-				    system optionally attached to a TCP/IP network. You can think of cfengine \
-				    as a very high level language, much higher level than Perl or shell: a \
-				    single statement can result in many hundreds of operations being performed \
-				    on multiple hosts. Cfengine is good at performing a lot of common system \
-				    administration tasks, and allows you to build on its strengths with your \
-				    own scripts. 
-homepage		    http://www.cfengine.org/
-master_sites	    http://www.cfengine.org/tarballs/
-checksums           md5     ba23adb8c54c2da13953d8b24f303430 \
-                    sha1    705bf0fa8032b495d67592b28f3c11784e619020 \
-                    rmd160  8de5dcd4d96ad76d159b412252528d08a6c9590b
-platforms		    darwin
+name				cfengine3
+conflicts			cfengine
+version				3.0.3
+revision			0
+categories			sysutils
+maintainers			ged
+description			network configuration-management tool
+long_description	a tool for setting up and maintaining BSD and System-5-like operating \
+					system optionally attached to a TCP/IP network. You can think of cfengine \
+					as a very high level language, much higher level than Perl or shell: a \
+					single statement can result in many hundreds of operations being performed \
+					on multiple hosts. Cfengine is good at performing a lot of common system \
+					administration tasks, and allows you to build on its strengths with your \
+					own scripts. 
+homepage			http://www.cfengine.org/
+master_sites		http://www.cfengine.org/tarballs/
+distfiles			cfengine-${version}.tar.gz
+checksums           md5     ba1af278e9f8b519766b6ca4e1377d22 \
+                    sha1    1aee7c45d3fe19232c7fea03bbd3005c0f882084 \
+                    rmd160  042f443ecfd79fe65d7364b9d5e0a4112775173e
+platforms			darwin
                     
-depends_lib		    port:db48 \
-				    port:openssl \
-				    port:pcre
+worksrcdir			cfengine-${version}
+
+depends_lib			port:db46 \
+					port:openssl \
+					port:pcre \
+					port:gd2
                     
 post-patch {
 	foreach manfile [glob ${worksrcpath}/docs/*.8] {
@@ -35,129 +40,132 @@
 
 set cfworkdir	${prefix}/var/cfengine
 
-configure.cflags	-I${prefix}/include/db44 -I${prefix}/include
-configure.ldflags	-L${prefix}/lib/db44 -L${prefix}/lib
-configure.args	--mandir='\${prefix}/share/man' \
-				--infodir='\${prefix}/share/info' \
-				--with-workdir="${cfworkdir}" \
-				--with-berkeleydb=default \
-				--with-openssl=default \
-				--with-pcre=default \
-				--with-docs
+configure.cflags	-I${prefix}/include/db46 -I${prefix}/include
+configure.ldflags	-L${prefix}/lib/db46 -L${prefix}/lib
+configure.args		--mandir='\${prefix}/share/man' \
+					--infodir='\${prefix}/share/info' \
+					--with-workdir="${cfworkdir}" \
+					--with-berkeleydb=default \
+					--with-openssl=default \
+					--with-pcre=default \
+					--with-docs
 
-build.args		ps_DATA=
-destroot.args	ps_DATA=
+# build.args		ps_DATA=
+# destroot.args	ps_DATA=
+# 
+# pre-destroot {
+# 	if {$env(USER) != "root"} {
+# 		ui_msg "-----------------------------------------------------------"
+# 		ui_msg "Note that you are not running as root, so files installed"
+# 		ui_msg "by this port will not end up with proper ownership and"
+# 		ui_msg "likely not work correctly with ${name}."
+# 		ui_msg "-----------------------------------------------------------"
+# 	}
+# }
+# 
+# destroot.keepdirs	${destroot}${cfworkdir}/bin \
+# 					${destroot}${cfworkdir}/inputs \
+# 					${destroot}${cfworkdir}/modules \
+# 					${destroot}${cfworkdir}/outputs \
+# 					${destroot}${cfworkdir}/ppkeys \
+# 					${destroot}${cfworkdir}/rpc_in \
+# 					${destroot}${cfworkdir}/rpc_out \
+# 					${destroot}${cfworkdir}/state
+# post-destroot {
+# 	# Create cfengine directories
+# 	xinstall -d -m 0755 ${destroot}${cfworkdir}
+# 	# Create cfengine sub-directories
+# 	foreach subdir {bin modules state} {
+# 		xinstall -d -m 0755 ${destroot}${cfworkdir}/${subdir}
+# 	}
+# 	foreach subdir {inputs masterfiles/inputs outputs ppkeys rpc_in rpc_out} {
+# 		xinstall -d -m 0700 ${destroot}${cfworkdir}/${subdir}
+# 	}
+# 	# Create distribution sample conf files
+# 	set hostname [exec hostname]
+# 	set host [lindex [split ${hostname} {.}] 0]
+# 	set domain [join [lrange [split ${hostname} {.}] 1 end] {.}]
+# 	set timezone [exec date +%Z]
+# 	foreach conf {cfagent.conf cfservd.conf update.conf cfrun.hosts} {
+# 		xinstall -m 0644  ${filespath}/${conf}.in \
+# 			${destroot}${cfworkdir}/masterfiles/inputs/${conf}-dist
+# 		reinplace "s|__PREFIX|${prefix}|g" \
+# 			${destroot}${cfworkdir}/masterfiles/inputs/${conf}-dist
+# 		reinplace "s|__CFWORKDIR|${cfworkdir}|g" \
+# 			${destroot}${cfworkdir}/masterfiles/inputs/${conf}-dist
+# 		reinplace "s|__HOST|${host}|g" \
+# 			${destroot}${cfworkdir}/masterfiles/inputs/${conf}-dist
+# 		reinplace "s|__DOMAIN|${domain}|g" \
+# 			${destroot}${cfworkdir}/masterfiles/inputs/${conf}-dist
+# 		reinplace "s|__TIMEZONE|${timezone}|g" \
+# 			${destroot}${cfworkdir}/masterfiles/inputs/${conf}-dist
+# 	}
+# 	# Create startup rc script (if non-Darwin)
+# 	if {![variant_isset darwin]} {
+# 		xinstall -d -m 0755 ${destroot}${prefix}/etc/rc.d
+# 		xinstall -m 0755 ${filespath}/${name}.sh.in \
+# 			${destroot}${prefix}/etc/rc.d/${name}.sh
+# 		reinplace "s|__PREFIX|${prefix}|" \
+# 			${destroot}${prefix}/etc/rc.d/${name}.sh
+# 		reinplace "s|__CFWORKDIR|${cfworkdir}|" \
+# 			${destroot}${prefix}/etc/rc.d/${name}.sh
+# 	}
+# }
+# 
+# post-activate {
+# 	# Make sure initial conf files are present and setup correctly
+# 	if {![file exists ${cfworkdir}/inputs/update.conf]} {
+# 		xinstall -m 0644 ${cfworkdir}/masterfiles/inputs/update.conf-dist \
+# 			${cfworkdir}/inputs/update.conf
+# 	}
+# 	foreach conf {cfagent.conf cfservd.conf update.conf cfrun.hosts} {
+# 		if {![file exists ${cfworkdir}/masterfiles/inputs/${conf}]} {
+# 			xinstall -m 0644 ${cfworkdir}/masterfiles/inputs/${conf}-dist \
+# 				${cfworkdir}/masterfiles/inputs/${conf}
+# 		}
+# 	}
+# 	# Check for root public-private keys, create if missing
+# 	if {![file exists ${cfworkdir}/ppkeys/localhost.priv] \
+# 		|| ![file exists ${cfworkdir}/ppkeys/localhost.pub]} {
+# 		if {[file exists ${cfworkdir}/ppkeys/localhost.priv]} {
+# 			delete ${cfworkdir}/ppkeys/localhost.priv
+# 		}
+# 		if {[file exists ${cfworkdir}/ppkeys/localhost.pub]} {
+# 			delete ${cfworkdir}/ppkeys/localhost.pub
+# 		}
+# 		system "${prefix}/sbin/cfkey"
+# 	}
+# }
+# 
+# variant psdocs {
+# 	depends_build			bin:tex:texlive \
+# 							bin:texinfo:texinfo
+# 	build.args-delete		ps_DATA=
+# 	destroot.args-delete	ps_DATA=
+# }
 
-pre-destroot {
-	if {$env(USER) != "root"} {
-		ui_msg "-----------------------------------------------------------"
-		ui_msg "Note that you are not running as root, so files installed"
-		ui_msg "by this port will not end up with proper ownership and"
-		ui_msg "likely not work correctly with ${name}."
-		ui_msg "-----------------------------------------------------------"
-	}
+variant sql {
+	configure.args-append	--with-sql 
 }
-
-destroot.keepdirs	${destroot}${cfworkdir}/bin \
-					${destroot}${cfworkdir}/inputs \
-					${destroot}${cfworkdir}/modules \
-					${destroot}${cfworkdir}/outputs \
-					${destroot}${cfworkdir}/ppkeys \
-					${destroot}${cfworkdir}/rpc_in \
-					${destroot}${cfworkdir}/rpc_out \
-					${destroot}${cfworkdir}/state
-post-destroot {
-	# Create cfengine directories
-	xinstall -d -m 0755 ${destroot}${cfworkdir}
-	# Create cfengine sub-directories
-	foreach subdir {bin modules state} {
-		xinstall -d -m 0755 ${destroot}${cfworkdir}/${subdir}
-	}
-	foreach subdir {inputs masterfiles/inputs outputs ppkeys rpc_in rpc_out} {
-		xinstall -d -m 0700 ${destroot}${cfworkdir}/${subdir}
-	}
-	# Create distribution sample conf files
-	set hostname [exec hostname]
-	set host [lindex [split ${hostname} {.}] 0]
-	set domain [join [lrange [split ${hostname} {.}] 1 end] {.}]
-	set timezone [exec date +%Z]
-	foreach conf {cfagent.conf cfservd.conf update.conf cfrun.hosts} {
-		xinstall -m 0644  ${filespath}/${conf}.in \
-			${destroot}${cfworkdir}/masterfiles/inputs/${conf}-dist
-		reinplace "s|__PREFIX|${prefix}|g" \
-			${destroot}${cfworkdir}/masterfiles/inputs/${conf}-dist
-		reinplace "s|__CFWORKDIR|${cfworkdir}|g" \
-			${destroot}${cfworkdir}/masterfiles/inputs/${conf}-dist
-		reinplace "s|__HOST|${host}|g" \
-			${destroot}${cfworkdir}/masterfiles/inputs/${conf}-dist
-		reinplace "s|__DOMAIN|${domain}|g" \
-			${destroot}${cfworkdir}/masterfiles/inputs/${conf}-dist
-		reinplace "s|__TIMEZONE|${timezone}|g" \
-			${destroot}${cfworkdir}/masterfiles/inputs/${conf}-dist
-	}
-	# Create startup rc script (if non-Darwin)
-	if {![variant_isset darwin]} {
-		xinstall -d -m 0755 ${destroot}${prefix}/etc/rc.d
-		xinstall -m 0755 ${filespath}/${name}.sh.in \
-			${destroot}${prefix}/etc/rc.d/${name}.sh
-		reinplace "s|__PREFIX|${prefix}|" \
-			${destroot}${prefix}/etc/rc.d/${name}.sh
-		reinplace "s|__CFWORKDIR|${cfworkdir}|" \
-			${destroot}${prefix}/etc/rc.d/${name}.sh
-	}
-}
-
-post-activate {
-	# Make sure initial conf files are present and setup correctly
-	if {![file exists ${cfworkdir}/inputs/update.conf]} {
-		xinstall -m 0644 ${cfworkdir}/masterfiles/inputs/update.conf-dist \
-			${cfworkdir}/inputs/update.conf
-	}
-	foreach conf {cfagent.conf cfservd.conf update.conf cfrun.hosts} {
-		if {![file exists ${cfworkdir}/masterfiles/inputs/${conf}]} {
-			xinstall -m 0644 ${cfworkdir}/masterfiles/inputs/${conf}-dist \
-				${cfworkdir}/masterfiles/inputs/${conf}
-		}
-	}
-	# Check for root public-private keys, create if missing
-	if {![file exists ${cfworkdir}/ppkeys/localhost.priv] \
-		|| ![file exists ${cfworkdir}/ppkeys/localhost.pub]} {
-		if {[file exists ${cfworkdir}/ppkeys/localhost.priv]} {
-			delete ${cfworkdir}/ppkeys/localhost.priv
-		}
-		if {[file exists ${cfworkdir}/ppkeys/localhost.pub]} {
-			delete ${cfworkdir}/ppkeys/localhost.pub
-		}
-		system "${prefix}/sbin/cfkey"
-	}
-}
-
-variant psdocs {
-	depends_build			bin:tex:texlive \
-							bin:texinfo:texinfo
-	build.args-delete		ps_DATA=
-	destroot.args-delete	ps_DATA=
-}
-
-variant postgres {}
 variant ldap {}
 variant mysql {}
 variant graphviz {}
+variant tokyocabinet {}
 
-platform darwin {
-	startupitem.create			yes
-	startupitem.name			Cfengine3
-	startupitem.start			"\[ -x ${cfworkdir}/bin/cfservd \] && ${cfworkdir}/bin/cfservd"
-	startupitem.start-append	"\[ -x ${cfworkdir}/bin/cfenvd \] && ${cfworkdir}/bin/cfenvd -H"
-	startupitem.start-append	"\[ -x ${cfworkdir}/bin/cfexecd \] && ${cfworkdir}/bin/cfexecd"
-	startupitem.start-append	"(\[ -x ${cfworkdir}/bin/cfservd \] && \[ -x ${cfworkdir}/bin/cfenvd \] && \\"
-	startupitem.start-append	" \[ -x ${cfworkdir}/bin/cfexecd \] && \[ -x ${cfworkdir}/bin/cfagent \]) \\"
-	startupitem.start-append	"\t|| ${prefix}/sbin/cfagent --no-splay -f update.conf"
-	startupitem.stop			"/usr/bin/killall -SIGUSR1 cfagent 2>/dev/null"
-	startupitem.stop-append		"/usr/bin/killall -SIGUSR1 cfexecd 2>/dev/null"
-	startupitem.stop-append		"/usr/bin/killall -SIGUSR1 cfenvd 2>/dev/null"
-	startupitem.stop-append		"/usr/bin/killall -SIGUSR1 cfservd 2>/dev/null"
-}
+# platform darwin {
+# 	startupitem.create			yes
+# 	startupitem.name			Cfengine3
+# 	startupitem.start			"\[ -x ${cfworkdir}/bin/cfservd \] && ${cfworkdir}/bin/cfservd"
+# 	startupitem.start-append	"\[ -x ${cfworkdir}/bin/cfenvd \] && ${cfworkdir}/bin/cfenvd -H"
+# 	startupitem.start-append	"\[ -x ${cfworkdir}/bin/cfexecd \] && ${cfworkdir}/bin/cfexecd"
+# 	startupitem.start-append	"(\[ -x ${cfworkdir}/bin/cfservd \] && \[ -x ${cfworkdir}/bin/cfenvd \] && \\"
+# 	startupitem.start-append	" \[ -x ${cfworkdir}/bin/cfexecd \] && \[ -x ${cfworkdir}/bin/cfagent \]) \\"
+# 	startupitem.start-append	"\t|| ${prefix}/sbin/cfagent --no-splay -f update.conf"
+# 	startupitem.stop			"/usr/bin/killall -SIGUSR1 cfagent 2>/dev/null"
+# 	startupitem.stop-append		"/usr/bin/killall -SIGUSR1 cfexecd 2>/dev/null"
+# 	startupitem.stop-append		"/usr/bin/killall -SIGUSR1 cfenvd 2>/dev/null"
+# 	startupitem.stop-append		"/usr/bin/killall -SIGUSR1 cfservd 2>/dev/null"
+# }
+# 
 
-
 # vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100219/38f055c7/attachment-0001.html>


More information about the macports-changes mailing list