[arch-commits] Commit in (4 files)

Dan McGee dan at archlinux.org
Tue Jun 21 18:46:14 UTC 2011


    Date: Tuesday, June 21, 2011 @ 14:46:14
  Author: dan
Revision: 128085

new package for use with pg_upgrade

Added:
  postgresql-old-upgrade/
  postgresql-old-upgrade/trunk/
  postgresql-old-upgrade/trunk/PKGBUILD
  postgresql-old-upgrade/trunk/build.patch

-------------+
 PKGBUILD    |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 build.patch |   11 +++++++++++
 2 files changed, 58 insertions(+)

Added: postgresql-old-upgrade/trunk/PKGBUILD
===================================================================
--- postgresql-old-upgrade/trunk/PKGBUILD	                        (rev 0)
+++ postgresql-old-upgrade/trunk/PKGBUILD	2011-06-21 18:46:14 UTC (rev 128085)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Dan McGee <dan at archlinux.org>
+
+pkgname=postgresql-old-migrate
+pkgver=8.4.8
+_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.patch)
+
+build() {
+  cd "${srcdir}/postgresql-${pkgver}"
+
+  # patch to remove regress/test make target (won't build with it present)
+  patch -Np1 -i ../build.patch
+
+  ./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=('4603e8ea30cee97189b62b39022f2043'
+         '4d74f4227dc5e12bf95b3490758d86c9')
+sha256sums=('3e90ef2a86a9f4831e21ff4a574fbfb8e1b8c097af637c93ec43c64c684a0938'
+            '1f020ae1d921a6f47e4889c2026c5ef69879d204e14aeac9330f89b7e6088348')


Property changes on: postgresql-old-upgrade/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
   + Id

Added: postgresql-old-upgrade/trunk/build.patch
===================================================================
--- postgresql-old-upgrade/trunk/build.patch	                        (rev 0)
+++ postgresql-old-upgrade/trunk/build.patch	2011-06-21 18:46:14 UTC (rev 128085)
@@ -0,0 +1,11 @@
+diff -Naur postgresql-8.2.3-orig/src/Makefile postgresql-8.2.3/src/Makefile
+--- postgresql-8.2.3-orig/src/Makefile	2006-06-22 16:50:35.000000000 -0700
++++ postgresql-8.2.3/src/Makefile	2007-03-05 10:46:24.000000000 -0800
+@@ -23,7 +23,6 @@
+ 	$(MAKE) -C bin $@
+ 	$(MAKE) -C pl $@
+ 	$(MAKE) -C makefiles $@
+-	$(MAKE) -C test/regress $@
+ 
+ install: install-local
+ 




More information about the arch-commits mailing list