wok view phpeasyvcs/receipt @ rev 24538
updated fbcat (0.5.1 -> 0.5.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 23 15:14:49 2022 +0100 (2022-02-23) |
parents | 9e01bc6321ea |
children | 8c3395ca87eb |
line source
1 # SliTaz package receipt.
3 PACKAGE="phpeasyvcs"
4 SOURCE="phpEasyVCS"
5 VERSION="1.0"
6 CATEGORY="network"
7 SHORT_DESC="A simple version control system (VCS) and WebDAV server."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="http://phpeasyvcs.sourceforge.net/"
11 TARBALL="$SOURCE-$VERSION.zip"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="php"
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/phpeasyvcs/files/ 2>/dev/null | \
19 sed '/Click to/!d;/phpEasyVCS/!d;s|.*phpEasyVCS-||;s|.zip.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share
32 cp -a $src $fs/usr/share/phpeasyvcs
33 }
35 post_install()
36 {
37 # Configure lighttpd server
38 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
39 if ! grep -q /usr/share/phpeasyvcs/ "$1/etc/lighttpd/lighttpd.conf"; then
40 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
41 if [ -z "$1" ]; then
42 # Start Web server.
43 /etc/init.d/lighttpd stop
44 /etc/init.d/lighttpd start
45 fi
46 fi
47 fi
48 # Configure apache server
49 if [ -f "$1/etc/apache/httpd.conf" ]; then
50 if [ ! -f "$1/etc/apache/conf.d/phpeasyvcs" ]; then
51 cat > "$1/etc/apache/conf.d/phpeasyvcs" <<EOT
52 <IfModule mod_alias.c>
53 Alias /phpeasyvcs /usr/share/phpeasyvcs
54 </IfModule>
55 <Directory /usr/share/phpeasyvcs/>
56 DirectoryIndex index.php
57 Options +FollowSymLinks
58 AllowOverride None
59 Order allow,deny
60 Allow from all
61 </Directory>
62 EOT
63 if [ -z "$1" ]; then
64 # Start Web server.
65 /etc/init.d/apache stop
66 /etc/init.d/apache start
67 fi
68 fi
69 fi
70 }