wok-current view phpeasyvcs/receipt @ rev 25177
Update some web_site & wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 02 13:44:10 2022 +0000 (2022-07-02) |
parents | 15650f5d595b |
children | 7dd01dedad38 |
line source
1 # SliTaz package receipt.
3 PACKAGE="phpeasyvcs"
4 SOURCE="phpEasyVCS"
5 VERSION="2.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/"
12 TARBALL="$SOURCE-$VERSION.zip"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="php"
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/phpeasyvcs/files/ 2>/dev/null | \
20 sed '/Click to/!d;/phpEasyVCS/!d;s|.*phpEasyVCS-||;s|.zip.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 :
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share
33 cp -a $src $fs/usr/share/phpeasyvcs
34 }
36 post_install()
37 {
38 # Configure lighttpd server
39 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
40 then
41 if ! grep -q /usr/share/phpeasyvcs/ "$1/etc/lighttpd/lighttpd.conf"
42 then
43 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
44 if [ -z "$1" ]
45 then
46 # Start Web server.
47 /etc/init.d/lighttpd stop
48 /etc/init.d/lighttpd start
49 fi
50 fi
51 fi
53 # Configure apache server
54 if [ -f "$1/etc/apache/httpd.conf" ]
55 then
56 if [ ! -f "$1/etc/apache/conf.d/phpeasyvcs" ]
57 then
58 cat > "$1/etc/apache/conf.d/phpeasyvcs" <<EOT
59 <IfModule mod_alias.c>
60 Alias /phpeasyvcs /usr/share/phpeasyvcs
61 </IfModule>
62 <Directory /usr/share/phpeasyvcs/>
63 DirectoryIndex index.php
64 Options +FollowSymLinks
65 AllowOverride None
66 Order allow,deny
67 Allow from all
68 </Directory>
69 EOT
70 if [ -z "$1" ]
71 then
72 # Start Web server.
73 /etc/init.d/apache stop
74 /etc/init.d/apache start
75 fi
76 fi
77 fi
78 }