wok-6.x rev 25134
updated phpeasyvcs (1.0 -> 2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 10:51:43 2022 +0100 (2022-06-29) |
parents | 3f8793537981 |
children | d008cce77ad1 |
files | phpeasyvcs/description.txt phpeasyvcs/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/phpeasyvcs/description.txt Wed Jun 29 10:51:43 2022 +0100 1.3 @@ -0,0 +1,8 @@ 1.4 +PhpEasyVCS is a simple version control system (VCS) and 1.5 +WebDAV server with minimal hosting requirements: 1.6 + 1.7 + PHP 5.2+ 1.8 + 1.9 +No database is needed. 1.10 + 1.11 +Files can be viewed and uploaded with a browser or by WebDAV.
2.1 --- a/phpeasyvcs/receipt Wed Jun 29 07:55:42 2022 +0100 2.2 +++ b/phpeasyvcs/receipt Wed Jun 29 10:51:43 2022 +0100 2.3 @@ -2,12 +2,13 @@ 2.4 2.5 PACKAGE="phpeasyvcs" 2.6 SOURCE="phpEasyVCS" 2.7 -VERSION="1.0" 2.8 +VERSION="2.0" 2.9 CATEGORY="network" 2.10 SHORT_DESC="A simple version control system (VCS) and WebDAV server." 2.11 MAINTAINER="pascal.bellard@slitaz.org" 2.12 LICENSE="GPL3" 2.13 WEB_SITE="http://phpeasyvcs.sourceforge.net/" 2.14 + 2.15 TARBALL="$SOURCE-$VERSION.zip" 2.16 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 2.17 2.18 @@ -22,32 +23,38 @@ 2.19 # Rules to configure and make the package. 2.20 compile_rules() 2.21 { 2.22 - cd $src 2.23 + : 2.24 } 2.25 2.26 # Rules to gen a SliTaz package suitable for Tazpkg. 2.27 genpkg_rules() 2.28 { 2.29 mkdir -p $fs/usr/share 2.30 - cp -a $src $fs/usr/share/phpeasyvcs 2.31 + cp -a $src $fs/usr/share/phpeasyvcs 2.32 } 2.33 2.34 post_install() 2.35 { 2.36 # Configure lighttpd server 2.37 - if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then 2.38 - if ! grep -q /usr/share/phpeasyvcs/ "$1/etc/lighttpd/lighttpd.conf"; then 2.39 + if [ -f "$1/etc/lighttpd/lighttpd.conf" ] 2.40 + then 2.41 + if ! grep -q /usr/share/phpeasyvcs/ "$1/etc/lighttpd/lighttpd.conf" 2.42 + then 2.43 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|g' -i "$1/etc/lighttpd/lighttpd.conf" 2.44 - if [ -z "$1" ]; then 2.45 + if [ -z "$1" ] 2.46 + then 2.47 # Start Web server. 2.48 /etc/init.d/lighttpd stop 2.49 /etc/init.d/lighttpd start 2.50 fi 2.51 fi 2.52 fi 2.53 + 2.54 # Configure apache server 2.55 - if [ -f "$1/etc/apache/httpd.conf" ]; then 2.56 - if [ ! -f "$1/etc/apache/conf.d/phpeasyvcs" ]; then 2.57 + if [ -f "$1/etc/apache/httpd.conf" ] 2.58 + then 2.59 + if [ ! -f "$1/etc/apache/conf.d/phpeasyvcs" ] 2.60 + then 2.61 cat > "$1/etc/apache/conf.d/phpeasyvcs" <<EOT 2.62 <IfModule mod_alias.c> 2.63 Alias /phpeasyvcs /usr/share/phpeasyvcs 2.64 @@ -60,7 +67,8 @@ 2.65 Allow from all 2.66 </Directory> 2.67 EOT 2.68 - if [ -z "$1" ]; then 2.69 + if [ -z "$1" ] 2.70 + then 2.71 # Start Web server. 2.72 /etc/init.d/apache stop 2.73 /etc/init.d/apache start