wok annotate phpeasyvcs/receipt @ rev 15024

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