wok-next view phpeasyvcs/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 9e01bc6321ea |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="phpeasyvcs"
4 VERSION="1.0"
5 CATEGORY="network"
6 SHORT_DESC="A simple version control system (VCS) and WebDAV server"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://phpeasyvcs.sourceforge.net/"
11 TARBALL="phpEasyVCS-$VERSION.zip"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 compile_rules() {
15 mkdir -p $install/usr/share
16 cp -a $src $install/usr/share/phpeasyvcs
17 }
19 genpkg_rules() {
20 copy @std
21 DEPENDS="php"
22 }
24 post_install() {
25 # Configure lighttpd server
26 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
27 if ! grep -q /usr/share/phpeasyvcs/ "$1/etc/lighttpd/lighttpd.conf"; then
28 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
29 if [ -z "$1" ]; then
30 # Start Web server.
31 /etc/init.d/lighttpd stop
32 /etc/init.d/lighttpd start
33 fi
34 fi
35 fi
36 # Configure apache server
37 if [ -f "$1/etc/apache/httpd.conf" ]; then
38 if [ ! -f "$1/etc/apache/conf.d/phpeasyvcs" ]; then
39 cat > "$1/etc/apache/conf.d/phpeasyvcs" <<EOT
40 <IfModule mod_alias.c>
41 Alias /phpeasyvcs /usr/share/phpeasyvcs
42 </IfModule>
43 <Directory /usr/share/phpeasyvcs/>
44 DirectoryIndex index.php
45 Options +FollowSymLinks
46 AllowOverride None
47 Order allow,deny
48 Allow from all
49 </Directory>
50 EOT
51 if [ -z "$1" ]; then
52 # Start Web server.
53 /etc/init.d/apache stop
54 /etc/init.d/apache start
55 fi
56 fi
57 fi
58 }