summaryrefslogtreecommitdiff
path: root/testing/postgresql-old-upgrade
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-27 23:14:33 +0000
committerroot <root@rshg054.dnsready.net>2011-09-27 23:14:33 +0000
commitccb9d72bbf1ee4f7a54113eac76a16b0b5014869 (patch)
treeb54ca3606d7cff4133dac1e84183328e555f4085 /testing/postgresql-old-upgrade
parentabcf87c553a18aec8372de7f690b5aa91a7a0d24 (diff)
Tue Sep 27 23:14:33 UTC 2011
Diffstat (limited to 'testing/postgresql-old-upgrade')
-rw-r--r--testing/postgresql-old-upgrade/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/postgresql-old-upgrade/PKGBUILD b/testing/postgresql-old-upgrade/PKGBUILD
new file mode 100644
index 000000000..7ea45880c
--- /dev/null
+++ b/testing/postgresql-old-upgrade/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 138522 2011-09-26 20:47:05Z dan $
+# Maintainer: Dan McGee <dan@archlinux.org>
+
+pkgname=postgresql-old-upgrade
+pkgver=9.0.5
+_majorver=${pkgver%.*}
+pkgrel=1
+pkgdesc="Minimal PostgreSQL build for migrating between major versions with pg_upgrade"
+arch=('i686' 'x86_64')
+url="http://www.postgresql.org/"
+license=('custom:PostgreSQL')
+depends=("postgresql-libs>=${_majorver}" 'libxml2' 'openssl>=1.0.0')
+source=(ftp://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2)
+
+build() {
+ cd "${srcdir}/postgresql-${pkgver}"
+
+ ./configure --prefix=/opt/pgsql-${_majorver} \
+ --with-libxml --with-openssl --without-perl \
+ --without-python --with-pam --without-readline \
+ --with-system-tzdata=/usr/share/zoneinfo --disable-nls \
+ --enable-thread-safety
+
+ make -C src all
+}
+
+package() {
+ cd "${srcdir}/postgresql-${pkgver}"
+
+ # install
+ make DESTDIR="${pkgdir}" -C src install
+
+ # install license
+ install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ # clean up unneeded installed items
+ rm -rf "${pkgdir}/opt/pgsql-${_majorver}/include/"
+}
+
+md5sums=('86816eb8a8513532957b96045abdfef9')
+sha256sums=('56d8ee809ceeabeae8461ae0a197943460cba5bf8fbe37324e4451cf2eb7d504')