1 # Maintainer: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Dale Blount <dale@archlinux.org>
8 pkgdesc='Userspace Packet Logging for netfilter'
10 url='https://www.netfilter.org/projects/ulogd/'
14 'libnetfilter_conntrack'
17 backup=('etc/ulogd.conf')
18 makedepends=('mariadb-libs'
24 optdepends=('mariadb-libs: MySQL databases support'
25 'sqlite: SQLite3 databases support'
26 'postgresql-libs: PostgreSQL databases support'
27 'libdbi: DBI abstraction databases support'
28 'libpcap: PCAP output support'
29 'jansson: JSON output support')
30 validpgpkeys=('37D964ACC04981C75500FB9BD55D978A8A1420E4') # Netfilter Core Team
31 source=("https://www.netfilter.org/projects/ulogd/files/$pkgname-$pkgver.tar.bz2"{,.sig}
35 sha256sums=('4ead6c3970c3f57fa1e89fe2d7cc483ba6fe2bd1b08701521e0b3afd667df291'
37 'de7626ea6355691cb89e7f119097ba62c7519546f2c5f1b6c1afc56efd4429ae'
38 '72c4f7b468a5ed39038074c757fe5d34a3e364192536b0a3659ae7fdb4789d2c'
39 'de607fcaf2c36dcaf46856b2d29cf794203a59cad322c62e1d493312cc49b984')
43 # apply patch from the source array (should be a pacman feature)
45 for filename in "${source[@]}"; do
46 if [[ "$filename" =~ \.patch$ ]]; then
47 msg2 "Applying patch ${filename##*/}"
48 patch -p1 -N -i "$srcdir/${filename##*/}"
68 make DESTDIR="$pkgdir" install
69 install -dm755 "$pkgdir/usr/share/doc/ulogd"
70 install -Dm644 ulogd.conf "$pkgdir/usr/share/doc/ulogd/ulogd.conf"
71 install -m644 doc/*.{table,sql} "$pkgdir/usr/share/doc/ulogd"
73 install -Dm644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
74 install -Dm644 $pkgname.logrotate "$pkgdir/etc/logrotate.d/$pkgname"
75 install -Dm644 $pkgname.conf "$pkgdir/etc/$pkgname.conf"
78 # vim:set ts=2 sw=2 et: