# vim: set syn=sh et ai sw=2 st=2 ts=2 tw=0: #Packager: JRD pkgname=postgresql pkgver=9.1.0 pkgrel=1cp #arch=i486 source=(http://ftp4.fr.postgresql.org/pub/mirrors/${pkgname}/source/v${pkgver}/${pkgname}-${pkgver}.tar.bz2 postgresd.conf install-script.sh rc.postgresd) sourcetemplate=http://enialis.net/~jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://www.postgresql.org/ options=("noautodotnew") dotnew=("etc/postgresd.conf") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (open source database system)" "It has more than 15 years of active development and a proven" "architecture that has earned it a strong reputation for reliability," "data integrity, and correctness. It is fully ACID compliant, has full" "support for foreign keys, joins, views, triggers, and stored" "procedures (in multiple languages). It includes most SQL:2008 data" "types and supports storage of BLOB, including pictures, sounds, or" "video." "There is no PL/Perl because Perl package does not provide libperl.so" "See /usr/doc/$pkgname-$pkgver/install-script.sh" ) build() { cd $startdir/src/$pkgname-$pkgver || return 1 ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux --with-tcl --with-python --with-libxml --with-libxslt --with-openssl --with-ldap --enable-thread-safety || return 1 make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg || return 1 mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver $startdir/pkg/etc/rc.d cp $startdir/src/install-script.sh $startdir/pkg/usr/doc/$pkgname-$pkgver/ cp $startdir/src/postgresd.conf $startdir/pkg/etc/ cp $startdir/src/rc.postgresd $startdir/pkg/etc/rc.d/ chmod +x $startdir/pkg/usr/doc/$pkgname-$pkgver/install-script.sh $startdir/pkg/etc/rc.d/rc.postgresd }