summaryrefslogtreecommitdiffstats
path: root/postgresql/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-04-03 20:44:08 +0200
committertnut <tnut at nutyx dot com>2012-04-03 20:44:08 +0200
commit1a891b97f3fd49ef9113db67f7d6be17671a4db9 (patch)
tree4d5167ceafd38313a14546b44cafef2795236640 /postgresql/Pkgfile
parent13cc8fd66675df494da72db125799738d7383fc3 (diff)
downloadnutyx-pakxe-1a891b97f3fd49ef9113db67f7d6be17671a4db9.tar.gz
nutyx-pakxe-1a891b97f3fd49ef9113db67f7d6be17671a4db9.tar.bz2
nutyx-pakxe-1a891b97f3fd49ef9113db67f7d6be17671a4db9.tar.xz
nutyx-pakxe-1a891b97f3fd49ef9113db67f7d6be17671a4db9.zip
postgresql est un service
Diffstat (limited to 'postgresql/Pkgfile')
-rw-r--r--postgresql/Pkgfile47
1 files changed, 47 insertions, 0 deletions
diff --git a/postgresql/Pkgfile b/postgresql/Pkgfile
new file mode 100644
index 000000000..c957032a6
--- /dev/null
+++ b/postgresql/Pkgfile
@@ -0,0 +1,47 @@
+# Description: Système de base de données relationnelles très complète basée sur les objects
+# URL: http://www.postgresql.org/
+# Maintainer: NuTyX core team
+# Packager: lesibel at free dot fr
+# Depends on: libxml2, linux-pam
+# Run on: libxml2,linux-pam
+
+name=postgresql
+version=9.0.3
+release=2
+source=(ftp://ftp.postgresql.org/pub/source/v$version/postgresql-$version.tar.bz2 \
+ http://nutyx.meticul.eu/files/patchs/$name/{$name-9.0.3-nutyx-1.patch,$name-9.0.3-build-1.patch,postgresql.pam})
+
+build() {
+ source /etc/blfs-bootscripts
+# wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
+ wget http://nutyx.meticul.eu/files/patchs/aaabasicfs/blfs-bootscripts-$scriptsversion.tar.bz2
+ tar xvf $scripts-$scriptsversion.tar.bz2
+
+ cd $name-$version
+
+ # patch to remove regress/test make target (won't build with it present)
+ patch -Np1 -i ../$name-9.0.3-build-1.patch
+
+ # configure
+ ./configure --prefix=/usr --mandir=/usr/share/man \
+ --with-docdir=/usr/share/doc --with-openssl \
+ --enable-thread-safety \
+ --with-pam --with-libxml
+
+ # build
+ make
+
+ # install
+ make DESTDIR=$PKG install
+
+ # install license
+ install -D -m644 COPYRIGHT $PKG/usr/share/licenses/$name/LICENSE
+
+ cd ../$scripts-$scriptsversion
+ patch -Np1 -i ../$name-9.0.3-nutyx-1.patch
+ make DESTDIR=$PKG install-postgresql
+
+ # install pam file
+ install -D -m644 $SRC/postgresql.pam $PKG/etc/pam.d/postgresql
+}
+