wok-next diff awstats/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 053a334547a1
children
line diff
     1.1 --- a/awstats/receipt	Sat Dec 01 18:32:50 2018 +0200
     1.2 +++ b/awstats/receipt	Sat Nov 21 14:32:44 2020 +0100
     1.3 @@ -1,22 +1,24 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="awstats"
     1.7 -VERSION="7.0"
     1.8 +VERSION="7.7"
     1.9  CATEGORY="network"
    1.10 +TAGS_std="log analysis web mail ftp"
    1.11  SHORT_DESC="Log file analyzer"
    1.12 -MAINTAINER="devel@slitaz.org"
    1.13 +MAINTAINER="maintainer@slitaz.org"
    1.14  LICENSE="GPL"
    1.15 -WEB_SITE="https://awstats.sourceforge.io/"
    1.16 -HOST_ARCH="any"
    1.17 +WEB_SITE="https://awstats.sourceforge.net/"
    1.18  
    1.19  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.20  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.21  
    1.22  DEPENDS_std="perl"
    1.23  SUGGESTED_std="perl-net-xwhois perl-geo-ipfree"
    1.24 -TAGS_std="log analysis web mail ftp"
    1.25  
    1.26 -compile_rules() {
    1.27 +HOST_ARCH="any"
    1.28 +
    1.29 +compile_rules()
    1.30 +{
    1.31  	mkdir -p \
    1.32  		$install/usr/share/awstats/extras/ \
    1.33  		$install/var/www/cgi-bin/ \
    1.34 @@ -41,12 +43,13 @@
    1.35  		$install/usr/share/awstats/plugins/hostinfo.pm
    1.36  
    1.37  	# Avoid alias conflicts
    1.38 -	for i in classes css icon; do
    1.39 +	for i in classes css icon
    1.40 +	  do
    1.41  		sed -i "s| /$i| /awstats$i|" \
    1.42  			$install/usr/share/awstats/extras/awstats-apache.conf
    1.43  		sed -i "s|\"/$i|\"/awstats$i|" \
    1.44  			$install/usr/share/awstats/extras/awstats-lighttpd.conf
    1.45 -	done
    1.46 +	  done
    1.47  	sed -i '/\/css\//d; s|DirIcons="/icon"|DirIcons="/awstatsicon"|' \
    1.48  		$install/etc/awstats/awstats.model.conf
    1.49  	sed -i 's|classes|awstatsclasses|' \
    1.50 @@ -60,7 +63,8 @@
    1.51  		$install/usr/share/awstats/classes/src/Makefile.pl
    1.52  }
    1.53  
    1.54 -post_install() {
    1.55 +post_install()
    1.56 +{
    1.57  	# Set lighttpd or apache config
    1.58  	if [ -f "$1/etc/apache/httpd.conf" ]; then
    1.59  		if [ ! -f "$1/etc/apache/conf.d/awstats.conf" ]; then
    1.60 @@ -96,7 +100,8 @@
    1.61  EOT
    1.62  }
    1.63  
    1.64 -post_remove() {
    1.65 +post_remove()
    1.66 +{
    1.67  		# Remove orphan directories
    1.68  		[ -d "$1/usr/share/awstats" ] && rm -rf "$1/usr/share/awstats"
    1.69