From 5cb3725a533a756718dafdd3a319b0666c06d401 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 10 Nov 2010 08:28:02 +0700 Subject: [PATCH] add web/phpPgAdmin --- web/phpPgAdmin/phpPgAdmin.SlackBuild | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 web/phpPgAdmin/phpPgAdmin.SlackBuild diff --git a/web/phpPgAdmin/phpPgAdmin.SlackBuild b/web/phpPgAdmin/phpPgAdmin.SlackBuild new file mode 100755 index 00000000..93ebf5a0 --- /dev/null +++ b/web/phpPgAdmin/phpPgAdmin.SlackBuild @@ -0,0 +1,47 @@ +#!/bin/sh + +CWD=$(pwd) + +PRGNAM=$(basename $CWD) +VERSION=5.0-beta2 +BUILD=1 +PACKAGER=cyco +ARCH=$(uname -m) + +TMP=/tmp/$PACKAGER +PKG=$TMP/pkg-$PRGNAM +OUTPUT=/tmp + +PREFIX=/usr + +# cleaning +rm -fr $PKG + +mkdir -p $PKG/srv/www/htdocs/ + +[ ! -e $CWD/${PRGNAM}-$VERSION.tar.bz2 ] && wget -c http://downloads.sourceforge.net/phppgadmin/${PRGNAM}-$VERSION.tar.bz2 -O $CWD/${PRGNAM}-$VERSION.tar.bz2 +( cd $PKG/srv/www/htdocs/ + tar xf $CWD/${PRGNAM}-$VERSION.tar.bz2 + mv ${PRGNAM}-$VERSION $PRGNAM +) + +( cd $PKG + mkdir -p install + cat < install/slack-desc +$PRGNAM: $PRGNAM (web-based administration tool for PostgreSQL) +$PRGNAM: +$PRGNAM: phpPgAdmin is a web-based administration tool for PostgreSQL. +$PRGNAM: It is perfect for PostgreSQL DBAs, newbies and hosting services. +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: +$PRGNAM: http://phppgadmin.sourceforge.net +$PRGNAM: +EOF + + chown -R root:root * + + makepkg -l y -c n $OUTPUT/$PRGNAM-$(echo $VERSION | tr - _)-$ARCH-$BUILD$PACKAGER.txz +)