wok-current rev 22122
updated webalizer (2.21-02 -> 2.23.08)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Nov 03 16:24:25 2019 +0100 (2019-11-03) |
parents | 11ce2b736103 |
children | 08f70e1780ab |
files | webalizer/receipt |
line diff
1.1 --- a/webalizer/receipt Sun Nov 03 15:34:58 2019 +0100 1.2 +++ b/webalizer/receipt Sun Nov 03 16:24:25 2019 +0100 1.3 @@ -1,18 +1,19 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="webalizer" 1.7 -VERSION="2.21-02" 1.8 +VERSION="2.23.08" 1.9 CATEGORY="network" 1.10 +TAGS="logs" 1.11 SHORT_DESC="Web server log file analysis program." 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="GPL2" 1.14 -TARBALL="$PACKAGE-$VERSION-src.tar.bz2" 1.15 -WEB_SITE="http://www.webalizer.com/" 1.16 +WEB_SITE="http://www.webalizer.org/" 1.17 + 1.18 +TARBALL="$PACKAGE-${VERSION%.*}-${VERSION##*.}-src.tar.bz2" 1.19 WGET_URL="ftp://ftp.mrunix.net/pub/$PACKAGE/$TARBALL" 1.20 -TAGS="logs" 1.21 1.22 -DEPENDS="libgd zlib db apache" 1.23 -BUILD_DEPENDS="libgd libgd-dev zlib-dev db db-dev" 1.24 +DEPENDS="apache db libgd zlib" 1.25 +BUILD_DEPENDS="db-dev libgd-dev zlib-dev" 1.26 1.27 1.28 # Rules to configure and make the package. 1.29 @@ -21,7 +22,8 @@ 1.30 export LDFLAGS="$LDFLAGS -lpthread" 1.31 sed -i 's/define _LARGEFILE64_SOURCE = 1/define _LARGEFILE64_SOURCE/' \ 1.32 webalizer.c 1.33 - ./configure \ 1.34 + 1.35 + ./configure \ 1.36 --sysconfdir=/etc && 1.37 make && 1.38 make DESTDIR=$DESTDIR install 1.39 @@ -30,14 +32,20 @@ 1.40 # Rules to gen a SliTaz package suitable for Tazpkg. 1.41 genpkg_rules() 1.42 { 1.43 - mkdir -p $fs/usr $fs/etc $fs/var/www/webalizer $fs/etc/initcron.d 1.44 + mkdir -p $fs/usr 1.45 + mkdir -p $fs/etc 1.46 + mkdir -p $fs/var/www/webalizer 1.47 chown 80 $fs/var/www/webalizer 1.48 - cp -a $install/etc/webalizer.conf.sample $fs/etc/webalizer.conf 1.49 - cp -a $install/usr/bin $fs/usr 1.50 + mkdir -p $fs/etc/initcron.d 1.51 + 1.52 + cp -a $install/etc/webalizer.conf.sample $fs/etc/webalizer.conf 1.53 + cp -a $install/usr/bin $fs/usr 1.54 + 1.55 cat > $fs/etc/initcron.d/webalizer << EOT 1.56 1.57 30 0 * * * /usr/bin/webalizer -o /var/www/webalizer /var/log/apache/access_log 1.58 EOT 1.59 + 1.60 chmod +x $fs/etc/initcron.d/webalizer 1.61 } 1.62 1.63 @@ -48,7 +56,9 @@ 1.64 cat >> "$1/etc/init.d/local.sh" <<EOT 1.65 [ -f /var/www/webalizer/index.html ] || /usr/bin/webalizer -o /var/www/webalizer /var/log/apache/access_log 1.66 EOT 1.67 - if [ -z "$1" ]; then 1.68 + 1.69 + if [ -z "$1" ] 1.70 + then 1.71 webalizer -o /var/www/webalizer /var/log/apache/access_log 1.72 crontab -l 2> /dev/null | grep -q webalizer || crontab - << EOT 1.73 $(crontab -l 2> /dev/null)