wok-next rev 21388

updated nzbget (13.0 -> 21.0)
author Hans-G?nter Theisgen
date Fri Apr 17 14:42:46 2020 +0100 (2020-04-17)
parents d9fd3e64ab6c
children d7cbbb220e8b
files nfs-utils/receipt nzbget/receipt
line diff
     1.1 --- a/nfs-utils/receipt	Fri Apr 17 14:10:17 2020 +0100
     1.2 +++ b/nfs-utils/receipt	Fri Apr 17 14:42:46 2020 +0100
     1.3 @@ -23,6 +23,7 @@
     1.4  		--disable-gss		\
     1.5  		--with-rpcgen=internal	\
     1.6  		$CONFIGURE_ARGS &&
     1.7 +	fix libtool &&
     1.8  	make &&
     1.9  	make install || return 1
    1.10  
     2.1 --- a/nzbget/receipt	Fri Apr 17 14:10:17 2020 +0100
     2.2 +++ b/nzbget/receipt	Fri Apr 17 14:42:46 2020 +0100
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt v2.
     2.5  
     2.6  PACKAGE="nzbget"
     2.7 -VERSION="13.0"
     2.8 +VERSION="21.0"
     2.9  CATEGORY="network"
    2.10  SHORT_DESC="The most efficient usenet downloader"
    2.11  MAINTAINER="pascal.bellard@slitaz.org"
    2.12 @@ -11,21 +11,23 @@
    2.13  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.14  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    2.15  
    2.16 -BUILD_DEPENDS="libxml2-dev openssl-dev ncurses-dev zlib-dev"
    2.17 +BUILD_DEPENDS="libxml2-dev ncurses-dev openssl-dev zlib-dev"
    2.18  SPLIT="$PACKAGE-webui $PACKAGE"
    2.19  
    2.20 -compile_rules() {
    2.21 -	./configure \
    2.22 -		--disable-parcheck \
    2.23 +compile_rules()
    2.24 +{
    2.25 +	./configure			\
    2.26 +		--disable-parcheck	\
    2.27  		$CONFIGURE_ARGS &&
    2.28  	make &&
    2.29  	make -j1 DESTDIR=$install install || return 1
    2.30  
    2.31  	mkdir -p $install/etc/
    2.32 -	mv $install/usr/share/nzbget/nzbget.conf $install/etc/
    2.33 +	mv $install/usr/share/nzbget/nzbget.conf	$install/etc/
    2.34  }
    2.35  
    2.36 -genpkg_rules() {
    2.37 +genpkg_rules()
    2.38 +{
    2.39  	case $PACKAGE in
    2.40  		nzbget-webui)
    2.41  			copy usr/share/nzbget/webui/
    2.42 @@ -34,18 +36,23 @@
    2.43  			;;
    2.44  		nzbget)
    2.45  			copy @std @rm
    2.46 -			DEPENDS="libxml2 openssl ncurses gcc-lib-base"
    2.47 +			DEPENDS="gcc-lib-base libxml2 ncurses openssl"
    2.48  			CONFIG_FILES="/etc/nzbget.conf"
    2.49  			;;
    2.50  	esac
    2.51  }
    2.52  
    2.53 -post_install_nzbget_webui() {
    2.54 +post_install_nzbget_webui()
    2.55 +{
    2.56  	# Configure lighttpd server
    2.57 -	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
    2.58 -		if ! grep -q /usr/share/nzbget/ "$1/etc/lighttpd/lighttpd.conf"; then
    2.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"
    2.60 -			if [ -z "$1" ]; then
    2.61 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
    2.62 +	  then
    2.63 +		if ! grep -q /usr/share/nzbget/ "$1/etc/lighttpd/lighttpd.conf"
    2.64 +		  then
    2.65 +			sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/nzbget/" => "/usr/share/nzbget/webui/",|g' \
    2.66 +				-i "$1/etc/lighttpd/lighttpd.conf"
    2.67 +			if [ -z "$1" ]
    2.68 +			  then
    2.69  				# Start Web server.
    2.70  				/etc/init.d/lighttpd stop
    2.71  				/etc/init.d/lighttpd start
    2.72 @@ -53,8 +60,10 @@
    2.73  		fi
    2.74  	fi
    2.75  	# Configure apache server
    2.76 -	if [ -f "$1/etc/apache/httpd.conf" ]; then
    2.77 -		if [ ! -f "$1/etc/apache/conf.d/nzbget" ]; then
    2.78 +	if [ -f "$1/etc/apache/httpd.conf" ]
    2.79 +	  then
    2.80 +		if [ ! -f "$1/etc/apache/conf.d/nzbget" ]
    2.81 +		  then
    2.82  			cat > "$1/etc/apache/conf.d/nzbget" <<EOT
    2.83  <IfModule mod_alias.c>
    2.84      Alias /nzbget /usr/share/nzbget/webui
    2.85 @@ -67,7 +76,8 @@
    2.86      Allow from all
    2.87  </Directory>
    2.88  EOT
    2.89 -			if [ -z "$1" ]; then
    2.90 +			if [ -z "$1" ]
    2.91 +			  then
    2.92  				# Start Web server.
    2.93  				/etc/init.d/apache stop
    2.94  				/etc/init.d/apache start