# Obarun : 66 init/supervisor # Maintainer : Eric Vidal # Maintainer : Jean-Michel T.Dydak # PkgSource : url="https://framagit.org/pkg/obextra/syslog-ng" #----------------------------------------------------------------------------------------------- #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=syslog-ng pkgdesc="Next-generation syslogd with advanced networking and filtering capabilities" pkgver=3.27.1 pkgrel=3 url="https://www.syslog-ng.com/products/open-source-log-management/" track= target="$pkgname-$pkgver.tar.gz" source=(https://github.com/balabit/syslog-ng/releases/download/syslog-ng-$pkgver/${target} syslog-ng.conf syslog-ng.logrotate) #-------------------------------------| BUILD CONFIGURATION |----------------------------------- makedepends=( 'libxslt' 'mongo-c-driver' 'librabbitmq-c' 'python' 'libesmtp' 'hiredis' 'libdbi' 'libmaxminddb' 'net-snmp' 'librdkafka' 'libcap') checkdepends=( 'python-nose' 'python-ply') #--------------------------------------------| BUILD |------------------------------------------ build() { cd ${pkgname}-$pkgver ./autogen.sh ./configure --prefix=/usr \ --sysconfdir=/etc/syslog-ng \ --libexecdir=/usr/lib \ --sbindir=/usr/bin \ --localstatedir=/var/lib/syslog-ng \ --datadir=/usr/share/ \ --with-pidfile-dir=/run \ --disable-spoof-source \ --enable-ipv6 \ --enable-systemd=no \ --with-systemdsystemunitdir=no \ --enable-manpages \ --enable-all-modules \ --disable-java \ --disable-java-modules \ --disable-riemann \ --with-python=3 \ --with-jsonc=system make } #--------------------------------------------| CHECK |------------------------------------------ check() { cd ${pkgname}-$pkgver make check || /bin/true # unit test requires criterion } #-------------------------------------------| PACKAGE |----------------------------------------- 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" # this is not specific to systemd, the file can be sourced by any service file as classic bash operation install -Dm644 "$srcdir"/$pkgname-$pkgver/contrib/systemd/syslog-ng@default -t "$pkgdir"/etc/default } #------------------------------------| INSTALL CONFIGURATION |---------------------------------- arch=(x86_64) backup=('etc/syslog-ng/scl.conf' 'etc/syslog-ng/syslog-ng.conf' 'etc/logrotate.d/syslog-ng') depends=( 'awk' 'glib2' 'glib2' 'libnsl' 'json-c' 'curl' 'libnet') optdepends=('logrotate: for rotating log files' 'libdbi: for the SQL plugin' 'librabbitmq-c: for the AMQP plugin' 'mongo-c-driver: for the MongoDB plugin' 'libesmtp: for the SMTP plugin' 'hiredis: for the Redis plugin' 'libmaxminddb: for the GeoIP2 plugin' 'net-snmp: for the SNMP plugin' 'python: for Python-based plugins') conflicts=('eventlog') replaces=('eventlog') #-------------------------------------| SECURITY AND LICENCE |---------------------------------- license=('GPL2' 'LGPL2.1') sha1sums=('b083081bca113c1779ef8c5ef4eef20a3690be2a' 'a9b54de3e91921966562bd458db26dea135888ba' '949128fe3d7f77a7aab99048061f885bc758000c')