aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2001-12-19 16:22:45 +0800
committerwill <will@FreeBSD.org>2001-12-19 16:22:45 +0800
commit17c9f294ea2b2aee23ed073d8bd87af4676f9024 (patch)
treedfc37c025d0b02eb8fcc2d07167041df017e8010
parent48e590443755c39e7c3ca243d91407291a954c14 (diff)
downloadfreebsd-ports-gnome-17c9f294ea2b2aee23ed073d8bd87af4676f9024.tar.gz
freebsd-ports-gnome-17c9f294ea2b2aee23ed073d8bd87af4676f9024.tar.zst
freebsd-ports-gnome-17c9f294ea2b2aee23ed073d8bd87af4676f9024.zip
Add labrea 2.3, a defense mechanism against CodeRed.
PR: 31082 Submitted by: nick@rogness.net
-rw-r--r--security/Makefile1
-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
7 files changed, 80 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index a78624e83b5c..605448de7a4f 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -77,6 +77,7 @@
SUBDIR += kssh
SUBDIR += l0pht-watch
SUBDIR += l0phtcrack
+ SUBDIR += labrea
SUBDIR += libident
SUBDIR += libmcrypt
SUBDIR += libparanoia
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