wok-next annotate phpeasyvcs/receipt @ rev 21010
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Oct 12 16:40:30 2018 +0300 (2018-10-12) |
parents | 9e01bc6321ea |
children |
rev | line source |
---|---|
al@20485 | 1 # SliTaz package receipt v2. |
pascal@13591 | 2 |
pascal@13591 | 3 PACKAGE="phpeasyvcs" |
pascal@13591 | 4 VERSION="1.0" |
pascal@13591 | 5 CATEGORY="network" |
al@20485 | 6 SHORT_DESC="A simple version control system (VCS) and WebDAV server" |
pascal@13591 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15198 | 8 LICENSE="GPL3" |
pascal@13591 | 9 WEB_SITE="http://phpeasyvcs.sourceforge.net/" |
al@20485 | 10 |
al@20485 | 11 TARBALL="phpEasyVCS-$VERSION.zip" |
pascal@13591 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15198 | 13 |
al@20485 | 14 compile_rules() { |
al@20485 | 15 mkdir -p $install/usr/share |
al@20485 | 16 cp -a $src $install/usr/share/phpeasyvcs |
pascal@13591 | 17 } |
pascal@13591 | 18 |
al@20485 | 19 genpkg_rules() { |
al@20485 | 20 copy @std |
al@20485 | 21 DEPENDS="php" |
pascal@13591 | 22 } |
pascal@13591 | 23 |
al@20485 | 24 post_install() { |
pascal@13591 | 25 # Configure lighttpd server |
pascal@18730 | 26 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then |
pascal@18730 | 27 if ! grep -q /usr/share/phpeasyvcs/ "$1/etc/lighttpd/lighttpd.conf"; then |
al@20485 | 28 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 | 29 if [ -z "$1" ]; then |
pascal@13591 | 30 # Start Web server. |
pascal@13591 | 31 /etc/init.d/lighttpd stop |
pascal@13591 | 32 /etc/init.d/lighttpd start |
pascal@13591 | 33 fi |
pascal@13591 | 34 fi |
pascal@13591 | 35 fi |
pascal@13591 | 36 # Configure apache server |
pascal@18730 | 37 if [ -f "$1/etc/apache/httpd.conf" ]; then |
pascal@18730 | 38 if [ ! -f "$1/etc/apache/conf.d/phpeasyvcs" ]; then |
pascal@18730 | 39 cat > "$1/etc/apache/conf.d/phpeasyvcs" <<EOT |
pascal@13591 | 40 <IfModule mod_alias.c> |
pascal@13591 | 41 Alias /phpeasyvcs /usr/share/phpeasyvcs |
pascal@13591 | 42 </IfModule> |
pascal@13591 | 43 <Directory /usr/share/phpeasyvcs/> |
pascal@13591 | 44 DirectoryIndex index.php |
pascal@13591 | 45 Options +FollowSymLinks |
pascal@13591 | 46 AllowOverride None |
pascal@13591 | 47 Order allow,deny |
pascal@13591 | 48 Allow from all |
pascal@13591 | 49 </Directory> |
pascal@13591 | 50 EOT |
pascal@13591 | 51 if [ -z "$1" ]; then |
pascal@13591 | 52 # Start Web server. |
pascal@13591 | 53 /etc/init.d/apache stop |
pascal@13591 | 54 /etc/init.d/apache start |
pascal@13591 | 55 fi |
pascal@13591 | 56 fi |
pascal@13591 | 57 fi |
pascal@13591 | 58 } |