wok view phpeasyvcs/receipt @ rev 25461

foobillardplus: add LDFLAGS for -Wl,--copy-dt-needed-entries
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 09:44:06 2022 +0000 (19 months ago)
parents 7dd01dedad38
children
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="https://phpeasyvcs.sourceforge.net/"
12 TARBALL="$SOURCE-$VERSION.zip"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 DEPENDS="php"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/phpeasyvcs/files/ 2>/dev/null | \
21 sed '/Click to/!d;/phpEasyVCS/!d;s|.*phpEasyVCS-||;s|.zip.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 :
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share
34 cp -a $src $fs/usr/share/phpeasyvcs
35 }
37 post_install()
38 {
39 # Configure lighttpd server
40 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
41 then
42 if ! grep -q /usr/share/phpeasyvcs/ "$1/etc/lighttpd/lighttpd.conf"
43 then
44 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
45 if [ -z "$1" ]
46 then
47 # Start Web server.
48 /etc/init.d/lighttpd stop
49 /etc/init.d/lighttpd start
50 fi
51 fi
52 fi
54 # Configure apache server
55 if [ -f "$1/etc/apache/httpd.conf" ]
56 then
57 if [ ! -f "$1/etc/apache/conf.d/phpeasyvcs" ]
58 then
59 cat > "$1/etc/apache/conf.d/phpeasyvcs" <<EOT
60 <IfModule mod_alias.c>
61 Alias /phpeasyvcs /usr/share/phpeasyvcs
62 </IfModule>
63 <Directory /usr/share/phpeasyvcs/>
64 DirectoryIndex index.php
65 Options +FollowSymLinks
66 AllowOverride None
67 Order allow,deny
68 Allow from all
69 </Directory>
70 EOT
71 if [ -z "$1" ]
72 then
73 # Start Web server.
74 /etc/init.d/apache stop
75 /etc/init.d/apache start
76 fi
77 fi
78 fi
79 }