wok rev 24461

updated daloradius (0.9-9 -> 1.1-2)
author Hans-G?nter Theisgen
date Wed Feb 16 17:15:55 2022 +0100 (2022-02-16)
parents 3c9783d89208
children 934055de50e2
files daloradius/description.txt daloradius/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/daloradius/description.txt	Wed Feb 16 17:15:55 2022 +0100
     1.3 @@ -0,0 +1,8 @@
     1.4 +DaloRADIUS is an advanced RADIUS web platform aimed at managing
     1.5 +Hotspots and general-purpose ISP deployments.
     1.6 +It features rich user management, graphical reporting, accounting,
     1.7 +and integrates with GoogleMaps for geo-locating (GIS).
     1.8 +DaloRADIUS is written in PHP and JavaScript and utilizes a database
     1.9 +abstraction layer which means that it supports many database systems,
    1.10 +among them the popular MySQL, PostgreSQL, Sqlite, MsSQL, and many
    1.11 +others.
     2.1 --- a/daloradius/receipt	Wed Feb 16 15:07:50 2022 +0100
     2.2 +++ b/daloradius/receipt	Wed Feb 16 17:15:55 2022 +0100
     2.3 @@ -1,13 +1,14 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="daloradius"
     2.7 -VERSION="0.9-9"
     2.8 +VERSION="1.1-2"
     2.9  CATEGORY="network"
    2.10  SHORT_DESC="A RADIUS web platform for managing Hotspots."
    2.11  MAINTAINER="pascal.bellard@slitaz.org"
    2.12  LICENSE="GPL2"
    2.13 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.14  WEB_SITE="http://www.daloradius.com/"
    2.15 +
    2.16 +TARBALL="$PACKAGE-$VERSION.zip"
    2.17  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    2.18  
    2.19  DEPENDS="php-gd php-mysql freeradius"
    2.20 @@ -22,10 +23,13 @@
    2.21  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.22  genpkg_rules()
    2.23  {
    2.24 -	mkdir -p $fs/usr/share/daloradius $fs/etc/mysql.d
    2.25 -	cp -a $src/* $fs/usr/share/daloradius
    2.26 -	mv $fs/usr/share/daloradius/library/daloradius.conf.php $fs/etc/
    2.27 -	ln -s /etc/daloradius.conf.php $fs/usr/share/daloradius/library/daloradius.conf.php
    2.28 +	mkdir -p $fs/usr/share/daloradius
    2.29 +	mkdir -p $fs/etc/mysql.d
    2.30 +
    2.31 +	cp -a $src/*			$fs/usr/share/daloradius
    2.32 +	mv $fs/usr/share/daloradius/daloradius/library/daloradius.conf.php \
    2.33 +					$fs/etc/
    2.34 +	ln -s /etc/daloradius.conf.php	$fs/usr/share/daloradius/daloradius/library/daloradius.conf.php
    2.35  	cat > $fs/etc/mysql.d/daloradius <<EOT
    2.36  #!/bin/sh
    2.37  
    2.38 @@ -39,10 +43,13 @@
    2.39  post_install()
    2.40  {
    2.41  	# Configure lighttpd server
    2.42 -	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
    2.43 -		if ! grep -q /usr/share/daloradius/ "$1/etc/lighttpd/lighttpd.conf"; then
    2.44 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
    2.45 +	  then
    2.46 +		if ! grep -q /usr/share/daloradius/ "$1/etc/lighttpd/lighttpd.conf"
    2.47 +		  then
    2.48  	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/daloradius/" => "/usr/share/daloradius/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
    2.49 -			if [ -z "$1" ]; then
    2.50 +			if [ -z "$1" ]
    2.51 +			  then
    2.52  				# Start Web server.
    2.53  				/etc/init.d/lighttpd stop
    2.54  				/etc/init.d/lighttpd start
    2.55 @@ -50,8 +57,10 @@
    2.56  		fi
    2.57  	fi
    2.58  	# Configure apache server
    2.59 -	if [ -f "$1/etc/apache/httpd.conf" ]; then
    2.60 -		if [ ! -f "$1/etc/apache/conf.d/daloradius" ]; then
    2.61 +	if [ -f "$1/etc/apache/httpd.conf" ]
    2.62 +	  then
    2.63 +		if [ ! -f "$1/etc/apache/conf.d/daloradius" ]
    2.64 +		  then
    2.65  			cat > "$1/etc/apache/conf.d/daloradius" <<EOT
    2.66  <IfModule mod_alias.c>
    2.67      Alias /daloradius /usr/share/daloradius
    2.68 @@ -64,7 +73,8 @@
    2.69      Allow from all
    2.70  </Directory>
    2.71  EOT
    2.72 -			if [ -z "$1" ]; then
    2.73 +			if [ -z "$1" ]
    2.74 +			  then
    2.75  				# Start Web server.
    2.76  				/etc/init.d/apache stop
    2.77  				/etc/init.d/apache start