diff mbox

[1/2] syslog-ng: add optional support for libnet build

Message ID 20160908100118.5723-1-judge.packham@gmail.com
State Accepted
Headers show

Commit Message

Chris Packham Sept. 8, 2016, 10:01 a.m. UTC
If libnet is included pass --enable-spoof-source to configure otherwise
pass --disable-spoof-source. This stops syslog-ng's configure from
enabling address spoofing based on the build host having libnet
installed.

Fixes:

  http://autobuild.buildroot.net/results/71c733e4a7275f3a1b79cd19065d94e77af0309b
  http://autobuild.buildroot.net/results/d16ba0b9ef75d5a676a26db788be31556b69772a
  http://autobuild.buildroot.net/results/9659d1db1a128b269459fd9b8be797a9efbd35af

Signed-off-by: Chris Packham <judge.packham@gmail.com>
---
 package/syslog-ng/syslog-ng.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Thomas Petazzoni Sept. 8, 2016, 7:58 p.m. UTC | #1
Hello,

On Thu,  8 Sep 2016 22:01:17 +1200, Chris Packham wrote:
> If libnet is included pass --enable-spoof-source to configure otherwise
> pass --disable-spoof-source. This stops syslog-ng's configure from
> enabling address spoofing based on the build host having libnet
> installed.
> 
> Fixes:
> 
>   http://autobuild.buildroot.net/results/71c733e4a7275f3a1b79cd19065d94e77af0309b
>   http://autobuild.buildroot.net/results/d16ba0b9ef75d5a676a26db788be31556b69772a
>   http://autobuild.buildroot.net/results/9659d1db1a128b269459fd9b8be797a9efbd35af
> 
> Signed-off-by: Chris Packham <judge.packham@gmail.com>
> ---
>  package/syslog-ng/syslog-ng.mk | 7 +++++++
>  1 file changed, 7 insertions(+)

Both applied, thanks!

Thomas
diff mbox

Patch

diff --git a/package/syslog-ng/syslog-ng.mk b/package/syslog-ng/syslog-ng.mk
index c11d3bd..7e4d407 100644
--- a/package/syslog-ng/syslog-ng.mk
+++ b/package/syslog-ng/syslog-ng.mk
@@ -69,6 +69,13 @@  ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
 SYSLOG_NG_DEPENDENCIES += util-linux
 endif
 
+ifeq ($(BR2_PACKAGE_LIBNET),y)
+SYSLOG_NG_DEPENDENCIES += libnet
+SYSLOG_NG_CONF_OPTS += --enable-spoof-source
+else
+SYSLOG_NG_CONF_OPTS += --disable-spoof-source
+endif
+
 ifeq ($(BR2_INIT_SYSTEMD),y)
 SYSLOG_NG_DEPENDENCIES += systemd
 SYSLOG_NG_CONF_OPTS += \