summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra-testing')
-rw-r--r--abs/extra-testing/postgresql-libs/PKGBUILD58
-rw-r--r--abs/extra-testing/unixodbc/PKGBUILD24
2 files changed, 82 insertions, 0 deletions
diff --git a/abs/extra-testing/postgresql-libs/PKGBUILD b/abs/extra-testing/postgresql-libs/PKGBUILD
new file mode 100644
index 0000000..50ba785
--- /dev/null
+++ b/abs/extra-testing/postgresql-libs/PKGBUILD
@@ -0,0 +1,58 @@
+# $Id: PKGBUILD 18408 2008-11-04 22:14:34Z douglas $
+# Maintainer: Paul Mattal <paul@archlinux.org>
+
+pkgname=postgresql-libs
+pkgver=8.3.5
+pkgrel=1
+pkgdesc="Libraries for use with PostgreSQL"
+arch=(i686 x86_64)
+license=('BSD')
+url="http://www.postgresql.org/"
+depends=('openssl>=0.9.8b' 'zlib' 'readline')
+options=('!makeflags')
+source=(ftp://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar.bz2)
+
+build() {
+ cd $startdir/src/postgresql-$pkgver || return 1
+
+ # configure
+ ./configure --prefix=/usr --with-openssl --datadir=/usr/share/postgresql \
+ --with-pam \
+ || return 1
+
+ # make and install
+ for dir in src/interfaces src/bin/pg_config; do
+ pushd ${dir} || return 1
+ make || return 1
+ make DESTDIR=${startdir}/pkg install || return 1
+ popd
+ done
+
+ cd src/include || return 1
+ make || return 1
+
+ set -e
+ mkdir -p $startdir/pkg/usr/include/postgresql/{internal,internal/libpq} \
+ || return 1
+ mkdir -p $startdir/pkg/usr/include/libpq || return 1
+
+ # These headers are needed by the public headers of the interfaces.
+ install -m644 pg_config.h $startdir/pkg/usr/include/ || return 1
+ install -m644 pg_config_os.h $startdir/pkg/usr/include/ || return 1
+ install -m644 postgres_ext.h $startdir/pkg/usr/include/ || return 1
+ install -m644 libpq/libpq-fs.h $startdir/pkg/usr/include/libpq/ || return 1
+ install -m644 pg_config_manual.h $startdir/pkg/usr/include/ || return 1
+
+ # These headers are needed by the not-so-public headers of the interfaces.
+ install -m644 c.h $startdir/pkg/usr/include/postgresql/internal/ || return 1
+ install -m644 port.h $startdir/pkg/usr/include/postgresql/internal/ \
+ || return 1
+ install -m644 postgres_fe.h $startdir/pkg/usr/include/postgresql/internal/ \
+ || return 1
+ install -m644 libpq/pqcomm.h $startdir/pkg/usr/include/postgresql/internal/libpq/ || return 1
+
+ install -D -m644 ../../COPYRIGHT $startdir/pkg/usr/share/licenses/$pkgname/LICENSE || return 1
+
+ set +e
+}
+md5sums=('3bc028774d7a79e926be0c6a9c7ca209')
diff --git a/abs/extra-testing/unixodbc/PKGBUILD b/abs/extra-testing/unixodbc/PKGBUILD
new file mode 100644
index 0000000..b8c2690
--- /dev/null
+++ b/abs/extra-testing/unixodbc/PKGBUILD
@@ -0,0 +1,24 @@
+# $Id: PKGBUILD 9389 2008-08-17 06:44:49Z allan $
+# Maintainer: Judd Vinet <jvinet@zeroflux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=unixodbc
+pkgver=2.2.12
+pkgrel=2
+pkgdesc="ODBC is an open specification for providing application developers with a predictable API with which to access Data Sources"
+arch=(i686 x86_64)
+license=('GPL2')
+url="http://www.unixodbc.org/"
+backup=('etc/odbc.ini' 'etc/odbcinst.ini')
+depends=('readline')
+source=(http://www.unixodbc.org/unixODBC-$pkgver.tar.gz)
+md5sums=('9a116aad4059c31d231b626ffdf1869a')
+
+build() {
+ cd $startdir/src/unixODBC-$pkgver
+ sed -i 's/YY_FLUSH_BUFFER/yy_flush_buffer(YY_CURRENT_BUFFER)/' sqp/lex.l
+ ./configure --prefix=/usr --sysconfdir=/etc --enable-gui=no
+ make || return 1
+ make DESTDIR=$startdir/pkg install
+ find $startdir/pkg -name '*.la' -exec rm {} \;
+}