From insane@lunatic.oneinsane.net  Sat Jul  8 15:55:02 2000
Return-Path: <insane@lunatic.oneinsane.net>
Received: from lunatic.oneinsane.net (lunatic.oneinsane.net [207.113.133.231])
	by hub.freebsd.org (Postfix) with ESMTP id 61FBC37B6B0
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Jul 2000 15:55:01 -0700 (PDT)
	(envelope-from insane@lunatic.oneinsane.net)
Received: by lunatic.oneinsane.net (Postfix, from userid 1000)
	id E368D15543; Sat,  8 Jul 2000 15:54:59 -0700 (PDT)
Message-Id: <20000708225459.E368D15543@lunatic.oneinsane.net>
Date: Sat,  8 Jul 2000 15:54:59 -0700 (PDT)
From: insane@lunatic.oneinsane.net
Reply-To: insane@lunatic.oneinsane.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: Update Snort to latest version 
X-Send-Pr-Version: 3.2

>Number:         19788
>Category:       ports
>Synopsis:       Update snort to latest version
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    dirk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 08 16:00:00 PDT 2000
>Closed-Date:    Thu Jul 13 04:01:29 PDT 2000
>Last-Modified:  Thu Jul 13 04:04:37 PDT 2000
>Originator:     Ron Rosson
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
OneInsane Network
>Environment:

	FreeBSD lunatic.oneinsane.net 4.0-STABLE FreeBSD 4.0-STABLE

>Description:

	Update the snort port to version 1.6.2 

>How-To-Repeat:

	look at http://www.snort.org

>Fix:

### PLEASE READ ###
  This is my first attempt at sending diffs to get a port upgraded. I chose
  way because of the extra functionality it adds to the port if the admin so
  chooses and makes it easier down the road to do it using the ports tree and
  by hand.

  There is some issues with the diffs I have attatched. So whoever takes this
  PR please use them as a guidline in what I was trying to accomplish.
### THANK YOU ###

--- Makefile.orig	Sat Jul  8 15:07:28 2000
+++ Makefile	Sat Jul  8 15:37:41 2000
@@ -6,15 +6,33 @@
 #
 
 PORTNAME=	snort
-PORTVERSION=	1.6
+PORTVERSION=	1.6.2
 CATEGORIES=	security net
-MASTER_SITES=	http://www.clark.net/~roesch/ \
+MASTER_SITES=	http://www.snort.org/Files/ \
 		http://www.physik.TU-Berlin.DE/~ibex/ports/distfiles/
 
 MAINTAINER=	dirk@FreeBSD.org
 
+.if defined(WITH_FLEXRESP)
+BUILD_DEPENDS+=         ${LOCALBASE}/include/libnet.h:${PORTSDIR}/net/libnet
+.endif
+.if defined(WITH_MYSQL)
+BUILD_DEPENDS+=         ${LOCALBASE}/lib/mysql/libmysqlclient.a:${PORTSDIR}/databases/mysql322-client
+.endif
+
 GNU_CONFIGURE=	yes
 MAN8=		snort.8
+
+.if defined(WITH_FLEXRESP)
+CONFIGURE_ARGS+=        --enable-flexresp
+CONFIGURE_ENV+=		CPPFLAGS="-I${LOCALBASE}/include" \
+			LDFLAGS="-L${LOCALBASE}/lib"
+.endif
+
+.if defined(WITH_MYSQL)
+CONFIGURE_ARGS+=        --with-mysql-includes=${LOCALBASE}/include/mysql \
+                        --with-mysql-libraries=${LOCALBASE}/lib/mysql
+.endif
 
 post-install:
 	${MKDIR} ${PREFIX}/share/snort


--- files/md5.orig	Sat Jul  8 15:09:42 2000
+++ files/md5	Sat Jul  8 15:14:52 2000
@@ -1 +1 @@
-MD5 (snort-1.6.tar.gz) = 48193b9ff13a0ce50329ce17272eac59
+MD5 (snort-1.6.2.tar.gz) = 37d94f4ff174effd12b58349234912aa

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->dirk 
Responsible-Changed-By: sobomax 
Responsible-Changed-When: Thu Jul 13 02:32:15 PDT 2000 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19788 
State-Changed-From-To: open->closed 
State-Changed-By: dirk 
State-Changed-When: Thu Jul 13 04:01:29 PDT 2000 
State-Changed-Why:  
snort was upgraded to 1.6.2.2 on Mon Jul 10 13:35:51 2000 UTC. 
Thanks anyway. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19788 
>Unformatted:
