diff options
author | root <root@rshg054.dnsready.net> | 2012-09-07 00:03:53 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-09-07 00:03:53 +0000 |
commit | ed51a8c1611ffa602f5f9628c858f6edbc218fc8 (patch) | |
tree | 9da1c83153c6a7313cc5fbdc6a361083051e9f1d /community/ulogd | |
parent | 3a491cfc574c49ee5f006f74323b6d432d372ab8 (diff) |
Fri Sep 7 00:03:53 UTC 2012
Diffstat (limited to 'community/ulogd')
-rw-r--r-- | community/ulogd/PKGBUILD | 16 | ||||
-rw-r--r-- | community/ulogd/ulogd.conf.min | 20 | ||||
-rw-r--r-- | community/ulogd/ulogd.service | 12 |
3 files changed, 44 insertions, 4 deletions
diff --git a/community/ulogd/PKGBUILD b/community/ulogd/PKGBUILD index 26a00d382..bed484f6c 100644 --- a/community/ulogd/PKGBUILD +++ b/community/ulogd/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 74257 2012-07-23 07:12:03Z spupykin $ +# $Id: PKGBUILD 75920 2012-09-05 14:02:57Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Maintainer: Sebastien Luttringer <seblu+arch@seblu.net> # Contributor: Dale Blount <dale@archlinux.org> @@ -6,12 +6,13 @@ pkgname=ulogd pkgver=2.0.0 -pkgrel=4 +pkgrel=5 pkgdesc='Userspace Packet Logging for netfilter' arch=('i686' 'x86_64') url='http://www.netfilter.org/projects/ulogd/index.html' license=('GPL2') depends=('libmnl') +backup=('etc/ulogd.conf') makedepends=('libmysqlclient' 'postgresql-libs' 'sqlite' 'libpcap' 'libdbi' 'libnetfilter_acct' 'libnetfilter_log' 'libnetfilter_conntrack' 'linuxdoc-tools' 'groff' 'texlive-core') @@ -26,10 +27,14 @@ optdepends=('postgresql-libs' options=('!libtool') source=("ftp://ftp.netfilter.org/pub/$pkgname/$pkgname-$pkgver.tar.bz2" 'rc' - 'logrotate') + 'logrotate' + 'ulogd.conf.min' + 'ulogd.service') md5sums=('211e68781e3860959606fc94b97cf22e' 'c42230c1cabf5dd9b80bf9a0fd87ca7e' - 'dd32eeee0949adff4188544419acd17e') + 'dd32eeee0949adff4188544419acd17e' + 'c21531312f95e790ed19aa267a17d35a' + '13a1227052322b4c17b258ed358f055e') build() { cd $pkgname-$pkgver @@ -51,4 +56,7 @@ package() { install -D -m644 "$srcdir/logrotate" "$pkgdir/etc/logrotate.d/ulogd" install -D -m755 "$srcdir/rc" "$pkgdir/etc/rc.d/ulogd" + + install -Dm0644 $srcdir/ulogd.conf.min $pkgdir/etc/ulogd.conf + install -Dm0644 $srcdir/ulogd.service $pkgdir/usr/lib/systemd/system/ulogd.service } diff --git a/community/ulogd/ulogd.conf.min b/community/ulogd/ulogd.conf.min new file mode 100644 index 000000000..822575613 --- /dev/null +++ b/community/ulogd/ulogd.conf.min @@ -0,0 +1,20 @@ +[global] +nlgroup=1 +logfile="/var/log/ulogd.log" +loglevel=5 +rmem=131071 +bufsize=150000 + +plugin="/usr/lib/ulogd/ulogd_inppkt_ULOG.so" +plugin="/usr/lib/ulogd/ulogd_raw2packet_BASE.so" +plugin="/usr/lib/ulogd/ulogd_filter_IP2STR.so" +plugin="/usr/lib/ulogd/ulogd_filter_PRINTPKT.so" +plugin="/usr/lib/ulogd/ulogd_output_LOGEMU.so" + +stack=ulog1:ULOG,base1:BASE,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU + +[ulog1] +nlgroup=1 + +[emu1] +file=/var/log/ulogd.syslogemu diff --git a/community/ulogd/ulogd.service b/community/ulogd/ulogd.service new file mode 100644 index 000000000..3984bbced --- /dev/null +++ b/community/ulogd/ulogd.service @@ -0,0 +1,12 @@ +[Unit] +Description=Netfilter Ulogd daemon +After=network.target + +[Service] +Type=forking +User=root +ExecStart=/usr/sbin/ulogd -d +PIDFile=/var/run/ulogd.pid + +[Install] +WantedBy=multi-user.target |