wok view phpeasyvcs/receipt @ rev 16062

ARM: Xorg light dont build yet but we have a Kdrive Xfbdev for ARM now :-)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 12 01:33:20 2014 +0100 (2014-03-12)
parents 4aed2b24febc
children 9e01bc6321ea
line source
1 # SliTaz package receipt.
3 PACKAGE="phpeasyvcs"
4 SOURCE="phpEasyVCS"
5 VERSION="1.0"
6 CATEGORY="network"
7 SHORT_DESC="A simple version control system (VCS) and WebDAV server."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="http://phpeasyvcs.sourceforge.net/"
11 TARBALL="$SOURCE-$VERSION.zip"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="php"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/usr/share
26 cp -a $src $fs/usr/share/phpeasyvcs
27 }
29 post_install()
30 {
31 # Configure lighttpd server
32 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
33 if ! grep -q /usr/share/phpeasyvcs/ $1/etc/lighttpd/lighttpd.conf; then
34 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|g' -i $1/etc/lighttpd/lighttpd.conf
35 if [ -z "$1" ]; then
36 # Start Web server.
37 /etc/init.d/lighttpd stop
38 /etc/init.d/lighttpd start
39 fi
40 fi
41 fi
42 # Configure apache server
43 if [ -f $1/etc/apache/httpd.conf ]; then
44 if [ ! -f $1/etc/apache/conf.d/phpeasyvcs ]; then
45 cat > $1/etc/apache/conf.d/phpeasyvcs <<EOT
46 <IfModule mod_alias.c>
47 Alias /phpeasyvcs /usr/share/phpeasyvcs
48 </IfModule>
49 <Directory /usr/share/phpeasyvcs/>
50 DirectoryIndex index.php
51 Options +FollowSymLinks
52 AllowOverride None
53 Order allow,deny
54 Allow from all
55 </Directory>
56 EOT
57 if [ -z "$1" ]; then
58 # Start Web server.
59 /etc/init.d/apache stop
60 /etc/init.d/apache start
61 fi
62 fi
63 fi
64 }