diff options
author | Sergio Prado <sergio.prado@e-labworks.com> | 2018-04-01 17:16:36 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-04-01 18:42:21 +0200 |
commit | e80c892427d528253a1a69ba24db44be2eea66ba (patch) | |
tree | d0f467959e96f23e9f1d3cca9368ab9bdec3f3cd /package/snort/0001-configure.in-Avoid-path-poisoning-with-libpcap.patch | |
parent | bcaed9ea7b030068d2a6126be9d3c63e84bc8bb9 (diff) | |
download | buildroot-e80c892427d528253a1a69ba24db44be2eea66ba.tar.gz buildroot-e80c892427d528253a1a69ba24db44be2eea66ba.zip |
package/snort: new package
Tested on Beaglebone Black.
Build-tested with test-pkg.
Patch to fix cross-compilation errors submitted upstream [1].
[1] https://lists.snort.org/pipermail/snort-devel/2018-January/011025.html
Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
[Romain:
- split patch by build issues
- convert AC_RUN_IFELSE to AC_CHECK_MEMBERS (ThomasP)
- convert AC_RUN_IFELSE to AC_COMPILE_IFELSE (ThomasP)
- remove most make variable from SNORT_CONF_ENV
- remove SNORT_SOURCE default value]
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/snort/0001-configure.in-Avoid-path-poisoning-with-libpcap.patch')
-rw-r--r-- | package/snort/0001-configure.in-Avoid-path-poisoning-with-libpcap.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/package/snort/0001-configure.in-Avoid-path-poisoning-with-libpcap.patch b/package/snort/0001-configure.in-Avoid-path-poisoning-with-libpcap.patch new file mode 100644 index 0000000000..286b6f5883 --- /dev/null +++ b/package/snort/0001-configure.in-Avoid-path-poisoning-with-libpcap.patch @@ -0,0 +1,35 @@ +From 732459ca3423799ae3386df3de3f5d6ea2af1b95 Mon Sep 17 00:00:00 2001 +From: Romain Naour <romain.naour@smile.fr> +Date: Sun, 1 Apr 2018 15:18:51 +0200 +Subject: [PATCH] configure.in: Avoid path poisoning with libpcap + +Prevent usage of unsafe libpcap header path when cross compiling. + +Signed-off-by: Romain Naour <romain.naour@smile.fr> +Cc: Sergio Prado <sergio.prado@e-labworks.com> +--- +From http://patchwork.ozlabs.org/patch/860363/ +--- + configure.in | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/configure.in b/configure.in +index 4b3a5db..1e940b1 100644 +--- a/configure.in ++++ b/configure.in +@@ -70,8 +70,10 @@ case "$host" in + *-linux*) + linux="yes" + AC_DEFINE([LINUX],[1],[Define if Linux]) +- AC_SUBST(extra_incl) +- extra_incl="-I/usr/include/pcap" ++ if test -z "x$with_libpcap_includes"; then ++ AC_SUBST(extra_incl) ++ extra_incl="-I/usr/include/pcap" ++ fi + ;; + *-hpux10*|*-hpux11*) + AC_DEFINE([HPUX],[1],[Define if HP-UX 10 or 11]) +-- +2.14.3 + |