wok-next view webalizer/receipt @ rev 1888
Add pmount
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 18 10:45:44 2008 +0000 (2008-12-18) |
parents | 690da2cb396e |
children | f606ce8506ca |
line source
1 # SliTaz package receipt.
3 PACKAGE="webalizer"
4 VERSION="2.20-01"
5 CATEGORY="network"
6 SHORT_DESC="Web server log file analysis program."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION-src.tar.bz2"
9 WEB_SITE="http://www.webalizer.com/"
10 WGET_URL="ftp://ftp.mrunix.net/pub/$PACKAGE/$TARBALL"
11 DEPENDS="libgd zlib db apache"
12 BUILD_DEPENDS="libgd libgd-dev zlib-dev db db-dev"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --prefix=/usr --sysconfdir=/etc \
19 --mandir=/usr/share/man $CONFIGURE_ARGS &&
20 make &&
21 make DESTDIR=$PWD/_pkg install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr $fs/etc $fs/var/www/webalizer
28 chown 80 $fs/var/www/webalizer
29 cp -a $_pkg/etc/webalizer.conf.sample $fs/etc/webalizer.conf
30 cp -a $_pkg/usr/bin $fs/usr
31 }
33 # Pre and post install commands for Tazpkg.
34 post_install()
35 {
36 if [ -z "$1" ]; then
37 webalizer -o /var/www/webalizer /var/log/apache/access_log
38 crontab -l 2> /dev/null | grep -q webalizer || crontab - << EOT
39 $(crontab -l 2> /dev/null)
40 30 0 * * * /usr/bin/webalizer -o /var/www/webalizer /var/log/apache/access_log
41 EOT
42 fi
43 }