[arch-commits] Commit in postgresql-old-upgrade/repos (4 files)

Levente Polyak anthraxx at archlinux.org
Mon Nov 6 00:27:54 UTC 2017


    Date: Monday, November 6, 2017 @ 00:27:53
  Author: anthraxx
Revision: 308939

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  postgresql-old-upgrade/repos/testing-i686/
  postgresql-old-upgrade/repos/testing-i686/PKGBUILD
    (from rev 308938, postgresql-old-upgrade/trunk/PKGBUILD)
  postgresql-old-upgrade/repos/testing-x86_64/
  postgresql-old-upgrade/repos/testing-x86_64/PKGBUILD
    (from rev 308938, postgresql-old-upgrade/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   54 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 108 insertions(+)

Copied: postgresql-old-upgrade/repos/testing-i686/PKGBUILD (from rev 308938, postgresql-old-upgrade/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2017-11-06 00:27:53 UTC (rev 308939)
@@ -0,0 +1,54 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Dan McGee <dan at archlinux.org>
+
+pkgname=postgresql-old-upgrade
+pkgver=9.6.5
+_majorver=${pkgver%.*}
+pkgrel=1
+pkgdesc='PostgreSQL build for migrating between major versions with pg_upgrade'
+url='https://www.postgresql.org/'
+arch=('i686' 'x86_64')
+license=('custom:PostgreSQL')
+depends=("postgresql-libs>=${_majorver}" 'libxml2' 'openssl>=1.0.0' 'pam')
+makedepends=('krb5' 'python2' 'perl' 'tcl>=8.6.0')
+source=(https://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2)
+sha256sums=('06da12a7e3dddeb803962af8309fa06da9d6989f49e22865335f0a14bad0744c')
+sha512sums=('ad35c27ea55b18005ea61b49d6994718df86519b3f99addd0ecb17ece1f1c34764eb5194f8961c45cfa75703d810baf54433f8538cfd43a70bd908e1e5878df9')
+
+build() {
+  cd postgresql-${pkgver}
+
+  ./configure \
+    --prefix=/opt/pgsql-${_majorver} \
+    --with-gssapi \
+    --with-libxml \
+    --with-openssl \
+    --with-perl \
+    --with-python PYTHON=/usr/bin/python2 \
+    --with-tcl \
+    --with-pam \
+    --without-readline \
+    --with-system-tzdata=/usr/share/zoneinfo \
+    --with-uuid=e2fs \
+    --disable-nls \
+    --enable-thread-safety
+
+  make -C src all
+  make -C contrib all
+}
+
+package() {
+  cd postgresql-${pkgver}
+
+  # install
+  make -C src DESTDIR="${pkgdir}" install
+  make -C contrib DESTDIR="${pkgdir}" install
+
+  # install license
+  install -Dm 644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+  # clean up unneeded installed items
+  rm -rf "${pkgdir}/opt/pgsql-${_majorver}/include"
+}
+
+# vim: ts=2 sw=2 et:

Copied: postgresql-old-upgrade/repos/testing-x86_64/PKGBUILD (from rev 308938, postgresql-old-upgrade/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2017-11-06 00:27:53 UTC (rev 308939)
@@ -0,0 +1,54 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Dan McGee <dan at archlinux.org>
+
+pkgname=postgresql-old-upgrade
+pkgver=9.6.5
+_majorver=${pkgver%.*}
+pkgrel=1
+pkgdesc='PostgreSQL build for migrating between major versions with pg_upgrade'
+url='https://www.postgresql.org/'
+arch=('i686' 'x86_64')
+license=('custom:PostgreSQL')
+depends=("postgresql-libs>=${_majorver}" 'libxml2' 'openssl>=1.0.0' 'pam')
+makedepends=('krb5' 'python2' 'perl' 'tcl>=8.6.0')
+source=(https://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2)
+sha256sums=('06da12a7e3dddeb803962af8309fa06da9d6989f49e22865335f0a14bad0744c')
+sha512sums=('ad35c27ea55b18005ea61b49d6994718df86519b3f99addd0ecb17ece1f1c34764eb5194f8961c45cfa75703d810baf54433f8538cfd43a70bd908e1e5878df9')
+
+build() {
+  cd postgresql-${pkgver}
+
+  ./configure \
+    --prefix=/opt/pgsql-${_majorver} \
+    --with-gssapi \
+    --with-libxml \
+    --with-openssl \
+    --with-perl \
+    --with-python PYTHON=/usr/bin/python2 \
+    --with-tcl \
+    --with-pam \
+    --without-readline \
+    --with-system-tzdata=/usr/share/zoneinfo \
+    --with-uuid=e2fs \
+    --disable-nls \
+    --enable-thread-safety
+
+  make -C src all
+  make -C contrib all
+}
+
+package() {
+  cd postgresql-${pkgver}
+
+  # install
+  make -C src DESTDIR="${pkgdir}" install
+  make -C contrib DESTDIR="${pkgdir}" install
+
+  # install license
+  install -Dm 644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+  # clean up unneeded installed items
+  rm -rf "${pkgdir}/opt/pgsql-${_majorver}/include"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list