diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2019-01-26 20:17:56 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2019-01-26 23:20:28 +0100 |
commit | 699fb7fcf40788d816f7c68604cac7c39134c550 (patch) | |
tree | 99396c92b3f5fe42e8dad66f55706bd1467989d1 | |
parent | 0542a7f3147d60ef45f7b043f83696a4d17ba71c (diff) | |
download | aports-699fb7fcf40788d816f7c68604cac7c39134c550.tar.bz2 aports-699fb7fcf40788d816f7c68604cac7c39134c550.tar.xz |
main/syslog-ng: add subpackage -scl
-rw-r--r-- | main/syslog-ng/APKBUILD | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/main/syslog-ng/APKBUILD b/main/syslog-ng/APKBUILD index 373e1c3f4e..ad97d0399f 100644 --- a/main/syslog-ng/APKBUILD +++ b/main/syslog-ng/APKBUILD @@ -25,7 +25,13 @@ makedepends=" rabbitmq-c-dev " install="$pkgname.post-install $pkgname.post-upgrade" -subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc $pkgname-python2:_python2" +subpackages=" + $pkgname-scl::noarch + $pkgname-dev + $pkgname-doc + $pkgname-openrc + $pkgname-python2:_python2 + " source="https://github.com/balabit/syslog-ng/releases/download/syslog-ng-$pkgver/syslog-ng-$pkgver.tar.gz syslog-ng.logrotate syslog-ng.initd @@ -109,7 +115,6 @@ package() { make -j1 DESTDIR="$pkgdir" install rm -rf "$pkgdir"/etc/syslog-ng rm -rf "$pkgdir"/run - rm -rf "$pkgdir"/usr/share/syslog-ng/include rm -rf "$pkgdir"/usr/lib/$pkgname/libtest # getent module doesn't build properly as musl doesn't support reentrant # getprotoby[number|name] funcs. The provided compat lib only patches @@ -125,6 +130,13 @@ package() { install -D -m644 "$srcdir"/syslog-ng.logrotate "$pkgdir"/etc/logrotate.d/syslog-ng } +scl() { + pkgdesc="$pkgdesc (configuration library)" + depends="$pkgname=$pkgver-r$pkgrel" + + _submv usr/share/syslog-ng/include/scl +} + dev() { default_dev |