From: Bernd Kuhls Date: Sat, 20 Feb 2016 19:51:17 +0000 (+0100) Subject: package/syslog-ng: add optional support for geoip X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1811fd8cb1c681d1ff59dacb1c65992190ef926e;p=buildroot.git package/syslog-ng: add optional support for geoip When geoip was compiled before, syslog-ng will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/lib/syslog-ng/libgeoip-plugin.so | grep NEEDED | sort 0x0000000000000001 (NEEDED) Shared library: [ld64-uClibc.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.1] 0x0000000000000001 (NEEDED) Shared library: [libGeoIP.so.1] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.1] 0x0000000000000001 (NEEDED) Shared library: [librt.so.1] 0x0000000000000001 (NEEDED) Shared library: [libsyslog-ng-3.7.so.0] Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- diff --git a/package/syslog-ng/syslog-ng.mk b/package/syslog-ng/syslog-ng.mk index f11d8957ac..1acaad8dea 100644 --- a/package/syslog-ng/syslog-ng.mk +++ b/package/syslog-ng/syslog-ng.mk @@ -20,6 +20,13 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y) SYSLOG_NG_DEPENDENCIES += busybox endif +ifeq ($(BR2_PACKAGE_GEOIP),y) +SYSLOG_NG_DEPENDENCIES += geoip +SYSLOG_NG_CONF_OPTS += --enable-geoip +else +SYSLOG_NG_CONF_OPTS += --disable-geoip +endif + ifeq ($(BR2_PACKAGE_LIBCAP),y) SYSLOG_NG_DEPENDENCIES += libcap SYSLOG_NG_CONF_OPTS += --enable-linux-caps