blob: 6dad6b8debcf53f6f95f1700331f1872ec8e36c8 (
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
45
46
47
48
49
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
pkgname=ulogd
pkgver=2.0.0_beta3
_pkgver=2.0.0beta3
pkgrel=1
pkgdesc="A userspace logging daemon for netfilter/iptables related logging"
url="http://netfilter.org/projects/ulogd/index.html"
license="GPL"
depends=
makedepends="sqlite-dev mysql-dev postgresql-dev libpcap-dev libnfnetlink-dev
libnetfilter_conntrack-dev libnetfilter_log-dev pkgconfig openssl-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-sqlite $pkgname-pgsql $pkgname-mysql"
source="http://netfilter.org/projects/ulogd/files/ulogd-2.0.0beta3.tar.bz2
ulogd.initd"
build() {
cd "$srcdir/$pkgname-$_pkgver"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make || return 1
make DESTDIR="$pkgdir" install
install -Dm644 ulogd.conf "$pkgdir"/etc/ulogd.conf
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}
sqlite() {
depends="$pkgname sqlite"
mkdir -p "$subpkgdir"/usr/lib/ulogd/
mv "$pkgdir"/usr/lib/ulogd/ulogd_output_SQLITE3.so "$subpkgdir"/usr/lib/ulogd/
}
pgsql() {
depends="$pkgname libpq"
mkdir -p "$subpkgdir"/usr/lib/ulogd/
mv "$pkgdir"/usr/lib/ulogd/ulogd_output_PGSQL.so "$subpkgdir"/usr/lib/ulogd/
}
mysql() {
depends="$pkgname libmysqlclient openssl"
mkdir -p "$subpkgdir"/usr/lib/ulogd/
mv "$pkgdir"/usr/lib/ulogd/ulogd_output_MYSQL.so "$subpkgdir"/usr/lib/ulogd/
}
md5sums="be8137d3b7ae70ebbce7ca8852b9e901 ulogd-2.0.0beta3.tar.bz2
5eedaae6102a4e90b3b89f051f54fbf1 ulogd.initd"
|