wok-current rev 23430
updated phppgadmin (5.1 -> 7.12.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 01 17:01:57 2020 +0100 (2020-04-01) |
parents | 17d35d580cb0 |
children | 4599dfc8c5d5 |
files | phppgadmin/receipt |
line diff
1.1 --- a/phppgadmin/receipt Wed Apr 01 16:48:48 2020 +0100 1.2 +++ b/phppgadmin/receipt Wed Apr 01 17:01:57 2020 +0100 1.3 @@ -1,51 +1,64 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="phppgadmin" 1.7 -VERSION="5.1" 1.8 +VERSION="7.12.1" 1.9 CATEGORY="misc" 1.10 SHORT_DESC="Administration of postgresql over the Web." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 LICENSE="GPL2" 1.13 -SOURCE="phpPgAdmin" 1.14 -TARBALL="$SOURCE-$VERSION.tar.bz2" 1.15 -WEB_SITE="http://$PACKAGE.sourceforge.net/" 1.16 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.17 -CONFIG_FILES="/etc/phppgadmin/config.inc.php" 1.18 -HOST_ARCH="any" 1.19 +WEB_SITE="https://github.com/phppgadmin/phppgadmin/" 1.20 + 1.21 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.22 +WGET_URL="${WEB_SITE}archive/REL_${VERSION//./-}.tar.gz" 1.23 1.24 DEPENDS="php-pgsql" 1.25 1.26 +CONFIG_FILES="/etc/phppgadmin/config.inc.php" 1.27 + 1.28 +HOST_ARCH="any" 1.29 + 1.30 # Rules to gen a SliTaz package suitable for Tazpkg. 1.31 genpkg_rules() 1.32 { 1.33 - mkdir -p $fs/usr/share/phppgadmin $fs/etc $fs/usr/share/applications 1.34 - cp -a $src/. $fs/usr/share/phppgadmin 1.35 - mv $fs/usr/share/phppgadmin/conf $fs/etc/phppgadmin 1.36 - ln -s /etc/phppgadmin $fs/usr/share/phppgadmin/conf 1.37 - mv -f $fs/etc/phppgadmin/config.inc.php-dist $fs/etc/phppgadmin/config.inc.php 1.38 + mkdir -p $fs/usr/share/phppgadmin 1.39 + mkdir -p $fs/etc 1.40 + mkdir -p $fs/usr/share/applications 1.41 + 1.42 + cp -a $src/. $fs/usr/share/phppgadmin 1.43 + mv $fs/usr/share/phppgadmin/conf $fs/etc/phppgadmin 1.44 + ln -s /etc/phppgadmin $fs/usr/share/phppgadmin/conf 1.45 + mv -f $fs/etc/phppgadmin/config.inc.php-dist \ 1.46 + $fs/etc/phppgadmin/config.inc.php 1.47 sed -i -e "s/conf\['extra_login_security'\] = true/conf['extra_login_security'] = false/" $fs/etc/phppgadmin/config.inc.php 1.48 - cp stuff/phppgadmin.desktop $fs/usr/share/applications 1.49 - chown -R www.www $fs/usr/share/phppgadmin $fs/etc/phppgadmin 1.50 - chmod 700 $fs/etc/phppgadmin 1.51 - chmod 600 $fs/etc/phppgadmin/* 1.52 + cp stuff/phppgadmin.desktop $fs/usr/share/applications 1.53 + chown -R www.www $fs/usr/share/phppgadmin 1.54 + chown -R www.www $fs/etc/phppgadmin 1.55 + chmod 700 $fs/etc/phppgadmin 1.56 + chmod 600 $fs/etc/phppgadmin/* 1.57 } 1.58 1.59 post_install() 1.60 { 1.61 # Configure lighttpd server 1.62 - if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then 1.63 - if ! grep -q /usr/share/phppgadmin/ "$1/etc/lighttpd/lighttpd.conf"; then 1.64 - sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i "$1/etc/lighttpd/lighttpd.conf" 1.65 - if [ -z "$1" ]; then 1.66 + if [ -f "$1/etc/lighttpd/lighttpd.conf" ] 1.67 + then 1.68 + if ! grep -q /usr/share/phppgadmin/ "$1/etc/lighttpd/lighttpd.conf" 1.69 + then 1.70 + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i "$1/etc/lighttpd/lighttpd.conf" 1.71 + if [ -z "$1" ] 1.72 + then 1.73 # Start Web server. 1.74 /etc/init.d/lighttpd stop 1.75 /etc/init.d/lighttpd start 1.76 fi 1.77 fi 1.78 fi 1.79 + 1.80 # Configure apache server 1.81 - if [ -f "$1/etc/apache/httpd.conf" ]; then 1.82 - if [ ! -f "$1/etc/apache/conf.d/phppgadmin" ]; then 1.83 + if [ -f "$1/etc/apache/httpd.conf" ] 1.84 + then 1.85 + if [ ! -f "$1/etc/apache/conf.d/phppgadmin" ] 1.86 + then 1.87 cat > "$1/etc/apache/conf.d/phppgadmin" <<EOT 1.88 <IfModule mod_alias.c> 1.89 Alias /phppgadmin /usr/share/phppgadmin 1.90 @@ -58,7 +71,8 @@ 1.91 Allow from all 1.92 </DirectoryMatch> 1.93 EOT 1.94 - if [ -z "$1" ]; then 1.95 + if [ -z "$1" ] 1.96 + then 1.97 # Start Web server. 1.98 /etc/init.d/apache stop 1.99 /etc/init.d/apache start