wok annotate phpeasyvcs/receipt @ rev 22384
updated blender again (2.75a -> 2.81)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Nov 28 10:12:34 2019 +0100 (2019-11-28) |
parents | 78cb1e930abd |
children | 15650f5d595b |
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@15198 | 9 LICENSE="GPL3" |
pascal@13591 | 10 WEB_SITE="http://phpeasyvcs.sourceforge.net/" |
pascal@13591 | 11 TARBALL="$SOURCE-$VERSION.zip" |
pascal@13591 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15198 | 13 |
pascal@13591 | 14 DEPENDS="php" |
pascal@13591 | 15 |
pascal@13591 | 16 # Rules to configure and make the package. |
pascal@13591 | 17 compile_rules() |
pascal@13591 | 18 { |
pascal@13591 | 19 cd $src |
pascal@13591 | 20 } |
pascal@13591 | 21 |
pascal@13591 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13591 | 23 genpkg_rules() |
pascal@13591 | 24 { |
pascal@13591 | 25 mkdir -p $fs/usr/share |
pascal@13591 | 26 cp -a $src $fs/usr/share/phpeasyvcs |
pascal@13591 | 27 } |
pascal@13591 | 28 |
pascal@13591 | 29 post_install() |
pascal@13591 | 30 { |
pascal@13591 | 31 # Configure lighttpd server |
pascal@18730 | 32 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then |
pascal@18730 | 33 if ! grep -q /usr/share/phpeasyvcs/ "$1/etc/lighttpd/lighttpd.conf"; then |
pascal@18730 | 34 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 | 35 if [ -z "$1" ]; then |
pascal@13591 | 36 # Start Web server. |
pascal@13591 | 37 /etc/init.d/lighttpd stop |
pascal@13591 | 38 /etc/init.d/lighttpd start |
pascal@13591 | 39 fi |
pascal@13591 | 40 fi |
pascal@13591 | 41 fi |
pascal@13591 | 42 # Configure apache server |
pascal@18730 | 43 if [ -f "$1/etc/apache/httpd.conf" ]; then |
pascal@18730 | 44 if [ ! -f "$1/etc/apache/conf.d/phpeasyvcs" ]; then |
pascal@18730 | 45 cat > "$1/etc/apache/conf.d/phpeasyvcs" <<EOT |
pascal@13591 | 46 <IfModule mod_alias.c> |
pascal@13591 | 47 Alias /phpeasyvcs /usr/share/phpeasyvcs |
pascal@13591 | 48 </IfModule> |
pascal@13591 | 49 <Directory /usr/share/phpeasyvcs/> |
pascal@13591 | 50 DirectoryIndex index.php |
pascal@13591 | 51 Options +FollowSymLinks |
pascal@13591 | 52 AllowOverride None |
pascal@13591 | 53 Order allow,deny |
pascal@13591 | 54 Allow from all |
pascal@13591 | 55 </Directory> |
pascal@13591 | 56 EOT |
pascal@13591 | 57 if [ -z "$1" ]; then |
pascal@13591 | 58 # Start Web server. |
pascal@13591 | 59 /etc/init.d/apache stop |
pascal@13591 | 60 /etc/init.d/apache start |
pascal@13591 | 61 fi |
pascal@13591 | 62 fi |
pascal@13591 | 63 fi |
pascal@13591 | 64 } |