wok-6.x view phpsysinfo/receipt @ rev 24718

updated libarchive and libarchive-dev (3.4.2 -> 3.6.0)
author Hans-G?nter Theisgen
date Tue Mar 15 07:41:02 2022 +0100 (2022-03-15)
parents a5ee74db1fee
children 7d834c8a352e
line source
1 # SliTaz package receipt.
3 PACKAGE="phpsysinfo"
4 VERSION="3.3.2"
5 CATEGORY="misc"
6 SHORT_DESC="Displays information about your system nicely."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://phpsysinfo.github.io/phpsysinfo/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/rk4an/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS="php pcre-dev"
15 BUILD_DEPENDS=""
17 CONFIG_FILES="/etc/phpsysinfo.conf"
19 HOST_ARCH="any"
21 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # SliTazisation from http://enira.net/?p=61
31 sed -i "s/'-q'/'-a | grep -i pts -c'/" \
32 includes/os/class.Linux.inc.php
33 grep -i slitaz data/distros.ini || cat >> data/distros.ini <<EOT
34 [Slitaz]
35 Name = "Slitaz"
36 Image = "slitaz.png"
37 Files = "/etc/slitaz-release"
39 EOT
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share/phpsysinfo
46 mkdir -p $fs/etc
48 cp -a $src/* $fs/usr/share/phpsysinfo
49 chown -R www.www $fs/usr/share/phpsysinfo
50 mv $fs/usr/share/phpsysinfo/phpsysinfo.ini.new \
51 $fs/etc/phpsysinfo.conf
52 chmod 600 $fs/etc/phpsysinfo.conf
53 ln -s /etc/phpsysinfo.conf $fs/usr/share/phpsysinfo/config.php
54 }
56 post_install()
57 {
58 # Configure lighttpd server
59 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
60 then
61 if ! grep -q /usr/share/phpsysinfo/ "$1/etc/lighttpd/lighttpd.conf"
62 then
63 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpsysinfo/" => "/usr/share/phpsysinfo/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
64 if [ -z "$1" ]
65 then
66 # Start Web server.
67 /etc/init.d/lighttpd stop
68 /etc/init.d/lighttpd start
69 fi
70 fi
71 fi
73 # Configure apache server
74 if [ -f "$1/etc/apache/httpd.conf" ]
75 then
76 if [ ! -f "$1/etc/apache/conf.d/phpsysinfo" ]
77 then
78 cat > "$1/etc/apache/conf.d/phpsysinfo" <<EOT
79 <IfModule mod_alias.c>
80 Alias /phpsysinfo /usr/share/phpsysinfo
81 </IfModule>
82 <DirectoryMatch /usr/share/phpsysinfo/>
83 DirectoryIndex index.php
84 Options +FollowSymLinks
85 AllowOverride None
86 Order allow,deny
87 Allow from all
88 </DirectoryMatch>
89 EOT
90 if [ -z "$1" ]
91 then
92 # Start Web server.
93 /etc/init.d/apache stop
94 /etc/init.d/apache start
95 fi
96 fi
97 fi
98 }