# HG changeset patch # User Hans-G?nter Theisgen # Date 1656496303 -3600 # Node ID 8c3395ca87ebcc2fcc23018ef9a87cf8cfc05d08 # Parent 3f8793537981b7d7e09c16b4556403d10ff87cf1 updated phpeasyvcs (1.0 -> 2.0) diff -r 3f8793537981 -r 8c3395ca87eb phpeasyvcs/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phpeasyvcs/description.txt Wed Jun 29 10:51:43 2022 +0100 @@ -0,0 +1,8 @@ +PhpEasyVCS is a simple version control system (VCS) and +WebDAV server with minimal hosting requirements: + + PHP 5.2+ + +No database is needed. + +Files can be viewed and uploaded with a browser or by WebDAV. diff -r 3f8793537981 -r 8c3395ca87eb phpeasyvcs/receipt --- a/phpeasyvcs/receipt Wed Jun 29 07:55:42 2022 +0100 +++ b/phpeasyvcs/receipt Wed Jun 29 10:51:43 2022 +0100 @@ -2,12 +2,13 @@ PACKAGE="phpeasyvcs" SOURCE="phpEasyVCS" -VERSION="1.0" +VERSION="2.0" CATEGORY="network" SHORT_DESC="A simple version control system (VCS) and WebDAV server." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL3" WEB_SITE="http://phpeasyvcs.sourceforge.net/" + TARBALL="$SOURCE-$VERSION.zip" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" @@ -22,32 +23,38 @@ # Rules to configure and make the package. compile_rules() { - cd $src + : } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share - cp -a $src $fs/usr/share/phpeasyvcs + cp -a $src $fs/usr/share/phpeasyvcs } post_install() { # Configure lighttpd server - if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then - if ! grep -q /usr/share/phpeasyvcs/ "$1/etc/lighttpd/lighttpd.conf"; then + if [ -f "$1/etc/lighttpd/lighttpd.conf" ] + then + if ! grep -q /usr/share/phpeasyvcs/ "$1/etc/lighttpd/lighttpd.conf" + then sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|g' -i "$1/etc/lighttpd/lighttpd.conf" - if [ -z "$1" ]; then + if [ -z "$1" ] + then # Start Web server. /etc/init.d/lighttpd stop /etc/init.d/lighttpd start fi fi fi + # Configure apache server - if [ -f "$1/etc/apache/httpd.conf" ]; then - if [ ! -f "$1/etc/apache/conf.d/phpeasyvcs" ]; then + if [ -f "$1/etc/apache/httpd.conf" ] + then + if [ ! -f "$1/etc/apache/conf.d/phpeasyvcs" ] + then cat > "$1/etc/apache/conf.d/phpeasyvcs" < Alias /phpeasyvcs /usr/share/phpeasyvcs @@ -60,7 +67,8 @@ Allow from all EOT - if [ -z "$1" ]; then + if [ -z "$1" ] + then # Start Web server. /etc/init.d/apache stop /etc/init.d/apache start