wok-next diff nzbget/receipt @ rev 21644
updated fdk-aac (0.1.6 -> 2.0.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 26 16:33:17 2020 +0100 (2020-06-26) |
parents | d457c4e37c1b |
children |
line diff
1.1 --- a/nzbget/receipt Fri Nov 09 13:21:03 2018 +0200 1.2 +++ b/nzbget/receipt Fri Jun 26 16:33:17 2020 +0100 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="nzbget" 1.7 -VERSION="13.0" 1.8 +VERSION="21.0" 1.9 CATEGORY="network" 1.10 SHORT_DESC="The most efficient usenet downloader" 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 @@ -11,21 +11,23 @@ 1.13 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.15 1.16 -BUILD_DEPENDS="libxml2-dev openssl-dev ncurses-dev zlib-dev" 1.17 +BUILD_DEPENDS="libxml2-dev ncurses-dev openssl-dev zlib-dev" 1.18 SPLIT="$PACKAGE-webui $PACKAGE" 1.19 1.20 -compile_rules() { 1.21 - ./configure \ 1.22 - --disable-parcheck \ 1.23 +compile_rules() 1.24 +{ 1.25 + ./configure \ 1.26 + --disable-parcheck \ 1.27 $CONFIGURE_ARGS && 1.28 make && 1.29 make -j1 DESTDIR=$install install || return 1 1.30 1.31 mkdir -p $install/etc/ 1.32 - mv $install/usr/share/nzbget/nzbget.conf $install/etc/ 1.33 + mv $install/usr/share/nzbget/nzbget.conf $install/etc/ 1.34 } 1.35 1.36 -genpkg_rules() { 1.37 +genpkg_rules() 1.38 +{ 1.39 case $PACKAGE in 1.40 nzbget-webui) 1.41 copy usr/share/nzbget/webui/ 1.42 @@ -34,18 +36,23 @@ 1.43 ;; 1.44 nzbget) 1.45 copy @std @rm 1.46 - DEPENDS="libxml2 openssl ncurses gcc-lib-base" 1.47 + DEPENDS="gcc-lib-base libxml2 ncurses openssl" 1.48 CONFIG_FILES="/etc/nzbget.conf" 1.49 ;; 1.50 esac 1.51 } 1.52 1.53 -post_install_nzbget_webui() { 1.54 +post_install_nzbget_webui() 1.55 +{ 1.56 # Configure lighttpd server 1.57 - if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then 1.58 - if ! grep -q /usr/share/nzbget/ "$1/etc/lighttpd/lighttpd.conf"; then 1.59 - 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.60 - if [ -z "$1" ]; then 1.61 + if [ -f "$1/etc/lighttpd/lighttpd.conf" ] 1.62 + then 1.63 + if ! grep -q /usr/share/nzbget/ "$1/etc/lighttpd/lighttpd.conf" 1.64 + then 1.65 + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/nzbget/" => "/usr/share/nzbget/webui/",|g' \ 1.66 + -i "$1/etc/lighttpd/lighttpd.conf" 1.67 + if [ -z "$1" ] 1.68 + then 1.69 # Start Web server. 1.70 /etc/init.d/lighttpd stop 1.71 /etc/init.d/lighttpd start 1.72 @@ -53,8 +60,10 @@ 1.73 fi 1.74 fi 1.75 # Configure apache server 1.76 - if [ -f "$1/etc/apache/httpd.conf" ]; then 1.77 - if [ ! -f "$1/etc/apache/conf.d/nzbget" ]; then 1.78 + if [ -f "$1/etc/apache/httpd.conf" ] 1.79 + then 1.80 + if [ ! -f "$1/etc/apache/conf.d/nzbget" ] 1.81 + then 1.82 cat > "$1/etc/apache/conf.d/nzbget" <<EOT 1.83 <IfModule mod_alias.c> 1.84 Alias /nzbget /usr/share/nzbget/webui 1.85 @@ -67,7 +76,8 @@ 1.86 Allow from all 1.87 </Directory> 1.88 EOT 1.89 - if [ -z "$1" ]; then 1.90 + if [ -z "$1" ] 1.91 + then 1.92 # Start Web server. 1.93 /etc/init.d/apache stop 1.94 /etc/init.d/apache start