Subject: [alpine-devel] [PATCH] testing/syslog-ng: update to 3.6.1

From: Stuart Cardall <[email-masked]>
Date: Thu, 27 Nov 2014 16:36:09 +0000

update to 3.6.1 + docs subpkg
---
 testing/syslog-ng/APKBUILD | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/testing/syslog-ng/APKBUILD b/testing/syslog-ng/APKBUILD
index 63fce48..71389c8 100644
--- a/testing/syslog-ng/APKBUILD
+++ b/testing/syslog-ng/APKBUILD
@@ -1,17 +1,17 @@
 # Contributor: jv <[email-masked]>
 # Maintainer: jv <[email-masked]>
 pkgname=syslog-ng
-pkgver=2.1.4
-pkgrel=1
+pkgver=3.6.1
+pkgrel=0
 pkgdesc="Next generation logging daemon"
 url="http://www.balabit.com"
 arch="all"
 license="GPLv2"
 depends=""
-depends_dev="glib-dev libeventlog-dev"
+depends_dev="glib-dev libeventlog-dev pcre-dev"
 makedepends="$depends_dev"
 install="$pkgname.post-install"
-subpackages=""
+subpackages="$pkgname-doc"
 
 source="http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/${pkgver}/source/syslog-ng_${pkgver}.tar.gz
     syslog-ng.logrotate
@@ -33,6 +33,7 @@ build() {
     cd "$_builddir"
     ./configure --prefix=/usr \
     --sysconfdir=/etc/syslog-ng \
+    --localstatedir=/var \
     --enable-ipv6 \
     --disable-sql \
     --disable-mongodb \
@@ -44,7 +45,8 @@ build() {
 package() {
     cd "$_builddir"
     make -j1 DESTDIR=${pkgdir} install || return 1
-    rm -rf ${pkgdir}/usr/share
+    find ${pkgdir}/usr/share/* -type d -not -name 'man*' | xargs rm -rf
+    rm -f "$pkgdir"/usr/lib/*.la; rm -f "$pkgdir"/usr/lib/$pkgname/*.la
     install -D -m755 "$srcdir"/$pkgname.initd ${pkgdir}/etc/init.d/$pkgname || return 1
     install -D -m644 "$srcdir"/syslog-ng-destination.std ${pkgdir}/etc/syslog-ng/syslog-ng-destination.std || return 1
     install -D -m644 "$srcdir"/syslog-ng-filter.std ${pkgdir}/etc/syslog-ng/syslog-ng-filter.std || return 1
@@ -54,7 +56,7 @@ package() {
     install -D -m644 "$srcdir"/syslog-ng.logrotate ${pkgdir}/etc/logrotate.d/syslog-ng || return 1
 }
 
-md5sums="17c4c7725d2eab62b588395f1ed93f32  syslog-ng_2.1.4.tar.gz
+md5sums="45fa07be94b5afb16fd1a91af7b2bb7b  syslog-ng_3.6.1.tar.gz
 8916d55f8213d2746e8c2a6a89c29d6c  syslog-ng.logrotate
 91cb6aedf897eebcedd6b6250882d9bf  syslog-ng.initd
 f0b4a0b530e269c51bc63f5b9d817c9b  syslog-ng-destination.std
@@ -62,7 +64,7 @@ f0b4a0b530e269c51bc63f5b9d817c9b  syslog-ng-destination.std
 bc676f733ea162ea4de7a8c2a16c06ed  syslog-ng-log.std
 f15a2b7c8496038c29d3ca7adc8d4054  syslog-ng-options.std
 8c166661270cd8459897ca3df06066c9  syslog-ng-source.std"
-sha256sums="e2189c7dbf617f2fc883ab0a8a86100dbe7cb4853c6b39732d77e73f335b0502  syslog-ng_2.1.4.tar.gz
+sha256sums="a7823679038117eb63aff7b5cd66fc6a0adcef8e85cfaadc94c3cf2b66d774e8  syslog-ng_3.6.1.tar.gz
 a886b65863d72476504165e6a6dfe3d2922945d8cb61adb6b8eec73ac35d825e  syslog-ng.logrotate
 f24a042b7213873f9c3d09afc4a442dc61dee67e2d6ca72da387714f8daa0862  syslog-ng.initd
 bd3097c1d8ff6754df0d7e470659827ae4d6bf86976badf5aabe4d25504fd572  syslog-ng-destination.std
@@ -70,7 +72,7 @@ bd3097c1d8ff6754df0d7e470659827ae4d6bf86976badf5aabe4d25504fd572  syslog-ng-dest
 df30f0ce37bdf8cc0ac0fcc04800d7d14880bf3a19d01ab96220a325f1ab3943  syslog-ng-log.std
 8d925e7272a8d7dbda42694fe0e9c6fdc1bee6ffd9d4adf78e0ebb183658d4d4  syslog-ng-options.std
 51399e8d5d3a2d7b2d30f4adefe92776c9ddcae98d5189af9ddae1d2e66db8f3  syslog-ng-source.std"
-sha512sums="5ff5e3a36dbcb99a3b1b36cda3336764290bd9251379244f10a48bd396785d16ed9200d746acb66f69f471d9ce1e8ec2e337afdadd109d7eba0c12d0de403ae0  syslog-ng_2.1.4.tar.gz
+sha512sums="2d321b7b7e330019c9c5111d54ebdce273a054f3c8db2770e141a1119233ec6663e5c10a45a313602c7af6b7d7adaf70fe8f535617492837a4f4807bbc73bb1d  syslog-ng_3.6.1.tar.gz
 a062d1601f5215f60e2fc40c6ca498d768aa97af3647a9468731123a28fdd67962421b4412bfbe08a1123141b730cb78f102230ab72befec05ba7f398b39e27a  syslog-ng.logrotate
 7dc6af65b7c663b85aa4ad1ddb737a48e808631207330de8197afce7abb986d790a02ca65d86bd87d77fe1bbd3e3f9f4257be81ade047468a3ea9fe3f7e64c3a  syslog-ng.initd
 b51d8b3da9584b6cb5b5c023b5ca1085d8e4c2cfa56f6ed12fe6feb0f33a390b43825aaaf4dd74eb6b7765485fe42f7f21c74380b72de9ed2c7775787ab1e720  syslog-ng-destination.std
-- 
2.1.3

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---