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