diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
1 files changed, 28 insertions, 17 deletions
@@ -4,24 +4,26 @@ # Contributor: Aaron Griffin <aaron@archlinux.org> pkgname=syslog-ng-nosystemd -pkgver=3.20.1 -pkgrel=2 +pkgver=3.21.1 +pkgrel=1 pkgdesc="Next-generation syslogd with advanced networking and filtering capabilities" arch=('i686' 'x86_64') license=('GPL2' 'LGPL2.1') groups=('eudev-base') url="https://www.syslog-ng.com/products/open-source-log-management/" -depends=('awk' 'glib2' 'libcap' 'libdbi' 'libnsl' 'udev') -makedepends=('flex' 'pkg-config' 'libxslt' 'json-c' 'mongo-c-driver' - 'librabbitmq-c' 'python' 'libesmtp' 'hiredis') +depends=('awk' 'glib2' 'libcap' 'libnsl' 'udev' 'json-c' 'curl' 'libnet') +makedepends=('flex' 'pkg-config' 'libxslt' 'mongo-c-driver' 'librabbitmq-c' + 'python' 'libesmtp' 'hiredis' 'libdbi' 'geoip' 'libmaxminddb') optdepends=('logrotate: for rotating log files' - 'json-c: for json-plugin' - 'curl: for the HTTP module' + 'libdbi: for the SQL plugin' 'librabbitmq-c: for the AMQP plugin' 'mongo-c-driver: for the MongoDB plugin' 'python: for the Python plugin' 'libesmtp: for the SMTP plugin' 'hiredis: fir the redis plugin' + 'geoip: for the GeoIP plugin' + 'libmaxminddb: for the GeoIP2 plugin' + 'python: for Python-based plugins' 'syslog-ng-openrc: syslog-ng openrc initscript') provides=("syslog-ng=${pkgver}") replaces=('syslog-ng' 'syslog-ng-eudev' 'eventlog') @@ -35,15 +37,26 @@ source=(https://github.com/balabit/syslog-ng/releases/download/syslog-ng-$pkgver syslog-ng.conf.d syslog-ng.logrotate syslog-ng.rc) -sha256sums=('a65858afe9c649119a23ff61669945cab8692a045ee8259e8ee666445c8fbda0' - '52c8d7bfbc6a360b6cdc03dcb15d43c08b8940f672cdaa584b5d05c0a0bf3d74' +sha256sums=('8d163da5ad79cf3a5f043b2ed0fe18a4888d0d740542703bf2508f0b9996cd25' + '9175deae0b16c0c8a501919c533695254afefd52daf1dae229077cd8f71d0cd9' 'fe6ebe5c281b34bad201d9206e607857db9a5a78f03bb4dc4440584dca610f61' '93c935eca56854011ea9e353b7a1da662ad40b2e8452954c5b4b5a1d5b2d5317' 'db643d69e840dfd5d7849e857291f15fd60913527402fde806ce3911e3523063') +prepare() { + cd "syslog-ng-$pkgver" + + # the version in pkg-config is 0.0.0 and so it won't detect the flags without + # this. since your version is newer this is an easy fix for now, but should + # eventually be removed when this bug is fixed: + # https://bugs.archlinux.org/task/61888 + sed -i -e 's|^LMC_MIN_VERSION="1.0.0"|LMC_MIN_VERSION="0.0.0"|' configure.ac configure +} + build() { cd "syslog-ng-$pkgver" + ./autogen.sh ./configure \ --prefix=/usr \ --sysconfdir=/etc/syslog-ng \ @@ -52,14 +65,15 @@ build() { --localstatedir=/var/lib/syslog-ng \ --datadir=/usr/share \ --with-pidfile-dir=/run \ - --disable-spoof-source \ + --enable-spoof-source \ --enable-ipv6 \ - --enable-sql \ - --enable-smtp \ --enable-manpages \ + --enable-all-modules \ + --disable-java \ + --disable-java-modules \ + --disable-riemann \ + --with-python=3 \ --with-jsonc=system \ - --with-mongoc=system \ - --with-librabbitmq-client=system \ --disable-systemd make @@ -73,7 +87,4 @@ package() { 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/initscripts/syslog-ng" - - # See http://lists.balabit.hu/pipermail/syslog-ng/2016-February/022667.html - rm -r "$pkgdir/usr/share/syslog-ng/include/scl/cim" } |