phppgadmin: rebuilt against new postgresql

This commit is contained in:
Neofytos Kolokotronis 2015-12-06 19:22:13 +01:00
parent 4256fdb9b7
commit a40bfa3ec7
3 changed files with 9 additions and 50 deletions

View File

@ -1,15 +0,0 @@
2010-12-14 Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
* 5.0.1-1 :
Upgraded.
2010-11-30 Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
* 5.0-1 :
Upgraded.
2010-11-09 Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
* 4.2.3-1 :
Imported from Arch Linux:
http://repos.archlinux.org/wsvn/community/phppgadmin/trunk/?rev=15798

View File

@ -1,45 +1,23 @@
#
# 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>
#contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/phppgadmin
pkgname=phppgadmin
_pkgname=phpPgAdmin
pkgver=5.1
_pkgver=$pkgver
pkgrel=1
pkgdesc="A web-based administration tool for PostgreSQL. It is perfect for PostgreSQL DBAs, newbies and hosting services"
pkgrel=2
pkgdesc="A web-based administration tool for PostgreSQL"
arch=('any')
url="http://sourceforge.net/projects/phppgadmin"
license=('GPL')
backup=('etc/webapps/phppgadmin/config.inc.php'
'etc/webapps/phppgadmin/.htaccess')
categories=('network')
install=phppgadmin.install
source=("http://downloads.sourceforge.net/project/$pkgname/$_pkgname [stable]/$_pkgname-$_pkgver/$_pkgname-$pkgver.tar.gz")
depends=('php' 'php-pgsql')
backup=('etc/webapps/phppgadmin/config.inc.php')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/phpPgAdmin-$pkgver.tar.gz)
md5sums=('554c94f5b38a1c6e8327ec3aa4cc6538')
package() {
depends=('php' 'postgresql' 'php-pgsql')
_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
rm -f ${_instdir}/conf/config.inc.php
ln -s /etc/webapps/phppgadmin/config.inc.php ${_instdir}/conf/config.inc.php
}

View File

@ -1,4 +0,0 @@
post_upgrade() {
echo "Don't forget to add ':/usr/share/webapps/:/etc/webapps/' to php.ini/open_basedir,"
echo "adjust webserver configuration and enable pgsql php extension"
}