wok-current view phppgadmin/receipt @ rev 25351

updated tesseract and tesseract-dev (3.02.02 -> 5.2.0)
author Hans-G?nter Theisgen
date Tue Jul 26 13:57:27 2022 +0100 (2022-07-26)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="phppgadmin"
4 VERSION="7.13.0"
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/" \
39 $fs/etc/phppgadmin/config.inc.php
40 cp stuff/phppgadmin.desktop $fs/usr/share/applications
41 chown -R www.www $fs/usr/share/phppgadmin
42 chown -R www.www $fs/etc/phppgadmin
43 chmod 700 $fs/etc/phppgadmin
44 chmod 600 $fs/etc/phppgadmin/*
45 }
47 post_install()
48 {
49 # Configure lighttpd server
50 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
51 then
52 if ! grep -q /usr/share/phppgadmin/ "$1/etc/lighttpd/lighttpd.conf"
53 then
54 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' \
55 -i "$1/etc/lighttpd/lighttpd.conf"
56 if [ -z "$1" ]
57 then
58 # Start Web server.
59 /etc/init.d/lighttpd stop
60 /etc/init.d/lighttpd start
61 fi
62 fi
63 fi
65 # Configure apache server
66 if [ -f "$1/etc/apache/httpd.conf" ]
67 then
68 if [ ! -f "$1/etc/apache/conf.d/phppgadmin" ]
69 then
70 cat > "$1/etc/apache/conf.d/phppgadmin" <<EOT
71 <IfModule mod_alias.c>
72 Alias /phppgadmin /usr/share/phppgadmin
73 </IfModule>
74 <DirectoryMatch /usr/share/phppgadmin/>
75 DirectoryIndex index.php
76 Options +FollowSymLinks
77 AllowOverride None
78 Order allow,deny
79 Allow from all
80 </DirectoryMatch>
81 EOT
82 if [ -z "$1" ]
83 then
84 # Start Web server.
85 /etc/init.d/apache stop
86 /etc/init.d/apache start
87 fi
88 fi
89 fi
90 cat << EOT
91 ------
92 User 'postgres' can login on localhost without passwd after:
93 # /etc/init.d/postgresql start
94 ------
95 EOT
96 }