wok-6.x view phppgadmin/receipt @ rev 24616

updated gpgme and gpgme-dev (1.13.1 -> 1.17.1)
author Hans-G?nter Theisgen
date Mon Mar 07 08:02:36 2022 +0100 (2022-03-07)
parents fea693604883
children 020433b7aef7
line source
1 # SliTaz package receipt.
3 PACKAGE="phppgadmin"
4 VERSION="7.12.1"
5 CATEGORY="misc"
6 SHORT_DESC="Administration of postgresql over the Web."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/phppgadmin/phppgadmin/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}archive/REL_${VERSION//./-}.tar.gz"
14 DEPENDS="php-pgsql"
16 CONFIG_FILES="/etc/phppgadmin/config.inc.php"
18 HOST_ARCH="any"
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/REL_\(.*\).tar.*|\1|;s|-|.|g;q'
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share/phppgadmin
30 mkdir -p $fs/etc
31 mkdir -p $fs/usr/share/applications
33 cp -a $src/. $fs/usr/share/phppgadmin
34 mv $fs/usr/share/phppgadmin/conf $fs/etc/phppgadmin
35 ln -s /etc/phppgadmin $fs/usr/share/phppgadmin/conf
36 mv -f $fs/etc/phppgadmin/config.inc.php-dist \
37 $fs/etc/phppgadmin/config.inc.php
38 sed -i -e "s/conf\['extra_login_security'\] = true/conf['extra_login_security'] = false/" $fs/etc/phppgadmin/config.inc.php
39 cp stuff/phppgadmin.desktop $fs/usr/share/applications
40 chown -R www.www $fs/usr/share/phppgadmin
41 chown -R www.www $fs/etc/phppgadmin
42 chmod 700 $fs/etc/phppgadmin
43 chmod 600 $fs/etc/phppgadmin/*
44 }
46 post_install()
47 {
48 # Configure lighttpd server
49 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
50 then
51 if ! grep -q /usr/share/phppgadmin/ "$1/etc/lighttpd/lighttpd.conf"
52 then
53 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
54 if [ -z "$1" ]
55 then
56 # Start Web server.
57 /etc/init.d/lighttpd stop
58 /etc/init.d/lighttpd start
59 fi
60 fi
61 fi
63 # Configure apache server
64 if [ -f "$1/etc/apache/httpd.conf" ]
65 then
66 if [ ! -f "$1/etc/apache/conf.d/phppgadmin" ]
67 then
68 cat > "$1/etc/apache/conf.d/phppgadmin" <<EOT
69 <IfModule mod_alias.c>
70 Alias /phppgadmin /usr/share/phppgadmin
71 </IfModule>
72 <DirectoryMatch /usr/share/phppgadmin/>
73 DirectoryIndex index.php
74 Options +FollowSymLinks
75 AllowOverride None
76 Order allow,deny
77 Allow from all
78 </DirectoryMatch>
79 EOT
80 if [ -z "$1" ]
81 then
82 # Start Web server.
83 /etc/init.d/apache stop
84 /etc/init.d/apache start
85 fi
86 fi
87 fi
88 cat << EOT
89 ------
90 User 'postgres' can login on localhost without passwd after:
91 # /etc/init.d/postgresql start
92 ------
93 EOT
94 }