desktop/phppgadmin/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) d755baa5a4 Upgraded phpPgAdmin to 5.0.3.
2011-10-19 18:31:13 +00:00

44 lines
1.6 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: wizzomafizzo <wizzomafizzo@gmail.com>
# Contributor: Benjamin Andresen <benny@klapmuetz.org>
pkgname=phppgadmin
_pkgname=phpPgAdmin
pkgver=5.0.3
_pkgver=5.0
pkgrel=1
pkgdesc="A web-based administration tool for PostgreSQL. It is perfect for PostgreSQL DBAs, newbies and hosting services"
arch=('any')
url="http://sourceforge.net/projects/phppgadmin"
license=('GPL')
depends=('php' 'postgresql' 'php-pgsql')
backup=('etc/webapps/phppgadmin/config.inc.php'
'etc/webapps/phppgadmin/.htaccess')
install=phppgadmin.install
source=("http://downloads.sourceforge.net/project/$pkgname/$_pkgname [stable]/$_pkgname-$_pkgver/$_pkgname-$pkgver.tar.gz")
md5sums=('885e18d4fc02805e479034c1e6c23c41')
build() {
_instdir=$pkgdir/usr/share/webapps/phppgadmin
mkdir -p ${_instdir} $pkgdir/etc/webapps/phppgadmin
cd ${_instdir}
cp -ra $srcdir/phpPgAdmin-$pkgver/* .
cp ./conf/config.inc.php-dist $pkgdir/etc/webapps/phppgadmin/config.inc.php
echo "deny from all" >$pkgdir/etc/webapps/phppgadmin/.htaccess
ln -s /etc/webapps/phppgadmin/.htaccess ${_instdir}/.htaccess
ln -s /etc/webapps/phppgadmin/config.inc.php ${_instdir}/config.inc.php
cat >$pkgdir/etc/webapps/phppgadmin/apache.example.conf <<EOF
Alias /phppgadmin "/usr/share/webapps/phppgadmin"
<Directory "/usr/share/webapps/phppgadmin">
AllowOverride All
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
EOF
}