Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jul 2002 08:49:30 -0700 (PDT)
From:      Paul Marquis <pmarquis@pobox.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/40528: Update port: security/snort
Message-ID:  <200207131549.g6DFnU4F002636@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         40528
>Category:       ports
>Synopsis:       Update port: security/snort
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 13 08:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Paul Marquis
>Release:        4-STABLE
>Organization:
>Environment:
FreeBSD sboy.pmarquis.com 4.6-STABLE FreeBSD 4.6-STABLE #0: Tue Jun 25 21:43:42 EDT 2002     pmarquis@sboy.pmarquis.com:/usr/obj/home/src/sys/SBOY  i386

>Description:
Update snort port to 1.8.7 and some minor cleanups to Makefile.  Unified diff attached.
>How-To-Repeat:
      
>Fix:
diff -Naur snort.orig/Makefile snort/Makefile
--- snort.orig/Makefile	Mon Apr 15 17:50:11 2002
+++ snort/Makefile	Sat Jul 13 11:32:29 2002
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	snort
-PORTVERSION=	1.8.6
+PORTVERSION=	1.8.7
 CATEGORIES=	security
 MASTER_SITES=	http://www.snort.org/dl/
 
@@ -51,16 +51,11 @@
 	@${ECHO} ""
 
 post-install:
-	${MKDIR} ${PREFIX}/share/snort
-.for i in CREDITS RULES.SAMPLE USAGE attack-responses.rules backdoor.rules \
-	bad-traffic.rules ddos.rules dns.rules dos.rules exploit.rules \
-	finger.rules ftp.rules icmp.rules icmp-info.rules info.rules local.rules \
-	misc.rules netbios.rules policy.rules porn.rules rpc.rules rservices.rules \
-	scan.rules shellcode.rules smtp.rules sql.rules telnet.rules tftp.rules \
-	virus.rules web-attacks.rules web-cgi.rules web-coldfusion.rules \
-	web-frontpage.rules web-iis.rules web-misc.rules x11.rules
-	${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/snort
-.endfor
+	${MKDIR} ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/CREDITS ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/RULES.SAMPLE ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/USAGE ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/*.rules ${DATADIR}
 	${INSTALL_DATA} ${WRKSRC}/classification.config ${PREFIX}/etc/classification.config-sample
 	${INSTALL_DATA} ${WRKSRC}/snort.conf ${PREFIX}/etc/snort.conf-sample
 	@${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGMESSAGE}
diff -Naur snort.orig/distinfo snort/distinfo
--- snort.orig/distinfo	Mon Apr 15 17:50:11 2002
+++ snort/distinfo	Sat Jul 13 11:06:37 2002
@@ -1 +1 @@
-MD5 (snort-1.8.6.tar.gz) = 6bba7e1cbc837a5c7404d7c0b496780b
+MD5 (snort-1.8.7.tar.gz) = 29c81d0bc243edb21ba4ab33ee80457e
diff -Naur snort.orig/files/patch-aa snort/files/patch-aa
--- snort.orig/files/patch-aa	Mon Jun  3 06:19:16 2002
+++ snort/files/patch-aa	Wed Dec 31 19:00:00 1969
@@ -1,11 +0,0 @@
---- plugbase.h.orig	Mon Jun  3 03:06:52 2002
-+++ plugbase.h	Mon Jun  3 03:06:59 2002
-@@ -99,7 +99,7 @@
- #endif
- 
- #if defined(FREEBSD) || defined(OPENBSD)
--    #include <machine/param.h>
-+    #include <sys/param.h>
- #endif
- 
- #if defined(SOLARIS)
diff -Naur snort.orig/files/patch-snort.c snort/files/patch-snort.c
--- snort.orig/files/patch-snort.c	Wed Dec 31 19:00:00 1969
+++ snort/files/patch-snort.c	Sat Jul 13 11:13:52 2002
@@ -0,0 +1,11 @@
+--- snort.c.orig	Fri Jun 28 10:22:59 2002
++++ snort.c	Sat Jul 13 11:13:16 2002
+@@ -1694,7 +1694,7 @@
+     difftime.tv_sec = endtime.tv_sec - starttime.tv_sec;
+     difftime.tv_usec = endtime.tv_usec - starttime.tv_usec;
+ 
+-    printf("Run time for packet processing was %u.%u seconds\n", 
++    printf("Run time for packet processing was %lu.%lu seconds\n", 
+             difftime.tv_sec, difftime.tv_usec);
+ 
+     CleanExit(SIGQUIT);

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207131549.g6DFnU4F002636>