summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Góes <vanquirius@gentoo.org>2006-02-17 16:22:03 +0000
committerMarcelo Góes <vanquirius@gentoo.org>2006-02-17 16:22:03 +0000
commit4403fa5fe58a71c3f0fb8aacb93119b298a253c6 (patch)
treeda327a0ea770590075422a892235bde1e4259b05 /net-analyzer/snort/files
parentMarked ppc stable for bug #122887. (diff)
downloadgentoo-2-4403fa5fe58a71c3f0fb8aacb93119b298a253c6.tar.gz
gentoo-2-4403fa5fe58a71c3f0fb8aacb93119b298a253c6.tar.bz2
gentoo-2-4403fa5fe58a71c3f0fb8aacb93119b298a253c6.zip
Add --pidfile option to init script for bug 123169. Thanks to Eric Brown <bigwhitecow at hotmail dot com>.
(Portage version: 2.0.54)
Diffstat (limited to 'net-analyzer/snort/files')
-rw-r--r--net-analyzer/snort/files/digest-snort-2.4.3-r25
-rw-r--r--net-analyzer/snort/files/snort.rc731
2 files changed, 36 insertions, 0 deletions
diff --git a/net-analyzer/snort/files/digest-snort-2.4.3-r2 b/net-analyzer/snort/files/digest-snort-2.4.3-r2
new file mode 100644
index 000000000000..64958381beae
--- /dev/null
+++ b/net-analyzer/snort/files/digest-snort-2.4.3-r2
@@ -0,0 +1,5 @@
+MD5 39d8250f47a33aaec4712e29c0dcd1d0 Community-Rules.tar.gz 11678
+MD5 316f28cf52efeddfd899552f3b26cd8d snort-2.4.0-genpatches.tar.bz2 6475
+MD5 5c3c8c69f2459bbe0c1f2057966c88a7 snort-2.4.3.tar.gz 2733590
+MD5 35d9a2486f8c0280bb493aa03c011927 snortrules-pr-2.4.tar.gz 789097
+MD5 2eeef1a7a040d67c3afaf9d749905e47 snortsam-20050110.tar.gz 29395
diff --git a/net-analyzer/snort/files/snort.rc7 b/net-analyzer/snort/files/snort.rc7
new file mode 100644
index 000000000000..668b807af87e
--- /dev/null
+++ b/net-analyzer/snort/files/snort.rc7
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/files/snort.rc7,v 1.1 2006/02/17 16:22:03 vanquirius Exp $
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -e $CONF ] ; then
+ eerror "You need a configuration file to run snort"
+ eerror "There is an example config in /etc/snort/snort.conf.distrib"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting snort"
+ start-stop-daemon --start --quiet --exec /usr/bin/snort \
+ --pidfile ${PIDFILE} \
+ -- ${SNORT_OPTS} >/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping snort"
+ start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
+ eend $?
+}