wok-next view phproxy/receipt @ rev 21499

updated astromenace (1.4.0 -> 1.4.1)
author Hans-G?nter Theisgen
date Fri Jun 19 06:40:01 2020 +0100 (2020-06-19)
parents d5aab818505e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="phproxy"
4 SOURCE="PHProxy"
5 VERSION="0.5b2"
6 CATEGORY="network"
7 SHORT_DESC="A proxy HTTP"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://sebsauvage.net/wiki/doku.php?id=phproxy"
12 TARBALL="$SOURCE%20$VERSION%20mod%20SSE+ARKA%2020100825.7z"
13 WGET_URL="https://sebsauvage.net/temp/$TARBALL"
15 BUILD_DEPENDS="p7zip"
17 compile_rules() {
18 dos2unix *
19 mkdir -p $install/usr/share/$PACKAGE
20 cp *.php *.css $install/usr/share/$PACKAGE
21 }
23 genpkg_rules() {
24 cp -a $install/* $fs
25 DEPENDS="php"
26 }
28 post_install() {
29 # Configure lighttpd server
30 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
31 if ! grep -q /usr/share/phproxy/ "$1/etc/lighttpd/lighttpd.conf"; then
32 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phproxy/" => "/usr/share/phproxy/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
33 if [ -z "$1" ]; then
34 # Start Web server.
35 /etc/init.d/lighttpd stop
36 /etc/init.d/lighttpd start
37 fi
38 fi
39 fi
40 # Configure apache server
41 if [ -f "$1/etc/apache/httpd.conf" ]; then
42 if [ ! -f "$1/etc/apache/conf.d/phproxy" ]; then
43 cat > "$1/etc/apache/conf.d/phproxy" <<EOT
44 <IfModule mod_alias.c>
45 Alias /phproxy /usr/share/phproxy
46 </IfModule>
47 <Directory /usr/share/phproxy/>
48 DirectoryIndex index.php
49 Options +FollowSymLinks
50 AllowOverride None
51 Order allow,deny
52 Allow from all
53 </Directory>
54 EOT
55 if [ -z "$1" ]; then
56 # Start Web server.
57 /etc/init.d/apache stop
58 /etc/init.d/apache start
59 fi
60 fi
61 fi
62 }