summaryrefslogtreecommitdiffstats
path: root/extra/postgresql-libs/Pkgfile
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2009-11-09 15:55:39 +0100
committertnut <thierryn1 at hispeed dot ch>2009-11-09 15:55:39 +0100
commit8e57ed5322f707f7ad77f5af2a23ecca92d0258b (patch)
tree77a75aa4ebc7a86a30dc9a36719b9b63e700cc78 /extra/postgresql-libs/Pkgfile
parentfb27c997a6e2b17eca17ac80c93e93d04a07a65d (diff)
downloadnutyx-pakxe-8e57ed5322f707f7ad77f5af2a23ecca92d0258b.tar.gz
nutyx-pakxe-8e57ed5322f707f7ad77f5af2a23ecca92d0258b.tar.bz2
nutyx-pakxe-8e57ed5322f707f7ad77f5af2a23ecca92d0258b.tar.xz
nutyx-pakxe-8e57ed5322f707f7ad77f5af2a23ecca92d0258b.zip
ajout de postgresql-libs#8.4.1-1
Diffstat (limited to 'extra/postgresql-libs/Pkgfile')
-rw-r--r--extra/postgresql-libs/Pkgfile50
1 files changed, 50 insertions, 0 deletions
diff --git a/extra/postgresql-libs/Pkgfile b/extra/postgresql-libs/Pkgfile
new file mode 100644
index 000000000..98ab2f2a8
--- /dev/null
+++ b/extra/postgresql-libs/Pkgfile
@@ -0,0 +1,50 @@
+# Description: Librairires pour postgresql
+# URL: http://www.postgresql.org/
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: linux-pam
+
+name=postgresql-libs
+version=8.4.1
+release=1
+source=(ftp://ftp.postgresql.org/pub/source/v$version/postgresql-$version.tar.bz2)
+
+build() {
+ cd postgresql-$version
+
+ # configure
+ ./configure --prefix=/usr --with-openssl --datadir=/srv/pgsql/data \
+ --with-pam
+
+ # make and install
+ for dir in src/interfaces src/bin/pg_config; do
+ pushd ${dir}
+ make
+ make DESTDIR=$PKG install
+ popd
+ done
+
+ cd src/include
+ make
+
+ set -e
+ mkdir -p $PKG/usr/include/postgresql/{internal,internal/libpq}
+ mkdir -p $PKG/usr/include/libpq
+
+ # These headers are needed by the public headers of the interfaces.
+ install -m644 pg_config.h $PKG/usr/include/
+ install -m644 pg_config_os.h $PKG/usr/include/
+ install -m644 postgres_ext.h $PKG/usr/include/
+ install -m644 libpq/libpq-fs.h $PKG/usr/include/libpq/
+ install -m644 pg_config_manual.h $PKG/usr/include/
+
+ # These headers are needed by the not-so-public headers of the interfaces.
+ install -m644 c.h $PKG/usr/include/postgresql/internal/
+ install -m644 port.h $PKG/usr/include/postgresql/internal/
+ install -m644 postgres_fe.h $PKG/usr/include/postgresql/internal/
+ install -m644 libpq/pqcomm.h $PKG/usr/include/postgresql/internal/libpq/
+
+ install -D -m644 ../../COPYRIGHT $PKG/usr/share/licenses/$pkgname/LICENSE
+
+ set +e
+}