summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Marichez <falco@gentoo.org>2007-04-07 00:47:12 +0000
committerRaphaël Marichez <falco@gentoo.org>2007-04-07 00:47:12 +0000
commit4bbc643f6a5c726668abb8bb7a65f7bee3915085 (patch)
treecfd7d5b85e7d816b14b035b84c114895297e45e4 /net-analyzer/snort
parentman page changes for Gentoo. migrate plugdev policy patch to new patchset. (diff)
downloadgentoo-2-4bbc643f6a5c726668abb8bb7a65f7bee3915085.tar.gz
gentoo-2-4bbc643f6a5c726668abb8bb7a65f7bee3915085.tar.bz2
gentoo-2-4bbc643f6a5c726668abb8bb7a65f7bee3915085.zip
Fix #173594 ip6 header redeclaration if libdnet
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-analyzer/snort')
-rw-r--r--net-analyzer/snort/ChangeLog6
-rw-r--r--net-analyzer/snort/files/snort-2.6.1.4-libdnet-ip6.patch18
-rw-r--r--net-analyzer/snort/snort-2.6.1.4.ebuild3
3 files changed, 25 insertions, 2 deletions
diff --git a/net-analyzer/snort/ChangeLog b/net-analyzer/snort/ChangeLog
index e341321e5b88..7c770e1214c5 100644
--- a/net-analyzer/snort/ChangeLog
+++ b/net-analyzer/snort/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-analyzer/snort
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.126 2007/04/06 17:05:26 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.127 2007/04/07 00:47:12 falco Exp $
+
+ 07 Apr 2007; Raphael Marichez <falco@gentoo.org>
+ +files/snort-2.6.1.4-libdnet-ip6.patch, snort-2.6.1.4.ebuild:
+ Fix #173594, ip6 header redeclaration if libdnet.
*snort-2.6.1.4 (06 Apr 2007)
diff --git a/net-analyzer/snort/files/snort-2.6.1.4-libdnet-ip6.patch b/net-analyzer/snort/files/snort-2.6.1.4-libdnet-ip6.patch
new file mode 100644
index 000000000000..e580ecb0669c
--- /dev/null
+++ b/net-analyzer/snort/files/snort-2.6.1.4-libdnet-ip6.patch
@@ -0,0 +1,18 @@
+--- snort-2.6.1.4-orig/src/decode.h 2007-03-19 14:31:33.000000000 +0100
++++ snort-2.6.1.4/src/decode.h 2007-04-07 02:32:02.851976653 +0200
+@@ -885,6 +885,7 @@
+ #endif
+ #endif
+
++#ifndef DNET_IP6_H
+ struct ip6_hdr
+ {
+ union
+@@ -908,6 +909,7 @@
+ #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen
+ #define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt
+ #define ip6_hlim ip6_ctlun.ip6_un1.ip6_un1_hlim
++#endif
+ #define ip6_hops ip6_ctlun.ip6_un1.ip6_un1_hlim
+
+ /* Fragment header */
diff --git a/net-analyzer/snort/snort-2.6.1.4.ebuild b/net-analyzer/snort/snort-2.6.1.4.ebuild
index 0d84fdfe4ff8..3abf4c0dce46 100644
--- a/net-analyzer/snort/snort-2.6.1.4.ebuild
+++ b/net-analyzer/snort/snort-2.6.1.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.6.1.4.ebuild,v 1.1 2007/04/06 17:05:26 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.6.1.4.ebuild,v 1.2 2007/04/07 00:47:12 falco Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
@@ -62,6 +62,7 @@ src_unpack() {
epatch "${FILESDIR}/${PN}-2.6.1.2-libdir.patch"
epatch "${FILESDIR}/${PN}-2.6.1.1-libnet.patch"
+ epatch "${FILESDIR}/${P}-libdnet-ip6.patch"
use react && epatch "${FILESDIR}/${PN}-2.6.1.2-react.patch"
sed -i "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort/rules:" \
etc/snort.conf