[73205] trunk/dports/databases

ryandesign at macports.org ryandesign at macports.org
Sat Nov 6 17:17:15 PDT 2010


Revision: 73205
          http://trac.macports.org/changeset/73205
Author:   ryandesign at macports.org
Date:     2010-11-06 17:17:11 -0700 (Sat, 06 Nov 2010)
Log Message:
-----------
postgresql-devel, postgresql-server-devel: replaced by postgresql91 and postgresql91-server, respectively; see #21076

Modified Paths:
--------------
    trunk/dports/databases/postgresql-devel/Portfile
    trunk/dports/databases/postgresql-server-devel/Portfile

Modified: trunk/dports/databases/postgresql-devel/Portfile
===================================================================
--- trunk/dports/databases/postgresql-devel/Portfile	2010-11-06 23:21:58 UTC (rev 73204)
+++ trunk/dports/databases/postgresql-devel/Portfile	2010-11-07 00:17:11 UTC (rev 73205)
@@ -3,8 +3,7 @@
 PortSystem 1.0
 
 name			postgresql-devel
-version		        20090613	
-revision        1
+version			9.1alpha
 maintainers		gmail.com:chepra
 categories		databases
 platforms		darwin
@@ -16,90 +15,13 @@
 				integrity.
 
 homepage		http://www.postgresql.org/
-distname		pgsql
+distfiles
 
-fetch.type		cvs
-cvs.root		:pserver:anoncvs at anoncvs.postgresql.org:/projects/cvsroot
-cvs.password		macportrules
-cvs.date                "[string range $version 0 3]-[string range $version 4 5]-[string range $version 6 7]"
+replaced_by		postgresql91
 
-depends_lib		port:readline port:openssl port:zlib port:libxml2 port:libxslt port:ossp-uuid
-depends_build	        port:bison
-
-worksrcdir		${distname}
-
-set libdir		${prefix}/lib/${name}
-configure.args	--sysconfdir=${prefix}/etc/${name} \
-				--bindir=${libdir}/bin \
-				--libdir=${libdir} \
-				--includedir=${prefix}/include/${name} \
-				--datadir=${prefix}/share/${name} \
-				--mandir=${prefix}/share/man \
-				--without-docdir \
-				--with-includes=${prefix}/include \
-				--with-libraries=${prefix}/lib \
-				--with-openssl \
-				--with-bonjour \
-				--with-readline \
-				--with-zlib \
-				--with-libxml \
-				--with-libxslt \
-				--enable-thread-safety \
-				--enable-integer-datetimes \
-				--with-ossp-uuid
-configure.cppflags-append	-I${prefix}/include/ossp
-
-build.type		gnu
-build.target
-
-test.run		yes
-test.target		check
-
-livecheck.type	regex
-livecheck.url	${homepage}
-livecheck.regex	(8.4.\[0-9\]+)
-
-set contribs	"adminpack dblink fuzzystrmatch lo uuid-ossp pg_buffercache pg_trgm pgcrypto tsearch2 vacuumlo xml2"
-
-post-build {
-	foreach contrib ${contribs} {
-		system "cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}"
-	}
+pre-configure {
+	ui_error "${name} has been replaced by ${replaced_by}; please install that port instead"
+	return -code error "obsolete port"
 }
 
-post-destroot {
-	foreach contrib ${contribs} {
-		system "echo contrib: \"${contrib}\""
-		system "cd ${worksrcpath}/contrib/${contrib}/ && \
-			${destroot.cmd} install ${destroot.destdir} && touch DONE"
-	}
-	system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql-devel"
-	file delete -force ${destroot}${prefix}/share/doc/${name} \
-		${destroot}${prefix}/share/man
-}
-
-variant python description {add support for python} {
-	depends_lib-append		port:python25
-	configure.args-append	--with-python
-	configure.env-append	PYTHON=${prefix}/bin/python2.5
-}
-
-variant krb5 description {add support for Kerberos 5 authentication} {
-	configure.args-append	--with-krb5
-}
-
-variant perl description {add Perl support} {
-	depends_lib-append			bin:perl:perl5
-	configure.args-append		--with-perl
-}
-
-variant tcl description {add Tcl support} {
-	depends_lib-append			port:tcl
-	configure.args-append		--with-tcl --with-tclconfig=${prefix}/lib
-	configure.env-append		TCLSH=${prefix}/bin/tclsh
-}
-
-post-install {
-	ui_msg "\nTo use the postgresql server, install the postgresql-server-devel port"
-}
-
+livecheck.type	none

Modified: trunk/dports/databases/postgresql-server-devel/Portfile
===================================================================
--- trunk/dports/databases/postgresql-server-devel/Portfile	2010-11-06 23:21:58 UTC (rev 73204)
+++ trunk/dports/databases/postgresql-server-devel/Portfile	2010-11-07 00:17:11 UTC (rev 73205)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name			postgresql-server-devel
-version                 20090613	
+version			9.1alpha
 categories		databases
 platforms		darwin
 maintainers		gmail.com:chepra
@@ -11,46 +11,13 @@
 long_description	${description}
 
 homepage		http://www.postgresql.org/
-master_sites		postgresql
+distfiles
 
-depends_run		port:postgresql-devel
+replaced_by		postgresql91-server
 
-fetch	{}
-checksum	{}
-extract	{}
-use_configure	no
-build	{}
-
-set libdir		${prefix}/lib/postgresql-devel
-set dbdir		${prefix}/var/db/postgresql-devel/defaultdb
-set logdir		${prefix}/var/log/postgresql-devel
-set dbuser		postgres
-set dbgrp		postgres
-
-startupitem.create	yes
-startupitem.init	\
-	"PGCTL=${libdir}/bin/pg_ctl"
-startupitem.start	\
-	"su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQLDEVELDATA:=${dbdir}} start -l ${logdir}/postgres.log\""
-startupitem.stop	\
-"su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQLDEVELDATA:=${dbdir}} stop -s -m fast\""
-
-destroot {
-	addgroup ${dbgrp}
-	set gid [existsgroup ${dbgrp}]
-	adduser ${dbuser} shell=/bin/sh gid=${gid} \
-		home=${prefix}/var/db/postgresql-devel \
-		realname=PostgreSQL-devel\ Server
-	xinstall -m 755 -d ${destroot}${logdir}
-	system "touch ${destroot}${logdir}/postgres.log"
-	system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"
+pre-configure {
+	ui_error "${name} has been replaced by ${replaced_by}; please install that port instead"
+	return -code error "obsolete port"
 }
 
-post-install {
-	ui_msg "\nTo create a database instance, after install do\n\
-		sudo mkdir -p ${dbdir}\n\
-		sudo chown ${dbuser}:${dbgrp} ${dbdir}\n\
-		sudo su ${dbuser} -c \'${libdir}/bin/initdb -D ${dbdir}\'"
-	ui_msg "\nTo tweak your DBMS, consider increasing kern.sysv.shmmax\
-		by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf"
-}
+livecheck.type	none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101106/b0c1b1bb/attachment.html>


More information about the macports-changes mailing list