diff options
Diffstat (limited to 'abs/core/syslog-ng/PKGBUILD')
-rw-r--r-- | abs/core/syslog-ng/PKGBUILD | 70 |
1 files changed, 46 insertions, 24 deletions
diff --git a/abs/core/syslog-ng/PKGBUILD b/abs/core/syslog-ng/PKGBUILD index 2602964..dc66813 100644 --- a/abs/core/syslog-ng/PKGBUILD +++ b/abs/core/syslog-ng/PKGBUILD @@ -1,34 +1,56 @@ -# $Id: PKGBUILD 2319 2008-05-31 21:01:41Z eric $ -# Maintainer: Judd Vinet <jvinet@zeroflux.org> +# $Id: PKGBUILD 87478 2010-08-14 05:35:10Z allan $ +# Maintainer: Aaron Griffin <aaron@archlinux.org> +# Contributor: Judd Vinet <jvinet@zeroflux.org> + pkgname=syslog-ng -_pkgver=2.0.10 -pkgver=2.0.9.10 -pkgrel=11 +pkgver=3.1.2 +pkgrel=1 pkgdesc="Next-generation syslogd with advanced networking and filtering capabilities" -arch=(i686 x86_64) -license=('GPL') +arch=('i686' 'x86_64') +license=('GPL2') groups=('base') url="http://www.balabit.com/network-security/syslog-ng/" -depends=('logrotate' 'glibc') -makedepends=('flex' 'glib2' 'eventlog' 'pkgconfig' 'tcp_wrappers') +depends=('glib2' 'eventlog' 'tcp_wrappers' 'openssl') +makedepends=('flex' 'pkgconfig') +optdepends=('logrotate') provides=('logger') backup=('etc/syslog-ng.conf' 'etc/logrotate.d/syslog-ng') -source=(http://www.balabit.com/downloads/files/syslog-ng/sources/${_pkgver}/source/${pkgname}_${_pkgver}.tar.gz \ - syslog-ng.conf syslog-ng.logrotate syslog-ng) -md5sums=('e5ca55796c11899739affa417ff8a71e' - 'ee95af3a4f969f3759e477289305c8c6' - '65d52180f1762e3985168fffa1faf0a8' +source=(http://www.balabit.com/downloads/files/syslog-ng/sources/$pkgver/source/$pkgname\_$pkgver.tar.gz + syslog-ng.conf + syslog-ng.logrotate + syslog-ng.rc) +install=syslog-ng.install +md5sums=('b9f45d9783a4ebeb84ec5acd158502fb' + 'e02be6637d0c3b5484d4597ce049ae39' + '735636090be4582885974542d2a75855' '9bd98250cfa49e13fa3fa731b6040549') build() { - cd $startdir/src/$pkgname-${_pkgver} - ./configure --prefix=/usr --sysconfdir=/etc \ - --localstatedir=/var/lib/syslog-ng --enable-tcp-wrapper \ - --disable-spoof-source - make || return 1 - make DESTDIR=$startdir/pkg install || return 1 - install -d $startdir/pkg/var/lib/syslog-ng - install -D -m644 ../syslog-ng.conf $startdir/pkg/etc/syslog-ng.conf - install -D -m644 ../syslog-ng.logrotate $startdir/pkg/etc/logrotate.d/syslog-ng - install -D -m755 ../syslog-ng $startdir/pkg/etc/rc.d/syslog-ng + cd $srcdir/$pkgname-$pkgver + + # NOTE - re-assess this with later releases + # FS#15787: syslog-ng does not write to files not owned by root + # Upstream: https://bugzilla.balabit.com/show_bug.cgi?id=52 + # Solution: --disable-linux-caps + + LDFLAGS="$LDFLAGS -Wl,--no-undefined" ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/lib/syslog-ng \ + --enable-tcp-wrapper \ + --with-pidfile-dir=/var/run \ + --disable-spoof-source \ + --disable-linux-caps + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install + install -dm755 $pkgdir/var/lib/syslog-ng + install -Dm644 $srcdir/syslog-ng.conf $pkgdir/etc/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 + # remove libexec + rm -rf $pkgdir/usr/libexec } |