summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-06-27 02:50:51 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-06-27 02:50:51 +0000
commitb3cecf32b46921471944e9e6b15545f79d8cbff1 (patch)
tree8c827b0cafffa5960e516a61b5f75e2429b204d2
parentlibtool uber-patch (diff)
Fix detection of sparc64.
Obtained from: OpenBSD
Notes
Notes: svn path=/head/; revision=83697
-rw-r--r--security/snort/Makefile1
-rw-r--r--security/snort/files/patch-src_preprocessors_spp_frag2_c13
-rw-r--r--security/snort/files/patch-src_preprocessors_spp_stream4_c13
3 files changed, 27 insertions, 0 deletions
diff --git a/security/snort/Makefile b/security/snort/Makefile
index 99b96151b1f0..a3d3614f9a4c 100644
--- a/security/snort/Makefile
+++ b/security/snort/Makefile
@@ -7,6 +7,7 @@
PORTNAME= snort
PORTVERSION= 2.0.0
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.snort.org/dl/
diff --git a/security/snort/files/patch-src_preprocessors_spp_frag2_c b/security/snort/files/patch-src_preprocessors_spp_frag2_c
new file mode 100644
index 000000000000..9da49cfeb13d
--- /dev/null
+++ b/security/snort/files/patch-src_preprocessors_spp_frag2_c
@@ -0,0 +1,13 @@
+$OpenBSD: patch-src_preprocessors_spp_frag2_c,v 1.1 2003/06/24 17:02:38 pvalchev Exp $
+--- src/preprocessors/spp_frag2.c.orig Wed Apr 9 09:45:15 2003
++++ src/preprocessors/spp_frag2.c Mon Jun 23 17:00:19 2003
+@@ -93,7 +93,8 @@ void Frag2Init(u_char *args);
+ #define FRAG2_TTL_LIMIT 5
+ #define FRAG2_MIN_TTL 0
+
+-#if defined (SOLARIS) || defined (SUNOS)
++#if defined (SOLARIS) || defined (SUNOS) || defined (__sparc__) || \
++ defined (__sparc64__)
+ #define SPARC_TWIDDLE 2
+ #else
+ #define SPARC_TWIDDLE 0
diff --git a/security/snort/files/patch-src_preprocessors_spp_stream4_c b/security/snort/files/patch-src_preprocessors_spp_stream4_c
new file mode 100644
index 000000000000..fa6dc3b060a5
--- /dev/null
+++ b/security/snort/files/patch-src_preprocessors_spp_stream4_c
@@ -0,0 +1,13 @@
+$OpenBSD: patch-src_preprocessors_spp_stream4_c,v 1.1 2003/06/24 17:02:38 pvalchev Exp $
+--- src/preprocessors/spp_stream4.c.orig Mon Jun 23 16:59:22 2003
++++ src/preprocessors/spp_stream4.c Mon Jun 23 17:00:46 2003
+@@ -153,7 +153,8 @@ extern int *file_line;
+ /* We must twiddle to align the offset the ethernet header and align
+ the IP header on solaris -- maybe this will work on HPUX too.
+ */
+-#if defined (SOLARIS) || defined (SUNOS) || defined (HPUX)
++#if defined (SOLARIS) || defined (SUNOS) || defined (HPUX) || \
++ defined (__sparc__) || defined(__sparc64__)
+ #define SPARC_TWIDDLE 2
+ #else
+ #define SPARC_TWIDDLE 0