wok-next view phpsysinfo/receipt @ rev 21699
updated gpgme (1.12.0 -> 1.13.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 30 17:33:51 2020 +0100 (2020-06-30) |
parents | 342b30daff76 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="phpsysinfo"
4 VERSION="3.0.18"
5 CATEGORY="misc"
6 SHORT_DESC="Displays information about your system nicely"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://phpsysinfo.github.io/phpsysinfo/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 compile_rules() {
15 # SliTazisation from http://enira.net/?p=61
16 sed -i "s/'-q'/'-a | grep -i pts -c'/" includes/os/class.Linux.inc.php
17 grep -i slitaz data/distros.ini || cat >> data/distros.ini <<EOT
18 [Slitaz]
19 Name = "Slitaz"
20 Image = "slitaz.png"
21 Files = "/etc/slitaz-release"
23 EOT
25 mkdir -p \
26 $install/usr/share/phpsysinfo \
27 $install/etc
28 cp -a $src/* $install/usr/share/phpsysinfo
29 chown -R www.www $install/usr/share/phpsysinfo
30 mv $install/usr/share/phpsysinfo/config.php.new $install/etc/phpsysinfo.conf
31 ln -s /etc/phpsysinfo.conf $install/usr/share/phpsysinfo/config.php
32 }
34 genpkg_rules() {
35 copy @std
36 chmod 600 $fs/etc/phpsysinfo.conf
37 DEPENDS="php pcre-dev" # ??
38 CONFIG_FILES="/etc/phpsysinfo.conf"
39 }
41 post_install() {
42 # Configure lighttpd server
43 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
44 if ! grep -q /usr/share/phpsysinfo/ "$1/etc/lighttpd/lighttpd.conf"; then
45 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpsysinfo/" => "/usr/share/phpsysinfo/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
46 if [ -z "$1" ]; then
47 # Start Web server.
48 /etc/init.d/lighttpd stop
49 /etc/init.d/lighttpd start
50 fi
51 fi
52 fi
53 # Configure apache server
54 if [ -f "$1/etc/apache/httpd.conf" ]; then
55 if [ ! -f "$1/etc/apache/conf.d/phpsysinfo" ]; then
56 cat > "$1/etc/apache/conf.d/phpsysinfo" <<EOT
57 <IfModule mod_alias.c>
58 Alias /phpsysinfo /usr/share/phpsysinfo
59 </IfModule>
60 <DirectoryMatch /usr/share/phpsysinfo/>
61 DirectoryIndex index.php
62 Options +FollowSymLinks
63 AllowOverride None
64 Order allow,deny
65 Allow from all
66 </DirectoryMatch>
67 EOT
68 if [ -z "$1" ]; then
69 # Start Web server.
70 /etc/init.d/apache stop
71 /etc/init.d/apache start
72 fi
73 fi
74 fi
75 }