summaryrefslogtreecommitdiff
path: root/pcr/ulogd2/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-12-31 17:29:39 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-12-31 17:29:39 -0300
commit6f102d1647580e0bb9513c124b26a64c77da4f15 (patch)
tree0340f1f588be251183fe2b251bdba778f2c85c22 /pcr/ulogd2/PKGBUILD
parent433900b14f11dc9ee55b72e8e5946bf47f65b636 (diff)
parentb6cb10de275cea63bab0bee2a98342afa4fdc4ee (diff)
downloadabslibre-6f102d1647580e0bb9513c124b26a64c77da4f15.tar.gz
abslibre-6f102d1647580e0bb9513c124b26a64c77da4f15.tar.bz2
abslibre-6f102d1647580e0bb9513c124b26a64c77da4f15.zip
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Diffstat (limited to 'pcr/ulogd2/PKGBUILD')
-rw-r--r--pcr/ulogd2/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/pcr/ulogd2/PKGBUILD b/pcr/ulogd2/PKGBUILD
new file mode 100644
index 000000000..c00c462e5
--- /dev/null
+++ b/pcr/ulogd2/PKGBUILD
@@ -0,0 +1,42 @@
+# Contributor: Andrzej Boreczko <0rion@wp.pl>
+# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO>
+
+pkgname=ulogd2
+pkgver=2.0.0
+pkgrel=6
+pkgdesc="Userspace Packet Logging for netfilter"
+arch=(i686 x86_64)
+url="http://www.netfilter.org/projects/ulogd/index.html"
+license=('GPL')
+depends=('libnetfilter_conntrack>=1.0.0' 'libnetfilter_log>=1.0.0' 'libnfnetlink>=1.0.0' 'libmnl>=1.0.0' 'libnetfilter_acct>=1.0.0')
+optdepends=('ulogd2_output_mysql: MySQL output' 'ulogd2_output_pgsql: PostgreSQL output' \
+ 'ulogd2_output_sqlite3: Sqlite3 output' 'ulogd2_output_pcap: libpcap-style logfiles output' \
+ 'ulogd2_output_dbi: Libdbi framework output')
+conflicts=('ulogd>1.24')
+backup=('etc/ulogd2.conf')
+source=("http://www.netfilter.org/projects/ulogd/files/ulogd-${pkgver}.tar.bz2" 'ulogd2' 'logrotate')
+
+build() {
+ export MAKEFLAGS="-j1"
+ cd $startdir/src/ulogd-${pkgver}
+ ./configure --prefix=/usr --sysconfdir=/etc --with-mysql \
+ --with-pgsql --with-dbi --program-suffix=2
+ make || return 1
+}
+
+package() {
+ cd $startdir/src/ulogd-${pkgver}
+ make DESTDIR=$startdir/pkg install || return 1
+ rm $startdir/pkg/usr/lib/ulogd/*.la
+ [ -f $startdir/pkg/usr/lib/ulogd/ulogd_output_MYSQL.so ] && rm $startdir/pkg/usr/lib/ulogd/ulogd_output_MYSQL.*
+ [ -f $startdir/pkg/usr/lib/ulogd/ulogd_output_PGSQL.so ] && rm $startdir/pkg/usr/lib/ulogd/ulogd_output_PGSQL.*
+ [ -f $startdir/pkg/usr/lib/ulogd/ulogd_output_SQLITE3.so ] && rm $startdir/pkg/usr/lib/ulogd/ulogd_output_SQLITE3.*
+ [ -f $startdir/pkg/usr/lib/ulogd/ulogd_output_PCAP.so ] && rm $startdir/pkg/usr/lib/ulogd/ulogd_output_PCAP.*
+ [ -f $startdir/pkg/usr/lib/ulogd/ulogd_output_DBI.so ] && rm $startdir/pkg/usr/lib/ulogd/ulogd_output_DBI.*
+ install -D -m755 $startdir/src/ulogd2 $startdir/pkg/etc/rc.d/ulogd2
+ sed 's/\/var\/log\/ulogd.log/\/var\/log\/ulogd2.log/' ulogd.conf > $startdir/pkg/etc/ulogd2.conf
+ mkdir -p $startdir/pkg/usr/share/ulogd2
+ install -m644 doc/*.table $startdir/pkg/usr/share/ulogd2
+ install -m644 doc/*.sql $startdir/pkg/usr/share/ulogd2
+ install -D -m644 ${srcdir}/logrotate $pkgdir/etc/logrotate.d/ulogd2
+}