mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
54 lines
1.9 KiB
Bash
54 lines
1.9 KiB
Bash
# $Id: PKGBUILD 70024 2010-02-24 03:14:28Z paul $
|
|
# Maintainer: Aaron Griffin <aaron@archlinux.org>
|
|
# Contributor: Judd Vinet <jvinet@zeroflux.org>
|
|
|
|
pkgname=syslog-ng
|
|
pkgver=3.0.4
|
|
pkgrel=5
|
|
pkgdesc="Next-generation syslogd with advanced networking and filtering capabilities"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL2')
|
|
groups=('base')
|
|
url="http://www.balabit.com/network-security/syslog-ng/"
|
|
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.rc)
|
|
install=syslog-ng.install
|
|
md5sums=('86c39779261545d2289e9c309e262b8d'
|
|
'e02be6637d0c3b5484d4597ce049ae39'
|
|
'735636090be4582885974542d2a75855'
|
|
'9bd98250cfa49e13fa3fa731b6040549')
|
|
|
|
build() {
|
|
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="-Wl,--as-needed -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 || return 1
|
|
make DESTDIR=$pkgdir install || return 1
|
|
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
|
|
}
|