From patchwork Thu Sep 8 10:01:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 667444 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sVG804tYbz9t26 for ; Thu, 8 Sep 2016 20:01:36 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=g5VJy6P5; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C4A7B87267; Thu, 8 Sep 2016 10:01:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i1nGbz31Ljpl; Thu, 8 Sep 2016 10:01:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 21BA8870C9; Thu, 8 Sep 2016 10:01:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B27F71C1722 for ; Thu, 8 Sep 2016 10:01:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id AD0108702E for ; Thu, 8 Sep 2016 10:01:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id owitFQfLCkcX for ; Thu, 8 Sep 2016 10:01:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f66.google.com (mail-pa0-f66.google.com [209.85.220.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id 1FC968687E for ; Thu, 8 Sep 2016 10:01:32 +0000 (UTC) Received: by mail-pa0-f66.google.com with SMTP id ez1so2190553pab.3 for ; Thu, 08 Sep 2016 03:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=mjFksC9tU89OKOX+nTsY/iFyauqKYGi1gi9erbnzpDA=; b=g5VJy6P5exDIZTwHXkz+zSDlJfFb2mgmUSeOH2QmVMl5zEOP8lhyP1pYEY/3WelFjm POsJua+IcSRaHrUaiiR2A6sISOlbf+etGdNtUfqY/5gTvL1JGjh4PFFND7g3Q1ecSJ4e hgGxv1EAOtSQugykUApfw7TQ15wncleWW5YeClt2BD2Blq2iV8FRWfrO2pjF0ZHeAt6m GYuneewtmSwlx1FN2w+BoEcvd7jqDsY/tNFPMOTCLbtjwmXGm+QRYIN7myAIiMIhWkOT NVCW7s+vZGyRxjCdTKpw8rmVgME3EyOHIWXkXrCsRYyPthvrsgLTX86HFtMVtottTI7b 1XkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mjFksC9tU89OKOX+nTsY/iFyauqKYGi1gi9erbnzpDA=; b=cSqtZweAITRLW37NQIK/pou1O9m3iRPoyY2fSB2bW+CA5VWfactW76ij31KoV7F1RS csxkopxReceBCMMiwo5TI4heK3r+noYlqia+ngyLd736iZwyZL7ciT6r/LGLnFn5Cvrw N2gN7HfjtG/l41K/xahILnzFTrxP3/zSQ564CQxCwVRJJ2Jo1wuO56yI+iYpVYkTgkmj e7+Lqt7D9b+hW1/HJQaNoB4NvTOan1AHAA1upQVooy3L1FhN9w8ZYIJUFZB3aEMcn9YW ekpuFcKdZgTwIW22ZFHu3e+d7qK0sAdt364DEUaLydl0tEnFINivLCwsqrxZ76l3XjQb jwPw== X-Gm-Message-State: AE9vXwOXMWF+pqWXzLTDDIpsuBJg1RxtZVSElNRnSQJH/9CW6UasCXYJM+gmyyCL1FpU5g== X-Received: by 10.66.100.162 with SMTP id ez2mr89295353pab.123.1473328891653; Thu, 08 Sep 2016 03:01:31 -0700 (PDT) Received: from chrisp-dl.ws.atlnz.lc (2-163-36-202-static.alliedtelesis.co.nz. [202.36.163.2]) by smtp.gmail.com with ESMTPSA id d9sm55179413pan.7.2016.09.08.03.01.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Sep 2016 03:01:30 -0700 (PDT) From: Chris Packham To: buildroot@buildroot.org Date: Thu, 8 Sep 2016 22:01:17 +1200 Message-Id: <20160908100118.5723-1-judge.packham@gmail.com> X-Mailer: git-send-email 2.9.2.518.ged577c6.dirty Subject: [Buildroot] [PATCH 1/2] syslog-ng: add optional support for libnet build X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- package/syslog-ng/syslog-ng.mk | 7 +++++++ 1 file changed, 7 insertions(+) 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 += \