# $Id: PKGBUILD 173195 2012-12-12 17:17:00Z dreisner $ # Maintainer: Dave Reisner # Contributor: Eric BĂ©langer # Contributor: Aaron Griffin pkgname=syslog-ng pkgver=3.3.7 pkgrel=1 pkgdesc="Next-generation syslogd with advanced networking and filtering capabilities" arch=('i686' 'x86_64') license=('GPL2') url="http://www.balabit.com/network-security/syslog-ng/" depends=('awk' 'eventlog' 'glib2' 'libcap' 'openssl' 'systemd') makedepends=('flex' 'pkg-config') optdepends=('logrotate: for rotating log files') options=('!libtool') backup=('etc/syslog-ng/modules.conf' 'etc/syslog-ng/scl.conf' 'etc/syslog-ng/syslog-ng.conf' 'etc/conf.d/syslog-ng' 'etc/logrotate.d/syslog-ng') install=$pkgname.install source=("http://www.balabit.com/downloads/files/syslog-ng/sources/$pkgver/source/${pkgname}_$pkgver.tar.gz" syslog-ng.conf syslog-ng.conf.d syslog-ng.logrotate syslog-ng.rc) sha1sums=('06f09057c3dfb84eba381e0141f92565673ec0c8' 'db14f4937a821e449b769c938faf2275a7ef188e' '9b2eb6ea9e27c9f1b6c1c855be211ec3da51d3c8' '949128fe3d7f77a7aab99048061f885bc758000c' '94af81a84e3add6653755122cdd5080694de059d') build() { cd "$pkgname-$pkgver" ./configure \ --prefix=/usr \ --sysconfdir=/etc/syslog-ng \ --libexecdir=/usr/lib \ --localstatedir=/var/lib/syslog-ng \ --datadir=/usr/share/syslog-ng \ --with-pidfile-dir=/run \ --disable-spoof-source \ --enable-systemd \ --with-systemdsystemunitdir=/usr/lib/systemd/system make } package() { make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install install -dm755 "$pkgdir/var/lib/syslog-ng" "$pkgdir/etc/syslog-ng/patterndb.d" install -Dm644 "$srcdir/syslog-ng.conf" "$pkgdir/etc/syslog-ng/syslog-ng.conf" install -Dm644 "$srcdir/syslog-ng.logrotate" "$pkgdir/etc/logrotate.d/syslog-ng" install -Dm755 "$srcdir/syslog-ng.rc" "$pkgdir/etc/rc.d/syslog-ng" install -Dm644 "$srcdir/syslog-ng.conf.d" "$pkgdir/etc/conf.d/syslog-ng" }