[138234] trunk/dports/databases
jwa at macports.org
jwa at macports.org
Thu Jul 2 12:45:46 PDT 2015
Revision: 138234
https://trac.macports.org/changeset/138234
Author: jwa at macports.org
Date: 2015-07-02 12:45:46 -0700 (Thu, 02 Jul 2015)
Log Message:
-----------
postgresql95: first alpha release os PostgreSQL 9.5 (Portfiles copied and modified from previous version), contrib modules adjustments according to variants
Modified Paths:
--------------
trunk/dports/databases/postgresql95/Portfile
trunk/dports/databases/postgresql95-doc/Portfile
trunk/dports/databases/postgresql95-server/Portfile
Added Paths:
-----------
trunk/dports/databases/postgresql95/
trunk/dports/databases/postgresql95/files/postgresql95
trunk/dports/databases/postgresql95-doc/
trunk/dports/databases/postgresql95-server/
Removed Paths:
-------------
trunk/dports/databases/postgresql95/files/postgresql94
Modified: trunk/dports/databases/postgresql95/Portfile
===================================================================
--- trunk/dports/databases/postgresql94/Portfile 2015-06-24 10:21:08 UTC (rev 137988)
+++ trunk/dports/databases/postgresql95/Portfile 2015-07-02 19:45:46 UTC (rev 138234)
@@ -6,8 +6,8 @@
PortGroup compiler_blacklist_versions 1.0
#remember to update the -doc and -server as well
-name postgresql94
-version 9.4.4
+name postgresql95
+version 9.5alpha1
categories databases
platforms darwin
@@ -25,8 +25,8 @@
postgresql:source/v${version}/
distname postgresql-${version}
-checksums rmd160 8bb4bc15d62a310c27d2028d01466b1dce03e51f \
- sha256 538ed99688d6fdbec6fd166d1779cf4588bf2f16c52304e5ef29f904c43b0013
+checksums rmd160 5791e9f9315ffe7ac3f32697861a9cf4df4e1392 \
+ sha256 c97779f6c539e9072fa853fca8273f910f08805ae74456a01ab1fd0841ecfca2
use_bzip2 yes
@@ -81,9 +81,9 @@
# remember to change livecheck with first proper release
livecheck.type regex
-livecheck.regex (9\\.4\\.\[.0-9\]+)
+#livecheck.regex (9\\.5\\.\[.0-9\]+)
livecheck.url ${homepage}/ftp/source/
-#livecheck.regex (9\\.4\[.0-9\]*\[a-z\]+\[0-9\])
+livecheck.regex (9\\.5\[.0-9\]*\[a-z\]+\[0-9\])
# prepare the contrib modules
set contribs {}
@@ -91,6 +91,14 @@
post-build {
# remove a Linux-specific contrib before continuing
file delete -force ${worksrcpath}/contrib/sepgsql
+# remove perl-specific contrib, if no perl variant
+ if {![variant_isset perl]} {
+ file delete -force ${worksrcpath}/contrib/hstore_plperl
+ }
+# remove python-specific contrib, if no python27 variant
+ if {![variant_isset python27]} {
+ file delete -force ${worksrcpath}/contrib/hstore_plpython
+ }
set contribdirs [glob -nocomplain -type d ${worksrcpath}/contrib/*]
foreach d [lsort $contribdirs] {
if { [file exists $d/Makefile] } {
@@ -108,18 +116,18 @@
system "cd ${worksrcpath}/contrib/${contrib}/ && \
${destroot.cmd} install ${destroot.destdir} && touch DONE"
}
- system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql94"
+ system "cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql95"
file delete -force ${destroot}${prefix}/share/doc/postgresql \
${destroot}${prefix}/share/man
reinplace -E "s#-arch\[\[:space:\]\]+\[\[:alnum:\]_\]+##g" \
- ${destroot}${prefix}/lib/postgresql94/pgxs/src/Makefile.global
+ ${destroot}${prefix}/lib/${name}/pgxs/src/Makefile.global
reinplace -E "s#^CFLAGS =#CFLAGS +=#g" \
- ${destroot}${prefix}/lib/postgresql94/pgxs/src/Makefile.global
+ ${destroot}${prefix}/lib/${name}/pgxs/src/Makefile.global
reinplace -E "s#^(\[\[:space:\]\]+)LDFLAGS =#\\1LDFLAGS +=#g" \
- ${destroot}${prefix}/lib/postgresql94/pgxs/src/Makefile.global
+ ${destroot}${prefix}/lib/${name}/pgxs/src/Makefile.global
}
select.group postgresql
Deleted: trunk/dports/databases/postgresql95/files/postgresql94
===================================================================
--- trunk/dports/databases/postgresql94/files/postgresql94 2015-06-24 10:21:08 UTC (rev 137988)
+++ trunk/dports/databases/postgresql95/files/postgresql94 2015-07-02 19:45:46 UTC (rev 138234)
@@ -1,33 +0,0 @@
-lib/postgresql94/bin/clusterdb
-lib/postgresql94/bin/createdb
-lib/postgresql94/bin/createlang
-lib/postgresql94/bin/createuser
-lib/postgresql94/bin/dropdb
-lib/postgresql94/bin/droplang
-lib/postgresql94/bin/dropuser
-lib/postgresql94/bin/ecpg
-lib/postgresql94/bin/initdb
-lib/postgresql94/bin/oid2name
-lib/postgresql94/bin/pg_archivecleanup
-lib/postgresql94/bin/pg_basebackup
-lib/postgresql94/bin/pg_config
-lib/postgresql94/bin/pg_controldata
-lib/postgresql94/bin/pg_ctl
-lib/postgresql94/bin/pg_dump
-lib/postgresql94/bin/pg_dumpall
-lib/postgresql94/bin/pg_isready
-lib/postgresql94/bin/pg_receivexlog
-lib/postgresql94/bin/pg_resetxlog
-lib/postgresql94/bin/pg_restore
-lib/postgresql94/bin/pg_standby
-lib/postgresql94/bin/pg_test_fsync
-lib/postgresql94/bin/pg_test_timing
-lib/postgresql94/bin/pg_upgrade
-lib/postgresql94/bin/pg_xlogdump
-lib/postgresql94/bin/pgbench
-lib/postgresql94/bin/postgres
-lib/postgresql94/bin/postmaster
-lib/postgresql94/bin/psql
-lib/postgresql94/bin/reindexdb
-lib/postgresql94/bin/vacuumdb
-lib/postgresql94/bin/vacuumlo
Copied: trunk/dports/databases/postgresql95/files/postgresql95 (from rev 137988, trunk/dports/databases/postgresql94/files/postgresql94)
===================================================================
--- trunk/dports/databases/postgresql95/files/postgresql95 (rev 0)
+++ trunk/dports/databases/postgresql95/files/postgresql95 2015-07-02 19:45:46 UTC (rev 138234)
@@ -0,0 +1,33 @@
+lib/postgresql95/bin/clusterdb
+lib/postgresql95/bin/createdb
+lib/postgresql95/bin/createlang
+lib/postgresql95/bin/createuser
+lib/postgresql95/bin/dropdb
+lib/postgresql95/bin/droplang
+lib/postgresql95/bin/dropuser
+lib/postgresql95/bin/ecpg
+lib/postgresql95/bin/initdb
+lib/postgresql95/bin/oid2name
+lib/postgresql95/bin/pg_archivecleanup
+lib/postgresql95/bin/pg_basebackup
+lib/postgresql95/bin/pg_config
+lib/postgresql95/bin/pg_controldata
+lib/postgresql95/bin/pg_ctl
+lib/postgresql95/bin/pg_dump
+lib/postgresql95/bin/pg_dumpall
+lib/postgresql95/bin/pg_isready
+lib/postgresql95/bin/pg_receivexlog
+lib/postgresql95/bin/pg_resetxlog
+lib/postgresql95/bin/pg_restore
+lib/postgresql95/bin/pg_standby
+lib/postgresql95/bin/pg_test_fsync
+lib/postgresql95/bin/pg_test_timing
+lib/postgresql95/bin/pg_upgrade
+lib/postgresql95/bin/pg_xlogdump
+lib/postgresql95/bin/pgbench
+lib/postgresql95/bin/postgres
+lib/postgresql95/bin/postmaster
+lib/postgresql95/bin/psql
+lib/postgresql95/bin/reindexdb
+lib/postgresql95/bin/vacuumdb
+lib/postgresql95/bin/vacuumlo
Modified: trunk/dports/databases/postgresql95-doc/Portfile
===================================================================
--- trunk/dports/databases/postgresql94-doc/Portfile 2015-06-24 10:21:08 UTC (rev 137988)
+++ trunk/dports/databases/postgresql95-doc/Portfile 2015-07-02 19:45:46 UTC (rev 138234)
@@ -3,10 +3,10 @@
PortSystem 1.0
-name postgresql94-doc
+name postgresql95-doc
conflicts postgresql84-doc postgresql90-doc postgresql91-doc \
- postgresql92-doc postgresql93-doc
-version 9.4.4
+ postgresql92-doc postgresql93-doc postgresql94-doc
+version 9.5alpha1
categories databases
platforms darwin
maintainers mww jwa
@@ -21,14 +21,15 @@
homepage http://www.postgresql.org/
master_sites postgresql:source/v${version}
distname postgresql-${version}
+set rname postgresql95
-checksums rmd160 8bb4bc15d62a310c27d2028d01466b1dce03e51f \
- sha256 538ed99688d6fdbec6fd166d1779cf4588bf2f16c52304e5ef29f904c43b0013
+checksums rmd160 5791e9f9315ffe7ac3f32697861a9cf4df4e1392 \
+ sha256 c97779f6c539e9072fa853fca8273f910f08805ae74456a01ab1fd0841ecfca2
use_bzip2 yes
-dist_subdir postgresql94
+dist_subdir ${rname}
-set libdir ${prefix}/lib/postgresql94
+set libdir ${prefix}/lib/${rname}
configure.args --mandir=${prefix}/share/man \
--without-openssl \
--without-readline \
@@ -42,7 +43,7 @@
post-destroot {
file rename ${destroot}${prefix}/share/doc/postgresql \
- ${destroot}${prefix}/share/doc/postgresql94
+ ${destroot}${prefix}/share/doc/${rname}
}
livecheck.type none
Modified: trunk/dports/databases/postgresql95-server/Portfile
===================================================================
--- trunk/dports/databases/postgresql94-server/Portfile 2015-06-24 10:21:08 UTC (rev 137988)
+++ trunk/dports/databases/postgresql95-server/Portfile 2015-07-02 19:45:46 UTC (rev 138234)
@@ -3,41 +3,43 @@
PortSystem 1.0
-name postgresql94-server
-version 9.4.4
+name postgresql95-server
+version 9.5alpha1
categories databases
platforms darwin
maintainers mww jwa
license Permissive
-description run postgresql94 as server
+
+set rname postgresql95
+description run ${rname} as server
long_description ${description}
distfiles
homepage http://www.postgresql.org/
master_sites postgresql
-depends_run port:postgresql94
+depends_run port:${rname}
use_configure no
build {}
-set libdir ${prefix}/lib/postgresql94
-set dbdir ${prefix}/var/db/postgresql94/defaultdb
-set logdir ${prefix}/var/log/postgresql94
+set libdir ${prefix}/lib/${rname}
+set dbdir ${prefix}/var/db/${rname}/defaultdb
+set logdir ${prefix}/var/log/${rname}
set dbuser postgres
set dbgrp postgres
add_users ${dbuser} shell=/bin/sh group=${dbgrp} \
- home=${prefix}/var/db/postgresql94 \
- realname=PostgreSQL-94\ Server
+ home=${prefix}/var/db/${rname} \
+ realname=PostgreSQL-95\ Server
startupitem.create yes
startupitem.init \
"PGCTL=${libdir}/bin/pg_ctl"
startupitem.start \
- "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL94DATA:=${dbdir}} start -l ${logdir}/postgres.log\""
+ "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL95DATA:=${dbdir}} start -l ${logdir}/postgres.log\""
startupitem.stop \
-"su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL94DATA:=${dbdir}} stop -s -m fast\""
+"su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL95DATA:=${dbdir}} stop -s -m fast\""
destroot {
xinstall -m 755 -d ${destroot}${logdir}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150702/ee8a2144/attachment-0001.html>
More information about the macports-changes
mailing list