summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lutgens <lamer@gentoo.org>2001-09-12 04:07:00 +0000
committerBen Lutgens <lamer@gentoo.org>2001-09-12 04:07:00 +0000
commitf9a3c43b6800beacf9f4c518b4b46861b5a7d376 (patch)
tree00bb549dc698edc06b1d3fb8d1f5121eb0a86884 /net-misc/hogwash
parentTrying to watch the movies of the world trade center so I need a version (diff)
downloadgentoo-2-f9a3c43b6800beacf9f4c518b4b46861b5a7d376.tar.gz
gentoo-2-f9a3c43b6800beacf9f4c518b4b46861b5a7d376.tar.bz2
gentoo-2-f9a3c43b6800beacf9f4c518b4b46861b5a7d376.zip
updated some shit, added initscript for hogwash, and remove the trailing
garbage from exim init script. I didn't change the evolution ebuild so that can be ignored.
Diffstat (limited to 'net-misc/hogwash')
-rw-r--r--net-misc/hogwash/files/digest-hogwash-0.1d-r22
-rw-r--r--net-misc/hogwash/files/hogwash30
-rw-r--r--net-misc/hogwash/hogwash-0.1d-r2.ebuild39
3 files changed, 71 insertions, 0 deletions
diff --git a/net-misc/hogwash/files/digest-hogwash-0.1d-r2 b/net-misc/hogwash/files/digest-hogwash-0.1d-r2
new file mode 100644
index 000000000000..183df9e497d3
--- /dev/null
+++ b/net-misc/hogwash/files/digest-hogwash-0.1d-r2
@@ -0,0 +1,2 @@
+MD5 b81c69f54c2b7fa496601870ec2c61bf hogwash-0.1.d.tgz
+MD5 49db713f3f55e0d31bd8bfb63b9ffe47 rules.2
diff --git a/net-misc/hogwash/files/hogwash b/net-misc/hogwash/files/hogwash
new file mode 100644
index 000000000000..3da290f1ab57
--- /dev/null
+++ b/net-misc/hogwash/files/hogwash
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+SERVICE=hogwash
+opts="start stop"
+PIDFILE="/var/run/hogwash.pid"
+EXE=/usr/sbin/hogwash
+
+# Note you need to edit this to fit your needs
+# -e is the external interface if you are not using this on a box with two
+# or more NiCs this first line fits your needs
+OPTS="-e eth0 -c /etc/hogwash/stock.rules"
+
+# I'm using hogwash on a stackless box for stealth packet scrubbing so I
+# use this line
+#OPTS="-e eth0 -i eth1 -c /etc/hogwash/rules0727"
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting $SERVICE"
+ $EXE $OPTS 2>&1 >/dev/null &
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping $SERVICE"
+ kill `cat $PIDFILE`
+ eend $?
+}
diff --git a/net-misc/hogwash/hogwash-0.1d-r2.ebuild b/net-misc/hogwash/hogwash-0.1d-r2.ebuild
new file mode 100644
index 000000000000..7a962475383f
--- /dev/null
+++ b/net-misc/hogwash/hogwash-0.1d-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2001 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Ben Lutgens <lamer@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/net-misc/hogwash/hogwash-0.1d-r2.ebuild,v 1.1 2001/09/12 04:07:00 lamer Exp $
+
+S=${WORKDIR}/devel
+DESCRIPTION="layer2 packet scrubber. It lives right on top of the network driver and will drop or
+sanitize packets based on signature. The authors installed it on an unpatched RH-6.2 box and entered
+it into the capture the flag competition at defcon 9 and the box came back unscathed. I've included
+the rules file too."
+A="hogwash-0.1.d.tgz rules.2"
+SRC_URI="http://prdownloads.sourceforge.net/hogwash/${PN}-0.1.d.tgz
+ http://hogwash.sourceforge.net/rules.2"
+HOMEPAGE="http://hogwash.sourceforge.net"
+DEPEND=">=net-libs/libpcap-0.6.1
+ >=net-libs/libnet-1.0.2a"
+
+#RDEPEND=""
+src_unpack() {
+ unpack hogwash-0.1.d.tgz
+}
+src_compile() {
+
+ try ./setup
+
+}
+
+src_install () {
+
+ dosbin hogwash
+ insinto /etc/hogwash
+ doins stock.rules ${DISTDIR}/rules.2
+ dodoc COPYRIGHT README ${FILESDIR}/Documentation.txt
+ dodir /var/log/snort
+ into /etc/init.d
+ doexe ${FILESDIR}/hogwash
+
+}
+