wok diff phpeasyvcs/receipt @ rev 14112
smbclient: fix too much newline that produced a 546 files smbclient package, sorry about that
author | ernia <monghitri@aruba.it> |
---|---|
date | Sun Feb 24 21:28:58 2013 +0000 (2013-02-24) |
parents | |
children | 78cb1e930abd |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/phpeasyvcs/receipt Sun Feb 24 21:28:58 2013 +0000 1.3 @@ -0,0 +1,62 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="phpeasyvcs" 1.7 +SOURCE="phpEasyVCS" 1.8 +VERSION="1.0" 1.9 +CATEGORY="network" 1.10 +SHORT_DESC="A simple version control system (VCS) and WebDAV server." 1.11 +MAINTAINER="pascal.bellard@slitaz.org" 1.12 +WEB_SITE="http://phpeasyvcs.sourceforge.net/" 1.13 +TARBALL="$SOURCE-$VERSION.zip" 1.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.15 +DEPENDS="php" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 +} 1.22 + 1.23 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.24 +genpkg_rules() 1.25 +{ 1.26 + mkdir -p $fs/usr/share 1.27 + cp -a $src $fs/usr/share/phpeasyvcs 1.28 +} 1.29 + 1.30 +post_install() 1.31 +{ 1.32 + # Configure lighttpd server 1.33 + if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 1.34 + if ! grep -q /usr/share/phpeasyvcs/ $1/etc/lighttpd/lighttpd.conf; then 1.35 + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|g' -i $1/etc/lighttpd/lighttpd.conf 1.36 + if [ -z "$1" ]; then 1.37 + # Start Web server. 1.38 + /etc/init.d/lighttpd stop 1.39 + /etc/init.d/lighttpd start 1.40 + fi 1.41 + fi 1.42 + fi 1.43 + # Configure apache server 1.44 + if [ -f $1/etc/apache/httpd.conf ]; then 1.45 + if [ ! -f $1/etc/apache/conf.d/phpeasyvcs ]; then 1.46 + cat > $1/etc/apache/conf.d/phpeasyvcs <<EOT 1.47 +<IfModule mod_alias.c> 1.48 + Alias /phpeasyvcs /usr/share/phpeasyvcs 1.49 +</IfModule> 1.50 +<Directory /usr/share/phpeasyvcs/> 1.51 + DirectoryIndex index.php 1.52 + Options +FollowSymLinks 1.53 + AllowOverride None 1.54 + Order allow,deny 1.55 + Allow from all 1.56 +</Directory> 1.57 +EOT 1.58 + if [ -z "$1" ]; then 1.59 + # Start Web server. 1.60 + /etc/init.d/apache stop 1.61 + /etc/init.d/apache start 1.62 + fi 1.63 + fi 1.64 + fi 1.65 +}