From yonatan@node-110.xpert.com  Sun Mar  9 01:15:19 2003
Return-Path: <yonatan@node-110.xpert.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B118037B404
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Mar 2003 01:15:19 -0800 (PST)
Received: from node-110.xpert.com (node-110.xpert.com [199.203.132.110])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6464F43FE0
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Mar 2003 01:15:08 -0800 (PST)
	(envelope-from yonatan@node-110.xpert.com)
Received: (from yonatan@localhost)
	by node-110.xpert.com (8.11.6/8.11.6) id h299F2400344;
	Sun, 9 Mar 2003 09:15:02 GMT
	(envelope-from yonatan)
Message-Id: <200303090915.h299F2400344@node-110.xpert.com>
Date: Sun, 9 Mar 2003 09:15:02 GMT
From: Yonatan@xpert.com
Reply-To: Yonatan@xpert.com
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: rc.d script for security/snort
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         49047
>Category:       ports
>Synopsis:       rc.d script for security/snort
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kris
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 09 01:20:09 PST 2003
>Closed-Date:    Thu Sep 04 06:48:33 PDT 2003
>Last-Modified:  Thu Sep 04 06:48:33 PDT 2003
>Originator:     Yonatan@xpert.com
>Release:        FreeBSD 4.8-RC i386
>Organization:
>Environment:
System: FreeBSD Temujin 4.8-RC FreeBSD 4.8-RC #3: Wed Mar 5 14:10:08 GMT 2003 root@Temujin:/usr/obj/usr/src/sys/TEMUJIN i386


>Description:
	This is a sample script for ${PREFIX}/etc/rc.d that will wake snort up on boot, and take it down on shutdown. Nothing fancy here.
	This is needed, because I'm planning on teaching ACID many new things, and ACID expects snort to help itself.
	There is only one thing that requires thinking here: This should run only after {MySQL|PostgreSQL} server is up, as snort might want to report to the local server.

>How-To-Repeat:
	N/A
>Fix:

--- snort.sh.sample.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	snort.sh.sample
#
echo x - snort.sh.sample
sed 's/^X//' >snort.sh.sample << 'END-of-snort.sh.sample'
X#!/bin/sh
X
Xif ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
X    echo "$0: Cannot determine the PREFIX" >&2
X    exit 1
Xfi
X
Xcase "$1" in
Xstart)
X    ${PREFIX}/bin/snort -Dqc ${PREFIX}/etc/snort.conf > /dev/null && echo " snort"
X    ;;
Xstop)
X    kill `cat /var/run/snort_*.pid`
X    ;;
Xrestart)
X    killall -1 `cat /var/run/snort_*.pid`
X    ;;
X*)
X    echo "Usage: snort.sh [start|stop|restart]"
X    ;;
Xesac
END-of-snort.sh.sample
exit
--- snort.sh.sample.shar ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kris 
Responsible-Changed-By: arved 
Responsible-Changed-When: Sat Mar 22 13:09:47 PST 2003 
Responsible-Changed-Why:  
Over to Maintainers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=49047 

From: "Sergey Matveychuk" <sem@ciam.ru>
To: <freebsd-gnats-submit@FreeBSD.org>, <Yonatan@xpert.com>
Cc:  
Subject: Re: ports/49047: rc.d script for security/snort
Date: Mon, 24 Mar 2003 17:17:34 +0300

 You need 'echo -n " snort"' instead of just 'echo " snort"'
 
 ----
 Sem.
 

From: "Yonatan Bokovza" <Yonatan@xpert.com>
To: "Sergey Matveychuk" <sem@ciam.ru>,
	<freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: RE: ports/49047: rc.d script for security/snort
Date: Mon, 24 Mar 2003 16:13:57 +0200

 > -----Original Message-----
 > From: Sergey Matveychuk [mailto:sem@ciam.ru]
 > Sent: Monday, March 24, 2003 16:18
 > To: freebsd-gnats-submit@FreeBSD.org; Yonatan Bokovza
 > Subject: Re: ports/49047: rc.d script for security/snort
 >=20
 >=20
 > You need 'echo -n " snort"' instead of just 'echo " snort"'
 
 True.
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Thu Sep 4 06:44:17 PDT 2003 
State-Changed-Why:  
Commited, thanks! 

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