aboutsummaryrefslogtreecommitdiffstats
path: root/testing/postgresql-old8.4
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-11 13:49:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-11 13:49:43 +0000
commitbcf06c02e5ce580a681830e7e521c19fb1b11941 (patch)
treec40b111773aca567ce4bd19a0c053bfab03fa989 /testing/postgresql-old8.4
parenta8a00df3fffe711b13ad664a22f24c6a30244ad4 (diff)
downloadaports-bcf06c02e5ce580a681830e7e521c19fb1b11941.tar.bz2
aports-bcf06c02e5ce580a681830e7e521c19fb1b11941.tar.xz
testing/postgresql-old8.4: new aport
Old PostgreSQL engine to be used with postgresql-upgrade http://www.postgresql.org/
Diffstat (limited to 'testing/postgresql-old8.4')
-rw-r--r--testing/postgresql-old8.4/APKBUILD71
1 files changed, 71 insertions, 0 deletions
diff --git a/testing/postgresql-old8.4/APKBUILD b/testing/postgresql-old8.4/APKBUILD
new file mode 100644
index 0000000000..d75fa3e10c
--- /dev/null
+++ b/testing/postgresql-old8.4/APKBUILD
@@ -0,0 +1,71 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgver=8.4.13
+_engine_ver=${pkgver%.*}
+pkgname=postgresql-old${_engine_ver}
+pkgrel=0
+pkgdesc="Old PostgreSQL engine 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 lib/dict_snowball.so
+ rm lib/libecpg*
+ rm lib/libpg*
+ rm lib/libpq*
+ rm -rf lib/pgxs
+ rm lib/plpgsql.so
+ 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="220657cf9c37e6688c7501d28b2ce8ef postgresql-8.4.13.tar.bz2"