From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jun 12 22:00:35 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D87C537B401 for ; Thu, 12 Jun 2003 22:00:35 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCFE743FBD for ; Thu, 12 Jun 2003 22:00:33 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h5D50XUp004618 for ; Thu, 12 Jun 2003 22:00:33 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h5D50XZK004617; Thu, 12 Jun 2003 22:00:33 -0700 (PDT) Resent-Date: Thu, 12 Jun 2003 22:00:33 -0700 (PDT) Resent-Message-Id: <200306130500.h5D50XZK004617@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nick Rogness Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49C1137B401 for ; Thu, 12 Jun 2003 21:51:18 -0700 (PDT) Received: from skywalker.rogness.net (skywalker.rogness.net [64.251.173.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7338643FA3 for ; Thu, 12 Jun 2003 21:51:17 -0700 (PDT) (envelope-from nick@skywalker.rogness.net) Received: from skywalker.rogness.net (localhost [127.0.0.1]) by skywalker.rogness.net (8.12.5/8.12.5) with ESMTP id h5D4s3b3028353 for ; Thu, 12 Jun 2003 22:54:03 -0600 (MDT) (envelope-from nick@skywalker.rogness.net) Received: (from root@localhost) by skywalker.rogness.net (8.12.5/8.12.5/Submit) id h5D4s2MN028352; Thu, 12 Jun 2003 22:54:02 -0600 (MDT) Message-Id: <200306130454.h5D4s2MN028352@skywalker.rogness.net> Date: Thu, 12 Jun 2003 22:54:02 -0600 (MDT) From: Nick Rogness To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/53267: Update of ports/security/labrea X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nick Rogness List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 05:00:36 -0000 >Number: 53267 >Category: ports >Synopsis: Update of ports/security/labrea >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Jun 12 22:00:33 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Nick Rogness >Release: FreeBSD 4.6-STABLE i386 >Organization: >Environment: System: FreeBSD skywalker.rogness.net 4.6-STABLE FreeBSD 4.6-STABLE #0: Fri Sep 6 02:30:32 MDT 2002 root@skywalker.rogness.net:/usr/src/sys/compile/GENERIC i386 >Description: I updated ports/security/labrea from version 2.3 to 2.4. A shar file has been included for the new 2.4 version of the port. >How-To-Repeat: >Fix: # 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: # # labrea # labrea/files # labrea/files/patch-Makefile # labrea/files/patch-Data.c # labrea/Makefile # labrea/distinfo # labrea/pkg-descr # labrea/pkg-plist # echo c - labrea mkdir -p labrea > /dev/null 2>&1 echo c - labrea/files mkdir -p labrea/files > /dev/null 2>&1 echo x - labrea/files/patch-Makefile sed 's/^X//' >labrea/files/patch-Makefile << 'END-of-labrea/files/patch-Makefile' X*** Makefile Wed Feb 20 09:27:56 2002 X--- Makefile.new Wed Jun 11 18:10:47 2003 X*************** X*** 4,17 **** X -mcpu=i686 -fexpensive-optimizations -fomit-frame-pointer X #OPTFLAGS = -g X CC = gcc X! CFLAGS = -Wall `libnet-config --defines` $(OPTFLAGS) $(INCLUDES) X LDLIBS = `libnet-config --libs` -lpcap X! LDFLAGS = -s X! INCLUDES = -I/usr/include/pcap X! X! LaBrea: LaBrea.o CleanExit.o FixArrays.o GoDaemon.o \ X! PacketHandler.o ServiceTimer.o ToggleLogging.o X X LaBrea.o: LaBrea.c labrea.h defines.h X CleanExit.o: CleanExit.c labrea.h defines.h X FixArrays.o: FixArrays.c labrea.h defines.h X--- 4,17 ---- X -mcpu=i686 -fexpensive-optimizations -fomit-frame-pointer X #OPTFLAGS = -g X CC = gcc X! CFLAGS = -Wall `libnet-config --defines` -DCONFIG_PATH=\"/usr/local/etc\" $(OPTFLAGS) $(INCLUDES) X LDLIBS = `libnet-config --libs` -lpcap X! LDFLAGS = -s -L/usr/local/lib X! INCLUDES = -I/usr/include/pcap -I/usr/local/include X! FILES = LaBrea.o CleanExit.o FixArrays.o GoDaemon.o PacketHandler.o ServiceTimer.o ToggleLogging.o X X+ LaBrea: $(FILES) X+ X LaBrea.o: LaBrea.c labrea.h defines.h X CleanExit.o: CleanExit.c labrea.h defines.h X FixArrays.o: FixArrays.c labrea.h defines.h X*************** X*** 20,26 **** X ServiceTimer.o: ServiceTimer.c labrea.h defines.h X ToggleLogging.o: ToggleLogging.c labrea.h defines.h X X clean: X rm -f *.o core LaBrea X- X X--- 20,29 ---- X ServiceTimer.o: ServiceTimer.c labrea.h defines.h X ToggleLogging.o: ToggleLogging.c labrea.h defines.h X X+ install: X+ $(CC) -o LaBrea $(FILES) $(LDFLAGS) $(LDLIBS) X+ $(INSTALL) -c -o root -g wheel LaBrea /usr/local/bin X+ X clean: X rm -f *.o core LaBrea X END-of-labrea/files/patch-Makefile echo x - labrea/files/patch-Data.c sed 's/^X//' >labrea/files/patch-Data.c << 'END-of-labrea/files/patch-Data.c' X*** Data.c Mon Feb 10 10:04:04 2003 X--- Data.c.new Wed Jun 11 17:47:18 2003 X*************** X*** 19,24 **** X--- 19,27 ---- X */ X X char rcsid[] = "$Id: labrea.c 2.4 2002/02/10 12:00:00 tliston Exp tliston $"; X+ #ifndef CONFIG_PATH X+ #define COFNIG_PATH "/etc" X+ #endif X #ifdef OLDSTYLE X #ifdef WIN32 X char HardExcludeName[] = "LaBreaHardExclude.cfg"; X*************** X*** 30,43 **** X char IgnorePortName[] = "LaBreaIgnorePort.cfg"; X char IgnorePortNotFound[] = "LaBreaIgnorePort.cfg not found - nothing to ignore"; X #else X! char HardExcludeName[] = "/etc/LaBreaHardExclude"; X! char HardExcludeNotFound[] = "/etc/LaBreaHardExclude not found - no hard exclusions"; X! char IgnoreName[] = "/etc/LaBreaIgnoreIP"; X! char IgnoreNotFound[] = "/etc/LaBreaIgnoreIP not found - nothing to ignore"; X! char ExcludeName[] = "/etc/LaBreaExclude"; X! char ExcludeNotFound[] = "/etc/LaBreaExclude not found - no hard exclusions"; X! char IgnorePortName[] = "/etc/LaBreaIgnorePort"; X! char IgnorePortNotFound[] = "/etc/LaBreaIgnorePort not found - nothing to ignore"; X #endif /* WIN32 */ X char format3[] = "Exclude: %i.%i.%i.%i\n"; X char format4[] = "HardExclude: %i.%i.%i.%i\n"; X--- 33,46 ---- X char IgnorePortName[] = "LaBreaIgnorePort.cfg"; X char IgnorePortNotFound[] = "LaBreaIgnorePort.cfg not found - nothing to ignore"; X #else X! char HardExcludeName[] = CONFIG_PATH"/LaBreaHardExclude"; X! char HardExcludeNotFound[] = CONFIG_PATH"/LaBreaHardExclude not found - no hard exclusions"; X! char IgnoreName[] = CONFIG_PATH"/LaBreaIgnoreIP"; X! char IgnoreNotFound[] = CONFIG_PATH"/LaBreaIgnoreIP not found - nothing to ignore"; X! char ExcludeName[] = CONFIG_PATH"/LaBreaExclude"; X! char ExcludeNotFound[] = CONFIG_PATH"/LaBreaExclude not found - no hard exclusions"; X! char IgnorePortName[] = CONFIG_PATH"/LaBreaIgnorePort"; X! char IgnorePortNotFound[] = CONFIG_PATH"/LaBreaIgnorePort not found - nothing to ignore"; X #endif /* WIN32 */ X char format3[] = "Exclude: %i.%i.%i.%i\n"; X char format4[] = "HardExclude: %i.%i.%i.%i\n"; X*************** X*** 46,53 **** X char ConfigName[] = "LaBrea.cfg"; X char ConfigNotFound[] = "LaBrea.cfg not found"; X #else X! char ConfigName[] = "/etc/LaBreaConfig"; X! char ConfigNotFound[] = "/etc/LaBreaConfig not found"; X #endif /* WIN32 */ X #endif /* OLDSTYLE */ X X--- 49,56 ---- X char ConfigName[] = "LaBrea.cfg"; X char ConfigNotFound[] = "LaBrea.cfg not found"; X #else X! char ConfigName[] = CONFIG_PATH"/LaBreaConfig"; X! char ConfigNotFound[] = CONFIG_PATH"/LaBreaConfig not found"; X #endif /* WIN32 */ X #endif /* OLDSTYLE */ X X*************** X*** 127,133 **** X char err17[] = "Invalid or missing interface!\n"; X char getoptstr[] = "HXPoOdTRqr:i:t:lvVxs?hzap:bE:I:Dfj"; X #else X! char strRandFileName[] = "/etc/LaBreaRandom"; X char err18[] = "User specified netmask: %s\nUser specified network number: %s\n"; X char getoptstr[] = "HXPoOdTRqF:r:i:t:lvVxsn:m:?hzap:bfj"; X #endif X--- 130,136 ---- X char err17[] = "Invalid or missing interface!\n"; X char getoptstr[] = "HXPoOdTRqr:i:t:lvVxs?hzap:bE:I:Dfj"; X #else X! char strRandFileName[] = CONFIG_PATH"/LaBreaRandom"; X char err18[] = "User specified netmask: %s\nUser specified network number: %s\n"; X char getoptstr[] = "HXPoOdTRqF:r:i:t:lvVxsn:m:?hzap:bfj"; X #endif END-of-labrea/files/patch-Data.c echo x - labrea/Makefile sed 's/^X//' >labrea/Makefile << 'END-of-labrea/Makefile' X# New ports collection makefile for: LaBrea X# Date created: 20 September 2001 X# Whom: nick@rogness.net X# X# $FreeBSD$ X## X XPORTNAME= LaBrea XPORTVERSION= 2.4 XCATEGORIES= security XMASTER_SITES= http://freebsd.rogness.net/ports/labrea/ XDISTNAME= LaBrea${PORTVERSION:S/./_/g} XEXTRACT_SUFX= .tgz X XMAINTAINER= nick@rogness.net XCOMMENT= Security tarpit defense tool X XBUILD_DEPENDS+= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet X XWRKSRC= ${WRKDIR}/LaBrea2_4 XALL_TARGET= LaBrea X Xpost-install: X.if !defined(NOPORTDOCS) X ${MKDIR} ${PREFIX}/share/doc/LaBrea X ${INSTALL_MAN} ${WRKSRC}/LaBrea.README ${PREFIX}/share/doc/LaBrea X @echo "******************************************" X @echo "You will need to read the LaBrea.README in" X @echo "${PREFIX}/share/doc/LaBrea" X @echo "Before your run this!!" X @echo "******************************************" X @echo . X.endif X X.include END-of-labrea/Makefile echo x - labrea/distinfo sed 's/^X//' >labrea/distinfo << 'END-of-labrea/distinfo' XMD5 (LaBrea2_4.tgz) = 75dda18a9ad6f1e9195da2ac1e57888d END-of-labrea/distinfo echo x - labrea/pkg-descr sed 's/^X//' >labrea/pkg-descr << 'END-of-labrea/pkg-descr' XLaBrea is a small Linux-based application that puts unused IP Xaddresses on your network to use, creating a "tarpit" which can stop Xor slow down scans of your address space, eg, CodeRed. XIt is licensed under the GPL. X XFor more information, visit: X XWWW: http://www.hackbusters.net X X- Nick Xnick@rogness.net END-of-labrea/pkg-descr echo x - labrea/pkg-plist sed 's/^X//' >labrea/pkg-plist << 'END-of-labrea/pkg-plist' Xbin/LaBrea X%%PORTDOCS%%share/doc/LaBrea/LaBrea.README X%%PORTDOCS%%@dirrm share/doc/LaBrea END-of-labrea/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: