wok diff nzbget-webui/receipt @ rev 24127
sokojs: get slc levels
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 16 16:30:13 2021 +0000 (2021-10-16) |
parents | a78610b2eb47 |
children | d30dcfb0598a |
line diff
1.1 --- a/nzbget-webui/receipt Mon Jan 21 12:26:11 2019 +0100 1.2 +++ b/nzbget-webui/receipt Sat Oct 16 16:30:13 2021 +0000 1.3 @@ -1,39 +1,45 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="nzbget-webui" 1.7 -VERSION="13.0" 1.8 +VERSION="21.0" 1.9 CATEGORY="network" 1.10 SHORT_DESC="The most efficient usenet downloader, web user interface." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 LICENSE="GPL2" 1.13 WEB_SITE="https://nzbget.net/" 1.14 1.15 +DEPENDS="nzbget" 1.16 WANTED="nzbget" 1.17 -DEPENDS="nzbget" 1.18 1.19 # Rules to gen a SliTaz package suitable for Tazpkg. 1.20 genpkg_rules() 1.21 { 1.22 mkdir -p $fs/usr/share/nzbget 1.23 - cp -a $install/usr/share/nzbget/webui $fs/usr/share/nbzget 1.24 + cp -a $install/usr/share/nzbget/webui $fs/usr/share/nbzget 1.25 } 1.26 1.27 post_install() 1.28 { 1.29 # Configure lighttpd server 1.30 - if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then 1.31 - if ! grep -q /usr/share/nzbget/ "$1/etc/lighttpd/lighttpd.conf"; then 1.32 + if [ -f "$1/etc/lighttpd/lighttpd.conf" ] 1.33 + then 1.34 + if ! grep -q /usr/share/nzbget/ "$1/etc/lighttpd/lighttpd.conf" 1.35 + then 1.36 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/nzbget/" => "/usr/share/nzbget/webui/",|g' -i "$1/etc/lighttpd/lighttpd.conf" 1.37 - if [ -z "$1" ]; then 1.38 + if [ -z "$1" ] 1.39 + then 1.40 # Start Web server. 1.41 /etc/init.d/lighttpd stop 1.42 /etc/init.d/lighttpd start 1.43 fi 1.44 fi 1.45 fi 1.46 + 1.47 # Configure apache server 1.48 - if [ -f "$1/etc/apache/httpd.conf" ]; then 1.49 - if [ ! -f "$1/etc/apache/conf.d/nzbget" ]; then 1.50 + if [ -f "$1/etc/apache/httpd.conf" ] 1.51 + then 1.52 + if [ ! -f "$1/etc/apache/conf.d/nzbget" ] 1.53 + then 1.54 cat > "$1/etc/apache/conf.d/nzbget" <<EOT 1.55 <IfModule mod_alias.c> 1.56 Alias /nzbget /usr/share/nzbget/webui 1.57 @@ -46,7 +52,8 @@ 1.58 Allow from all 1.59 </Directory> 1.60 EOT 1.61 - if [ -z "$1" ]; then 1.62 + if [ -z "$1" ] 1.63 + then 1.64 # Start Web server. 1.65 /etc/init.d/apache stop 1.66 /etc/init.d/apache start