PKGBUILDs/extra/webalizer/PKGBUILD
2009-10-09 21:23:22 -05:00

30 lines
778 B
Bash

# $Id: PKGBUILD 53121 2009-09-26 07:32:31Z allan $
# Maintainer: Juergen Hoetzel
pkgname=webalizer
pkgver=2.21
pkgrel=2
pkgdesc="A web statistics generator with geolizer built in."
url="http://www.webalizer.com/"
license=('GPL')
arch=('i686' 'x86_64')
depends=('db>=4.8' 'gd' 'geoip')
source=(ftp://ftp.mrunix.net/pub/webalizer/$pkgname-$pkgver-02-src.tgz)
md5sums=('e847bbba7949a65b4511d40566293b94')
build() {
cd $srcdir/$pkgname-$pkgver-02
./configure --prefix=/usr --enable-geoip
make || return 1
# Set up our directory structure
install -d -m755 $pkgdir/{usr/{bin,share/man/man1},etc}
make prefix=$pkgdir/usr datarootdir=$pkgdir/usr/share \
ETCDIR=$pkgdir/etc install
cd $pkgdir/usr/bin
rm -fr webazolver
ln -s webalizer webazolver
}