diff options
-rw-r--r-- | net/snort/Makefile | 13 | ||||
-rw-r--r-- | net/snort/files/patch-sum | 3 | ||||
-rw-r--r-- | net/snort/patches/patch-aa | 19 |
3 files changed, 33 insertions, 2 deletions
diff --git a/net/snort/Makefile b/net/snort/Makefile index 4cde9f29fac..26656ea51fb 100644 --- a/net/snort/Makefile +++ b/net/snort/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2000/01/15 21:58:29 wiz Exp $ +# $NetBSD: Makefile,v 1.3 2000/02/02 12:06:15 agc Exp $ # DISTNAME= snort-1.5 @@ -15,8 +15,17 @@ HOMEPAGE= http://www.clark.net/~roesch/security.html GNU_CONFIGURE= YES +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "SunOS" +DEPENDS= libpcap-0.4:../../net/libpcap +ROOTGROUP= root +.endif + +ROOTGROUP?= wheel + post-install: - ${INSTALL_DATA_DIR} -m 700 -o root -g wheel /var/log/snort + ${INSTALL_DATA_DIR} -m 700 -o root -g ${ROOTGROUP} /var/log/snort ${INSTALL_DATA_DIR} ${PREFIX}/share/snort .for f in backdoor-lib misc-lib overflow-lib scan-lib snort-lib web-lib ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/snort diff --git a/net/snort/files/patch-sum b/net/snort/files/patch-sum new file mode 100644 index 00000000000..18e4df5e66f --- /dev/null +++ b/net/snort/files/patch-sum @@ -0,0 +1,3 @@ +$NetBSD: patch-sum,v 1.1 2000/02/02 12:06:16 agc Exp $ + +MD5 (patch-aa) = a6f0e771bdc5b945043340aef89a805e diff --git a/net/snort/patches/patch-aa b/net/snort/patches/patch-aa new file mode 100644 index 00000000000..9f129136b6f --- /dev/null +++ b/net/snort/patches/patch-aa @@ -0,0 +1,19 @@ +$NetBSD: patch-aa,v 1.1 2000/02/02 12:06:16 agc Exp $ + +Solaris needs extra definitions + +--- snort.h 2000/02/01 16:00:21 1.1 ++++ snort.h 2000/02/01 16:01:51 +@@ -20,6 +20,12 @@ + #ifndef __SNORT_H__ + #define __SNORT_H__ + ++#if defined(__svr4__) && defined(__sun__) ++typedef unsigned char u_int8_t; ++typedef unsigned short u_int16_t; ++typedef unsigned int u_int32_t; ++#endif ++ + #ifdef HAVE_CONFIG_H + #include "config.h" + #endif |