wok view nzbget-webui/receipt @ rev 25587
Update some web_site / wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 06 11:04:30 2023 +0000 (18 months ago) |
parents | e1e99c585768 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="nzbget-webui"
4 VERSION="21.1"
5 CATEGORY="network"
6 SHORT_DESC="The most efficient usenet downloader, web user interface."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://nzbget.net/"
11 DEPENDS="nzbget"
12 WANTED="nzbget"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/share/nzbget
18 cp -a $install/usr/share/nzbget/webui $fs/usr/share/nbzget
19 }
21 post_install()
22 {
23 # Configure lighttpd server
24 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
25 then
26 if ! grep -q /usr/share/nzbget/ "$1/etc/lighttpd/lighttpd.conf"
27 then
28 sed -i -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/nzbget/" => "/usr/share/nzbget/webui/",|g' \
29 "$1/etc/lighttpd/lighttpd.conf"
30 if [ -z "$1" ]
31 then
32 # Start Web server.
33 /etc/init.d/lighttpd stop
34 /etc/init.d/lighttpd start
35 fi
36 fi
37 fi
39 # Configure apache server
40 if [ -f "$1/etc/apache/httpd.conf" ]
41 then
42 if [ ! -f "$1/etc/apache/conf.d/nzbget" ]
43 then
44 cat > "$1/etc/apache/conf.d/nzbget" <<EOT
45 <IfModule mod_alias.c>
46 Alias /nzbget /usr/share/nzbget/webui
47 </IfModule>
48 <Directory /usr/share/nzbget/webui/>
49 DirectoryIndex index.html
50 Options +FollowSymLinks
51 AllowOverride None
52 Order allow,deny
53 Allow from all
54 </Directory>
55 EOT
56 if [ -z "$1" ]
57 then
58 # Start Web server.
59 /etc/init.d/apache stop
60 /etc/init.d/apache start
61 fi
62 fi
63 fi
64 }