wok-6.x annotate freeradius-dialupadmin/receipt @ rev 22029
updated tiff, tiff-apps and tiff-dev (4.0.3 -> 4.0.10)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Oct 20 17:03:34 2019 +0100 (2019-10-20) |
parents | 7bb096863642 |
children | faf06d0e5299 |
rev | line source |
---|---|
pascal@1348 | 1 # SliTaz package receipt. |
pascal@1348 | 2 |
pascal@1348 | 3 PACKAGE="freeradius-dialupadmin" |
pascal@12433 | 4 VERSION="2.1.12" |
pascal@1348 | 5 CATEGORY="network" |
pascal@1348 | 6 SHORT_DESC="radius server web interface" |
pascal@13027 | 7 MAINTAINER="sdaigl@lacitec.on.ca" |
pascal@15215 | 8 LICENSE="GPL2 LGPL2" |
pascal@1348 | 9 WEB_SITE="http://www.freeradius.org/" |
slaxemulator@8752 | 10 SOURCE="freeradius-server" |
pascal@1348 | 11 WANTED="freeradius" |
pascal@1348 | 12 CONFIG_FILES="/etc/dialupadmin" |
pascal@1348 | 13 |
pascal@15215 | 14 DEPENDS="php" |
pascal@15215 | 15 |
pascal@1348 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1348 | 17 genpkg_rules() |
pascal@1348 | 18 { |
pascal@1348 | 19 mkdir -p $fs/usr/share $fs/etc/dialupadmin |
pascal@1348 | 20 cp -a $src/dialup_admin $fs/usr/share |
pascal@1348 | 21 cp -a $src/dialup_admin/conf/* $fs/etc/dialupadmin |
pascal@1348 | 22 rm -rf $fs/usr/share/dialup_admin/conf |
pascal@1348 | 23 ln -s /etc/dialupadmin $fs/usr/share/dialup_admin |
pascal@1348 | 24 } |
pascal@1348 | 25 |
pascal@1348 | 26 post_install() |
pascal@1348 | 27 { |
pascal@1348 | 28 # Configure lighttpd server |
pascal@18730 | 29 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then |
pascal@18730 | 30 if ! grep -q /usr/share/dialup_admin/ "$1/etc/lighttpd/lighttpd.conf"; then |
pascal@18730 | 31 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/dialupadmin/" => "/usr/share/dialup_admin/htdocs/",|g' -i "$1/etc/lighttpd/lighttpd.conf" |
pascal@1348 | 32 if [ -z "$1" ]; then |
pascal@1348 | 33 # Start Web server. |
pascal@1348 | 34 /etc/init.d/lighttpd stop |
pascal@1348 | 35 /etc/init.d/lighttpd start |
pascal@1348 | 36 fi |
pascal@1348 | 37 fi |
pascal@1348 | 38 fi |
pascal@1348 | 39 # Configure apache server |
pascal@18730 | 40 if [ -f "$1/etc/apache/httpd.conf" ]; then |
pascal@18730 | 41 if [ ! -f "$1/etc/apache/conf.d/dialupadmin" ]; then |
pascal@18730 | 42 cat > "$1/etc/apache/conf.d/dialupadmin" <<EOT |
pascal@1348 | 43 <IfModule mod_alias.c> |
pascal@1348 | 44 Alias /dialupadmin /usr/share/dialup_admin/htdocs |
pascal@1348 | 45 </IfModule> |
pascal@1348 | 46 <DirectoryMatch /usr/share/dialup_admin/htdocs/> |
pascal@1426 | 47 DirectoryIndex index.html |
pascal@1348 | 48 Options +FollowSymLinks |
pascal@1348 | 49 AllowOverride None |
pascal@1348 | 50 Order allow,deny |
pascal@1348 | 51 Allow from all |
pascal@1348 | 52 </DirectoryMatch> |
pascal@1348 | 53 EOT |
pascal@1348 | 54 if [ -z "$1" ]; then |
pascal@1348 | 55 # Start Web server. |
pascal@1348 | 56 /etc/init.d/apache stop |
pascal@1348 | 57 /etc/init.d/apache start |
pascal@1348 | 58 fi |
pascal@1348 | 59 fi |
pascal@1348 | 60 fi |
pascal@1348 | 61 } |