# HG changeset patch # User Hans-G?nter Theisgen # Date 1587130966 -3600 # Node ID b19bbe01a93abb20c409e28f2bb7fe34571e63ce # Parent d9fd3e64ab6c5edcce31fcd632c55b8559c693f5 updated nzbget (13.0 -> 21.0) diff -r d9fd3e64ab6c -r b19bbe01a93a nfs-utils/receipt --- a/nfs-utils/receipt Fri Apr 17 14:10:17 2020 +0100 +++ b/nfs-utils/receipt Fri Apr 17 14:42:46 2020 +0100 @@ -23,6 +23,7 @@ --disable-gss \ --with-rpcgen=internal \ $CONFIGURE_ARGS && + fix libtool && make && make install || return 1 diff -r d9fd3e64ab6c -r b19bbe01a93a nzbget/receipt --- a/nzbget/receipt Fri Apr 17 14:10:17 2020 +0100 +++ b/nzbget/receipt Fri Apr 17 14:42:46 2020 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt v2. PACKAGE="nzbget" -VERSION="13.0" +VERSION="21.0" CATEGORY="network" SHORT_DESC="The most efficient usenet downloader" MAINTAINER="pascal.bellard@slitaz.org" @@ -11,21 +11,23 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" -BUILD_DEPENDS="libxml2-dev openssl-dev ncurses-dev zlib-dev" +BUILD_DEPENDS="libxml2-dev ncurses-dev openssl-dev zlib-dev" SPLIT="$PACKAGE-webui $PACKAGE" -compile_rules() { - ./configure \ - --disable-parcheck \ +compile_rules() +{ + ./configure \ + --disable-parcheck \ $CONFIGURE_ARGS && make && make -j1 DESTDIR=$install install || return 1 mkdir -p $install/etc/ - mv $install/usr/share/nzbget/nzbget.conf $install/etc/ + mv $install/usr/share/nzbget/nzbget.conf $install/etc/ } -genpkg_rules() { +genpkg_rules() +{ case $PACKAGE in nzbget-webui) copy usr/share/nzbget/webui/ @@ -34,18 +36,23 @@ ;; nzbget) copy @std @rm - DEPENDS="libxml2 openssl ncurses gcc-lib-base" + DEPENDS="gcc-lib-base libxml2 ncurses openssl" CONFIG_FILES="/etc/nzbget.conf" ;; esac } -post_install_nzbget_webui() { +post_install_nzbget_webui() +{ # Configure lighttpd server - if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then - if ! grep -q /usr/share/nzbget/ "$1/etc/lighttpd/lighttpd.conf"; then - sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/nzbget/" => "/usr/share/nzbget/webui/",|g' -i "$1/etc/lighttpd/lighttpd.conf" - if [ -z "$1" ]; then + if [ -f "$1/etc/lighttpd/lighttpd.conf" ] + then + if ! grep -q /usr/share/nzbget/ "$1/etc/lighttpd/lighttpd.conf" + then + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/nzbget/" => "/usr/share/nzbget/webui/",|g' \ + -i "$1/etc/lighttpd/lighttpd.conf" + if [ -z "$1" ] + then # Start Web server. /etc/init.d/lighttpd stop /etc/init.d/lighttpd start @@ -53,8 +60,10 @@ fi fi # Configure apache server - if [ -f "$1/etc/apache/httpd.conf" ]; then - if [ ! -f "$1/etc/apache/conf.d/nzbget" ]; then + if [ -f "$1/etc/apache/httpd.conf" ] + then + if [ ! -f "$1/etc/apache/conf.d/nzbget" ] + then cat > "$1/etc/apache/conf.d/nzbget" < Alias /nzbget /usr/share/nzbget/webui @@ -67,7 +76,8 @@ Allow from all EOT - if [ -z "$1" ]; then + if [ -z "$1" ] + then # Start Web server. /etc/init.d/apache stop /etc/init.d/apache start