summaryrefslogtreecommitdiff
path: root/security/labrea
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-12-19 08:22:45 +0000
committerWill Andrews <will@FreeBSD.org>2001-12-19 08:22:45 +0000
commitc8142fc4ed4fcfefe4b54979c5dd1b8773d8fb2c (patch)
tree6fc7bd112323260b3de4140d01b6e8a62a6132b7 /security/labrea
parentupgrade to 1.2 (diff)
Add labrea 2.3, a defense mechanism against CodeRed.
PR: 31082 Submitted by: nick@rogness.net
Notes
Notes: svn path=/head/; revision=51794
Diffstat (limited to 'security/labrea')
-rw-r--r--security/labrea/Makefile39
-rw-r--r--security/labrea/distinfo1
-rw-r--r--security/labrea/files/patch-Makefile24
-rw-r--r--security/labrea/pkg-comment1
-rw-r--r--security/labrea/pkg-descr11
-rw-r--r--security/labrea/pkg-plist3
6 files changed, 79 insertions, 0 deletions
diff --git a/security/labrea/Makefile b/security/labrea/Makefile
new file mode 100644
index 000000000000..798b32a09620
--- /dev/null
+++ b/security/labrea/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: LaBrea
+# Date created: 20 September 2001
+# Whom: nick@rogness.net
+#
+# $FreeBSD$
+##
+
+PORTNAME= LaBrea
+PORTVERSION= 2.3
+CATEGORIES= security
+MASTER_SITES= http://www.hackbusters.net/LaBrea/
+DISTNAME= LaBrea${PORTVERSION:S/./_/g}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= nick@rogness.net
+
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet
+
+WRKSRC= ${WRKDIR}/LaBrea
+ALL_TARGET= LaBrea
+
+pre-build:
+ ${PERL} -pi -e "s@PREFIX=/usr/local@PREFIX=${PREFIX}@g;\
+ s@LOCALBASE=/usr/local@LOCALBASE=${LOCALBASE}@g" \
+ ${WRKSRC}/Makefile
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/LaBrea
+ ${INSTALL_MAN} ${WRKSRC}/LaBrea.README ${PREFIX}/share/doc/LaBrea
+ @echo "******************************************"
+ @echo "You will need to read the LaBrea.README in"
+ @echo "${PREFIX}/share/doc/LaBrea"
+ @echo "Before your run this!!"
+ @echo "******************************************"
+ @echo .
+.endif
+
+.include <bsd.port.mk>
diff --git a/security/labrea/distinfo b/security/labrea/distinfo
new file mode 100644
index 000000000000..184fda61c2cb
--- /dev/null
+++ b/security/labrea/distinfo
@@ -0,0 +1 @@
+MD5 (LaBrea2_3.tgz) = ca73a56d99a4bc50917ff56f04fdbc9b
diff --git a/security/labrea/files/patch-Makefile b/security/labrea/files/patch-Makefile
new file mode 100644
index 000000000000..33a18e426530
--- /dev/null
+++ b/security/labrea/files/patch-Makefile
@@ -0,0 +1,24 @@
+--- Makefile Tue Oct 2 12:00:00 2001
++++ Makefile.new Wed Dec 19 03:03:27 2001
+@@ -5,12 +5,17 @@
+ #OPTFLAGS = -g
+ CC = gcc
+ CFLAGS = -Wall `libnet-config --defines` $(OPTFLAGS) $(INCLUDES)
+-LDLIBS = `libnet-config --libs` -lpcap
+-INCLUDES = -I/usr/include/pcap
++LOCALBASE=/usr/local
++PREFIX=/usr/local
++LDLIBS = `libnet-config --libs` -L$(LOCALBASE)/lib -lpcap
++INCLUDES = -I$(LOCALBASE)/include
+
+-LaBrea: LaBrea.o
++LaBrea: LaBrea.c
+
+-LaBrea.o: LaBrea.c
++#LaBrea.o: LaBrea.c
+
+ clean:
+ rm -f *.o core LaBrea
++
++install:
++ @install -c -g wheel -o root -m 755 LaBrea $(PREFIX)/bin
diff --git a/security/labrea/pkg-comment b/security/labrea/pkg-comment
new file mode 100644
index 000000000000..d44224cc283f
--- /dev/null
+++ b/security/labrea/pkg-comment
@@ -0,0 +1 @@
+Defense mechanism against CodeRed
diff --git a/security/labrea/pkg-descr b/security/labrea/pkg-descr
new file mode 100644
index 000000000000..ef6a0df167f4
--- /dev/null
+++ b/security/labrea/pkg-descr
@@ -0,0 +1,11 @@
+LaBrea is a small Linux-based application that puts unused IP
+addresses on your network to use, creating a "tarpit" which can stop
+or slow down scans of your address space, eg, CodeRed.
+It is licensed under the GPL.
+
+For more information, visit:
+
+WWW: http://www.hackbusters.net
+
+- Nick
+nick@rogness.net
diff --git a/security/labrea/pkg-plist b/security/labrea/pkg-plist
new file mode 100644
index 000000000000..dd1f69546e82
--- /dev/null
+++ b/security/labrea/pkg-plist
@@ -0,0 +1,3 @@
+bin/LaBrea
+%%PORTDOCS%%share/doc/LaBrea/LaBrea.README
+%%PORTDOCS%%@dirrm share/doc/LaBrea