wok-6.x rev 23255

updated ocaml (4.07.1 -> 4.10.0)
author Hans-G?nter Theisgen
date Wed Mar 25 17:29:13 2020 +0100 (2020-03-25)
parents e93d9fd2f16f
children b15cc3561ef8
files nzbget-webui/receipt ocaml/receipt
line diff
     1.1 --- a/nzbget-webui/receipt	Wed Mar 25 16:49:46 2020 +0100
     1.2 +++ b/nzbget-webui/receipt	Wed Mar 25 17:29:13 2020 +0100
     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
     2.1 --- a/ocaml/receipt	Wed Mar 25 16:49:46 2020 +0100
     2.2 +++ b/ocaml/receipt	Wed Mar 25 17:29:13 2020 +0100
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="ocaml"
     2.7 -VERSION="4.07.1"
     2.8 +VERSION="4.10.0"
     2.9  CATEGORY="system-tools"
    2.10  TAGS="language programming"
    2.11  SHORT_DESC="General-purpose programming language designed for safety and reliability."