blob: c4ea91a7c06f5f15821e8f21d35868f92c09e9ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# $Id: PKGBUILD 55184 2011-09-05 09:03:02Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Sebastien Luttringer <seblu+arch@seblu.net>
# Contributor: Dale Blount <dale@archlinux.org>
# Contributor: Sergej Pupykin <ps@lx-ltd.ru>
pkgname=ulogd
pkgver=1.24
pkgrel=7
pkgdesc='Userspace Packet Logging for netfilter'
arch=('i686' 'x86_64')
url='http://www.netfilter.org/projects/ulogd/index.html'
license=('GPL2')
makedepends=('mysql' 'postgresql' 'sqlite3' 'libpcap')
optdepends=('postgresql-libs'
'sqlite3'
'libpcap'
'libmysqlclient')
backup=('etc/ulogd.conf')
source=("ftp://ftp.netfilter.org/pub/$pkgname/$pkgname-$pkgver.tar.bz2"
'rc'
'logrotate')
md5sums=('05b4ed2926b9a22aaeaf642917bbf8ff'
'c42230c1cabf5dd9b80bf9a0fd87ca7e'
'fe40b3073b7474a77e0b8b0bfd19ab63')
build() {
cd $pkgname-$pkgver
export MAKEFLAGS="-j1"
./configure --prefix=/usr --sysconfdir=/etc --with-mysql --with-pgsql --with-sqlite3
make || true
(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)
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
chmod 644 "$pkgdir/etc/ulogd.conf"
install -d -m 755 "$pkgdir/usr/share/ulogd"
install -m644 doc/*.table "$pkgdir/usr/share/ulogd"
install -D -m644 "$srcdir/logrotate" "$pkgdir/etc/logrotate.d/ulogd"
install -D -m755 "$srcdir/rc" "$pkgdir/etc/rc.d/ulogd"
}
|