wok-current view phpeasyvcs/receipt @ rev 14485

gst-python-dev: update deps+bdeps
author Dominique Corbex <domcox@slitaz.org>
date Thu May 02 22:51:54 2013 +0200 (2013-05-02)
parents
children 78cb1e930abd
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 WEB_SITE="http://phpeasyvcs.sourceforge.net/"
10 TARBALL="$SOURCE-$VERSION.zip"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="php"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 }
20 # Rules to gen a SliTaz package suitable for Tazpkg.
21 genpkg_rules()
22 {
23 mkdir -p $fs/usr/share
24 cp -a $src $fs/usr/share/phpeasyvcs
25 }
27 post_install()
28 {
29 # Configure lighttpd server
30 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
31 if ! grep -q /usr/share/phpeasyvcs/ $1/etc/lighttpd/lighttpd.conf; then
32 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|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/phpeasyvcs ]; then
43 cat > $1/etc/apache/conf.d/phpeasyvcs <<EOT
44 <IfModule mod_alias.c>
45 Alias /phpeasyvcs /usr/share/phpeasyvcs
46 </IfModule>
47 <Directory /usr/share/phpeasyvcs/>
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 }