diff options
author | Viktor Tusa <tusavik@gmail.com> | 2017-08-11 12:44:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-08-25 23:43:15 +0000 |
commit | 61f844af270f2da263a413e293d0030857f3c3e1 (patch) | |
tree | 3ea1549011605d921ce8e1ff0c561be658af268d | |
parent | c30ff3f2d86c9d4bac58699c21332097302547eb (diff) | |
download | aports-61f844af270f2da263a413e293d0030857f3c3e1.tar.bz2 aports-61f844af270f2da263a413e293d0030857f3c3e1.tar.xz |
main/syslog-ng: Add subpackage with JSON plugin
-rw-r--r-- | main/syslog-ng/APKBUILD | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/main/syslog-ng/APKBUILD b/main/syslog-ng/APKBUILD index a8a2441ddf..c2d9c41861 100644 --- a/main/syslog-ng/APKBUILD +++ b/main/syslog-ng/APKBUILD @@ -2,16 +2,16 @@ # Maintainer: jv <jens@eisfair.org> pkgname=syslog-ng pkgver=3.9.1 -pkgrel=1 +pkgrel=2 pkgdesc="Next generation logging daemon" url="http://www.balabit.com" arch="all !aarch64" license="GPLv2" depends="" -depends_dev="glib-dev eventlog-dev pcre-dev libressl-dev python2-dev hiredis-dev" +depends_dev="glib-dev eventlog-dev pcre-dev libressl-dev python2-dev hiredis-dev json-c-dev" makedepends="$depends_dev" install="$pkgname.post-install" -subpackages="" +subpackages="$pkgname-json" source="https://github.com/balabit/syslog-ng/releases/download/syslog-ng-${pkgver}/syslog-ng-${pkgver}.tar.gz syslog-ng.logrotate @@ -40,7 +40,7 @@ build() { --disable-sql \ --enable-redis \ --disable-mongodb \ - --disable-json \ + --enable-json \ || return 1 make || return 1 } @@ -66,6 +66,12 @@ package() { install -D -m644 "$srcdir"/syslog-ng.logrotate ${pkgdir}/etc/logrotate.d/syslog-ng || return 1 } +json() { + pkgdesc="JSON plugin for syslog-ng" + mkdir -p "$subpkgdir"/usr/lib/syslog-ng/ + mv "$pkgdir"/usr/lib/syslog-ng/libjson*.so "$subpkgdir"/usr/lib/syslog-ng +} + md5sums="1b48da9ef620cf06e55e481b5abb677a syslog-ng-3.9.1.tar.gz 8916d55f8213d2746e8c2a6a89c29d6c syslog-ng.logrotate 3fd33c45b809002a9738ccdebe20a6b4 syslog-ng.initd |