wok-next diff daloradius/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | 9e01bc6321ea |
children |
line diff
1.1 --- a/daloradius/receipt Sun Dec 20 15:13:45 2015 +0100 1.2 +++ b/daloradius/receipt Tue Sep 01 10:31:46 2020 +0000 1.3 @@ -1,20 +1,17 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="daloradius" 1.8 VERSION="0.9-9" 1.9 CATEGORY="network" 1.10 -SHORT_DESC="A RADIUS web platform for managing Hotspots." 1.11 +SHORT_DESC="A RADIUS web platform for managing Hotspots" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://daloradius.com/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://www.daloradius.com/" 1.18 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.19 1.20 -DEBENDS="php-gd php-mysql freeradius" 1.21 - 1.22 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.23 -genpkg_rules() 1.24 -{ 1.25 +genpkg_rules() { 1.26 mkdir -p $fs/usr/share/daloradius $fs/etc/mysql.d 1.27 cp -a $src/* $fs/usr/share/daloradius 1.28 mv $fs/usr/share/daloradius/library/daloradius.conf.php $fs/etc/ 1.29 @@ -27,14 +24,14 @@ 1.30 chmod -x /etc/mysql.d/daloradius 1.31 EOT 1.32 chmod 755 $fs/etc/mysql.d/daloradius 1.33 + DEPENDS="php-gd php-mysql freeradius" 1.34 } 1.35 1.36 -post_install() 1.37 -{ 1.38 +post_install() { 1.39 # Configure lighttpd server 1.40 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then 1.41 if ! grep -q /usr/share/daloradius/ "$1/etc/lighttpd/lighttpd.conf"; then 1.42 - sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/daloradius/" => "/usr/share/daloradius/",|g' -i "$1/etc/lighttpd/lighttpd.conf" 1.43 + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/daloradius/" => "/usr/share/daloradius/",|g' -i "$1/etc/lighttpd/lighttpd.conf" 1.44 if [ -z "$1" ]; then 1.45 # Start Web server. 1.46 /etc/init.d/lighttpd stop