aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-11 13:49:42 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-11 13:49:42 +0000
commitb88f6ba7be6e6c201c668a1781914f26883dfdba (patch)
tree6b754c8a8cb895669e4705ef5c3e8346dbd364d6
parent09c248a92abc3f339b9e7b21c2108dfdee299e67 (diff)
downloadaports-b88f6ba7be6e6c201c668a1781914f26883dfdba.tar.bz2
aports-b88f6ba7be6e6c201c668a1781914f26883dfdba.tar.xz
testing/postgresql-old9.1: new aport
Old PostgreSQL binary to be used with postgresql-upgrade http://www.postgresql.org/
-rw-r--r--testing/postgresql-old9.1/1q36
-rw-r--r--testing/postgresql-old9.1/APKBUILD66
2 files changed, 102 insertions, 0 deletions
diff --git a/testing/postgresql-old9.1/1q b/testing/postgresql-old9.1/1q
new file mode 100644
index 0000000000..e8a4d8cd66
--- /dev/null
+++ b/testing/postgresql-old9.1/1q
@@ -0,0 +1,36 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=postgresql
+pkgver=9.1.5
+_engine_ver=${pkgver%.*}
+pkgrel=0
+pkgdesc="Old PostgreSQL binary to be used with postgresql-upgrade"
+url="http://www.postgresql.org/"
+arch="all"
+license="BSD"
+install=""
+depends_dev="readline-dev openssl-dev zlib-dev libxml2-dev"
+makedepends="$depends_dev"
+subpackages=""
+source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2
+ "
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver || return 1
+ ./configure --prefix=/usr/lib/postgresql-${_engine_ver} \
+ --mandir=/usr/share/man \
+ --with-openssl \
+ --disable-rpath \
+ || return 1
+
+ make all || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver || return 1
+ make DESTDIR="$pkgdir" install || return 1
+
+ # remo stuff not needed for upgrade
+# cd "$pkgdir"/usr/lib/potgresql-${_engine_ver}
+}
+
+md5sums="c784decb60615aa94c6a31601bc6ffd2 postgresql-9.1.5.tar.bz2"
diff --git a/testing/postgresql-old9.1/APKBUILD b/testing/postgresql-old9.1/APKBUILD
new file mode 100644
index 0000000000..33cbd27d2a
--- /dev/null
+++ b/testing/postgresql-old9.1/APKBUILD
@@ -0,0 +1,66 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgver=9.1.5
+_engine_ver=${pkgver%.*}
+pkgname=postgresql-old${_engine_ver}
+pkgrel=0
+pkgdesc="Old PostgreSQL binary to be used with postgresql-upgrade"
+url="http://www.postgresql.org/"
+arch="all"
+license="BSD"
+install=""
+depends_dev="readline-dev openssl-dev zlib-dev libxml2-dev"
+makedepends="$depends_dev"
+subpackages=""
+source="ftp://ftp.postgresql.org/pub/source/v$pkgver/postgresql-$pkgver.tar.bz2
+ "
+
+_builddir="$srcdir"/postgresql-$pkgver
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr/lib/postgresql-${_engine_ver} \
+ --mandir=/usr/share/man \
+ --with-openssl \
+ --disable-rpath \
+ --disable-shared \
+ || return 1
+
+ make all || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+
+ # remo stuff not needed for upgrade
+ cd "$pkgdir"/usr/lib/postgresql-${_engine_ver}
+ rm bin/clusterdb
+ rm bin/createdb
+ rm bin/createlang
+ rm bin/createuser
+ rm bin/dropdb
+ rm bin/droplang
+ rm bin/dropuser
+ rm bin/ecpg
+ rm bin/initdb
+ rm bin/pg_basebackup
+ rm bin/pg_config
+ rm bin/pg_controldata
+ rm bin/pg_dump
+ rm bin/pg_dumpall
+ rm bin/pg_restore
+ rm bin/psql
+ rm bin/reindexdb
+ rm bin/vacuumdb
+ rm -rf include
+ rm -r lib
+ rm -rf share/doc
+ rm -rf share/man
+ rm -rf share/tsearch_data
+ rm share/*.bki
+ rm share/*description
+ rm share/*.sample
+ rm share/*.sql
+ rm share/*.txt
+}
+
+md5sums="c784decb60615aa94c6a31601bc6ffd2 postgresql-9.1.5.tar.bz2"