# HG changeset patch # User Hans-G?nter Theisgen # Date 1585756917 -3600 # Node ID fea693604883707ee08d1a991854dcb6cba860dd # Parent 17d35d580cb0b2fe9b28b9a63696e537d9c0b713 updated phppgadmin (5.1 -> 7.12.1) diff -r 17d35d580cb0 -r fea693604883 phppgadmin/receipt --- a/phppgadmin/receipt Wed Apr 01 16:48:48 2020 +0100 +++ b/phppgadmin/receipt Wed Apr 01 17:01:57 2020 +0100 @@ -1,51 +1,64 @@ # SliTaz package receipt. PACKAGE="phppgadmin" -VERSION="5.1" +VERSION="7.12.1" CATEGORY="misc" SHORT_DESC="Administration of postgresql over the Web." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" -SOURCE="phpPgAdmin" -TARBALL="$SOURCE-$VERSION.tar.bz2" -WEB_SITE="http://$PACKAGE.sourceforge.net/" -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" -CONFIG_FILES="/etc/phppgadmin/config.inc.php" -HOST_ARCH="any" +WEB_SITE="https://github.com/phppgadmin/phppgadmin/" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="${WEB_SITE}archive/REL_${VERSION//./-}.tar.gz" DEPENDS="php-pgsql" +CONFIG_FILES="/etc/phppgadmin/config.inc.php" + +HOST_ARCH="any" + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share/phppgadmin $fs/etc $fs/usr/share/applications - cp -a $src/. $fs/usr/share/phppgadmin - mv $fs/usr/share/phppgadmin/conf $fs/etc/phppgadmin - ln -s /etc/phppgadmin $fs/usr/share/phppgadmin/conf - mv -f $fs/etc/phppgadmin/config.inc.php-dist $fs/etc/phppgadmin/config.inc.php + mkdir -p $fs/usr/share/phppgadmin + mkdir -p $fs/etc + mkdir -p $fs/usr/share/applications + + cp -a $src/. $fs/usr/share/phppgadmin + mv $fs/usr/share/phppgadmin/conf $fs/etc/phppgadmin + ln -s /etc/phppgadmin $fs/usr/share/phppgadmin/conf + mv -f $fs/etc/phppgadmin/config.inc.php-dist \ + $fs/etc/phppgadmin/config.inc.php sed -i -e "s/conf\['extra_login_security'\] = true/conf['extra_login_security'] = false/" $fs/etc/phppgadmin/config.inc.php - cp stuff/phppgadmin.desktop $fs/usr/share/applications - chown -R www.www $fs/usr/share/phppgadmin $fs/etc/phppgadmin - chmod 700 $fs/etc/phppgadmin - chmod 600 $fs/etc/phppgadmin/* + cp stuff/phppgadmin.desktop $fs/usr/share/applications + chown -R www.www $fs/usr/share/phppgadmin + chown -R www.www $fs/etc/phppgadmin + chmod 700 $fs/etc/phppgadmin + chmod 600 $fs/etc/phppgadmin/* } post_install() { # Configure lighttpd server - if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then - if ! grep -q /usr/share/phppgadmin/ "$1/etc/lighttpd/lighttpd.conf"; then - sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i "$1/etc/lighttpd/lighttpd.conf" - if [ -z "$1" ]; then + if [ -f "$1/etc/lighttpd/lighttpd.conf" ] + then + if ! grep -q /usr/share/phppgadmin/ "$1/etc/lighttpd/lighttpd.conf" + then + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i "$1/etc/lighttpd/lighttpd.conf" + if [ -z "$1" ] + then # Start Web server. /etc/init.d/lighttpd stop /etc/init.d/lighttpd start fi fi fi + # Configure apache server - if [ -f "$1/etc/apache/httpd.conf" ]; then - if [ ! -f "$1/etc/apache/conf.d/phppgadmin" ]; then + if [ -f "$1/etc/apache/httpd.conf" ] + then + if [ ! -f "$1/etc/apache/conf.d/phppgadmin" ] + then cat > "$1/etc/apache/conf.d/phppgadmin" < Alias /phppgadmin /usr/share/phppgadmin @@ -58,7 +71,8 @@ Allow from all EOT - if [ -z "$1" ]; then + if [ -z "$1" ] + then # Start Web server. /etc/init.d/apache stop /etc/init.d/apache start