updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / ulogd / PKGBUILD
blobf854bbd74ef066db0cc020f8c5cba0d0e1c2e9cd
1 # Maintainer: Sebastien Luttringer <seblu+arch@seblu.net>
2 # Contributor: Dale Blount <dale@archlinux.org>
3 # Contributor: Sergej Pupykin <ps@lx-ltd.ru>
4 pkgname=ulogd
5 pkgver=1.24
6 pkgrel=6
7 pkgdesc='Userspace Packet Logging for netfilter'
8 arch=('i686' 'x86_64')
9 url='http://www.netfilter.org/projects/ulogd/index.html'
10 license=('GPL2')
11 makedepends=('mysql' 'postgresql' 'sqlite3' 'libpcap')
12 backup=('etc/ulogd.conf')
13 source=(
14   "ftp://ftp.netfilter.org/pub/$pkgname/$pkgname-$pkgver.tar.bz2"
15   'rc'
16   'logrotate'
18 md5sums=('05b4ed2926b9a22aaeaf642917bbf8ff'
19          '99fd661b5e689a25e0d6323fb3591d9e'
20          'fe40b3073b7474a77e0b8b0bfd19ab63')
22 build() {
23   cd $pkgname-$pkgver
24   export MAKEFLAGS="-j1"
25   ./configure --prefix=/usr --sysconfdir=/etc --with-mysql --with-pgsql --with-sqlite3
26   make || true
27   (cd mysql && ld -shared -L/usr/lib -L/usr/lib -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -o ulogd_MYSQL.so ulogd_MYSQL_sh.o -lc)
28   make
31 package() {
32   cd $pkgname-$pkgver
33   make DESTDIR="$pkgdir" install
34   chmod 644 "$pkgdir/etc/ulogd.conf"
35   install -d -m 755 "$pkgdir/usr/share/ulogd"
36   install -m644 doc/*.table "$pkgdir/usr/share/ulogd"
37   install -D -m644 "$srcdir/logrotate" "$pkgdir/etc/logrotate.d/ulogd"
38   install -D -m755 "$srcdir/rc" "$pkgdir/etc/rc.d/ulogd"
41 # vim:set ts=2 sw=2 ft=sh et: