head 1.5; access; symbols pkgsrc-2026Q1:1.5.0.148 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.5.0.146 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.144 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.142 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.140 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.138 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.5.0.136 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.5.0.134 pkgsrc-2024Q2-base:1.5 pkgsrc-2024Q1:1.5.0.132 pkgsrc-2024Q1-base:1.5 pkgsrc-2023Q4:1.5.0.130 pkgsrc-2023Q4-base:1.5 pkgsrc-2023Q3:1.5.0.128 pkgsrc-2023Q3-base:1.5 pkgsrc-2023Q2:1.5.0.126 pkgsrc-2023Q2-base:1.5 pkgsrc-2023Q1:1.5.0.124 pkgsrc-2023Q1-base:1.5 pkgsrc-2022Q4:1.5.0.122 pkgsrc-2022Q4-base:1.5 pkgsrc-2022Q3:1.5.0.120 pkgsrc-2022Q3-base:1.5 pkgsrc-2022Q2:1.5.0.118 pkgsrc-2022Q2-base:1.5 pkgsrc-2022Q1:1.5.0.116 pkgsrc-2022Q1-base:1.5 pkgsrc-2021Q4:1.5.0.114 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.5.0.112 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.5.0.110 pkgsrc-2021Q2-base:1.5 pkgsrc-2021Q1:1.5.0.108 pkgsrc-2021Q1-base:1.5 pkgsrc-2020Q4:1.5.0.106 pkgsrc-2020Q4-base:1.5 pkgsrc-2020Q3:1.5.0.104 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.5.0.100 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.80 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.5.0.102 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.5.0.98 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.96 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.94 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.92 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.90 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.88 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.86 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.84 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.82 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.78 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.76 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.74 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.72 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.70 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.68 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.66 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.64 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.62 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.60 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.5.0.58 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.56 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.54 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.5.0.52 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.50 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.5.0.48 pkgsrc-2013Q3-base:1.5 pkgsrc-2013Q2:1.5.0.46 pkgsrc-2013Q2-base:1.5 pkgsrc-2013Q1:1.5.0.44 pkgsrc-2013Q1-base:1.5 pkgsrc-2012Q4:1.5.0.42 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.5.0.40 pkgsrc-2012Q3-base:1.5 pkgsrc-2012Q2:1.5.0.38 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.5.0.36 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.34 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.32 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.30 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.28 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.26 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.24 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.22 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.20 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.18 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.16 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.14 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.12 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.10 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.8 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.6 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.4 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.2 pkgsrc-2008Q1:1.4.0.20 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.18 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.4.0.16 pkgsrc-2007Q3-base:1.4 pkgsrc-2007Q2:1.4.0.14 pkgsrc-2007Q2-base:1.4 pkgsrc-2007Q1:1.4.0.12 pkgsrc-2007Q1-base:1.4 pkgsrc-2006Q4:1.4.0.10 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.8 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.6 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.4 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.4.0.2 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.3.0.14 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.12 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.10 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.8 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.6 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.4 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.2 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 netbsd-1-6-1:1.1.1.1.0.6 netbsd-1-6-1-base:1.1.1.1 netbsd-1-6:1.1.1.1.0.8 netbsd-1-6-RELEASE-base:1.1.1.1 pkgviews:1.1.1.1.0.4 pkgviews-base:1.1.1.1 buildlink2:1.1.1.1.0.2 buildlink2-base:1.1.1.1 netbsd-1-5-PATCH003:1.1.1.1 netbsd-1-5-PATCH001:1.1.1.1 netbsd-1-5-RELEASE:1.1.1.1 netbsd-1-4-PATCH003:1.1.1.1 netbsd-1-4-PATCH002:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2008.06.12.02.14.45; author joerg; state Exp; branches; next 1.4; 1.4 date 2005.12.08.19.21.57; author joerg; state Exp; branches; next 1.3; 1.3 date 2004.01.22.10.08.19; author agc; state Exp; branches; next 1.2; 1.2 date 2003.05.01.21.32.46; author jmmv; state Exp; branches; next 1.1; 1.1 date 2000.02.07.16.20.19; author agc; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.02.07.16.20.19; author agc; state Exp; branches; next ; desc @@ 1.5 log @Add DESTDIR support. @ text @$NetBSD: patch-ac,v 1.4 2005/12/08 19:21:57 joerg Exp $ --- Makefile.orig 2003-05-23 18:10:13.000000000 +0000 +++ Makefile @@@@ -20,7 +20,7 @@@@ # # # Generic compiler (usually linked to gcc on most platforms) -CC = cc +#CC = cc # GNU.. #CC = gcc @@@@ -37,8 +37,8 @@@@ CFLAGS = -O -Wall #CFLAGS = -pg -O -Wall -DNODAEMON #LIBS = /usr/lib/libefence.a -INSTALLDIR = /usr/local/psionic -CHILDDIR=/portsentry +INSTALLDIR = ${PREFIX} +CHILDDIR=/share/examples/portsentry all: @@echo "Usage: make " @@@@ -69,21 +69,17 @@@@ uninstall: install: @@echo "Creating psionic directory $(INSTALLDIR)" @@if [ ! -d $(INSTALLDIR) ]; then /bin/mkdir $(INSTALLDIR); fi - @@echo "Setting directory permissions" - @@if [ "$(INSTALLDIR)" = "/usr/local/psionic" ]; then /bin/chmod 700 $(INSTALLDIR) ; fi @@echo "Creating portsentry directory $(INSTALLDIR)$(CHILDDIR)" @@if [ ! -d $(INSTALLDIR)$(CHILDDIR) ]; then /bin/mkdir\ $(INSTALLDIR)$(CHILDDIR); fi - @@echo "Setting directory permissions" - chmod 700 $(INSTALLDIR)$(CHILDDIR) @@echo "Copying files" - cp ./portsentry.conf $(INSTALLDIR)$(CHILDDIR) - cp ./portsentry.ignore $(INSTALLDIR)$(CHILDDIR) - cp ./portsentry $(INSTALLDIR)$(CHILDDIR) + ${BSD_INSTALL_DATA} ./portsentry.conf $(INSTALLDIR)$(CHILDDIR) + ${BSD_INSTALL_DATA} ./portsentry.ignore $(INSTALLDIR)$(CHILDDIR) + ${BSD_INSTALL_PROGRAM} ./portsentry ${DESTDIR}${PREFIX}/sbin @@echo "Setting permissions" chmod 600 $(INSTALLDIR)$(CHILDDIR)/portsentry.ignore chmod 600 $(INSTALLDIR)$(CHILDDIR)/portsentry.conf - chmod 700 $(INSTALLDIR)$(CHILDDIR)/portsentry + chmod 700 ${DESTDIR}${PREFIX}/sbin/portsentry @@echo "" @@echo "" @@echo "Edit $(INSTALLDIR)$(CHILDDIR)/portsentry.conf and change" @@@@ -125,7 +121,7 @@@@ openbsd: ./portsentry_io.c ./portsentry_util.c -freebsd: +freebsd dragonfly: SYSTYPE=freebsd @@echo "Making $(SYSTYPE)" $(CC) $(CFLAGS) -DBSD44 -o ./portsentry ./portsentry.c \ @ 1.4 log @Add DragonFly support. @ text @d1 1 a1 1 $NetBSD$ d42 1 a42 1 + ${BSD_INSTALL_PROGRAM} ./portsentry ${PREFIX}/sbin d47 1 a47 1 + chmod 700 ${PREFIX}/sbin/portsentry @ 1.3 log @Update portsentry from 1.0 to 1.2. Major changes from previous version: Master site has moved to sourceforge Licence has changed to a GPL-like licence Minor changes from previous version: 12-21-1999 - 1.1 Fixed typo in bare-bones TCP list where 524 was supposed to be for 1524. 03-31-2000 - 1.1 Updated .conf to add ipf blocking rule. Thanks Graham Dunn 06-08-2000 - 1.1 Fixed an error in the state engine portion that could cause an increment error under certain conditions. Thanks Peter M. Allan for finding this. 6-21-2000 - 1.1 New Features added - Added in feature to disable DNS host resolution by checking RESOLVE_HOST in conf file. - Added in feature to have external command run before or after blocking has occurred as defined in KILL_RUN_CMD_FIRST option in conf file. - Removed DoBlockTCP/UDP functions. Converted over to generic flag checker. 7-5-2000 - 1.1 - Added iptables support (thanks Scott Catterton ) - Added Makefile support for Irix - Put in ports for common DDOS ports 9-8-2000 - 1.1 - Added in netmask support 9-9-2000 - 1.1 - Finally moved resolver functions to own area. - Made CleanAndResolve to ensure DNS records returned are sanitized correctly before being passed back. 3-23-2001 - 1.1 - Fixed a bug that showed up under Linux 2.4 Kernel that would cause accept to loop. There was an error with how I used a count variable after trying to bind to ports. If the port didn't bind the count for the openSockfd would still increment and this caused the error to show up. 6-26-2001 - 1.1 - Added Mac OS X build support (Same as FreeBSD). Fixed bug for Advanced mode to properly monitor 1024 ports (it only did first 1023 before). Thanks Guido. 05-23-2003 - 1.2 - Removed references to old psionic e-mail and changed license to Common Public License. I've also added a fix for a multi-line string constant for gcc3. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.2 2003/05/01 21:32:46 jmmv Exp $ d3 2 a4 2 --- Makefile 2000/02/07 15:16:12 1.1 +++ Makefile 2000/02/07 15:17:47 d14 1 a14 1 @@@@ -37,8 +37,8 @@@@ d25 1 a25 1 @@@@ -69,21 +69,17 @@@@ d51 9 @ 1.2 log @Honour PKG_SYSCONFDIR. Bump PKGREVISION to 2. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.1.1.1 2000/02/07 16:20:19 agc Exp $ d5 1 a5 1 @@@@ -21,9 +21,9 @@@@ d8 1 a8 1 # Generic compiler d10 2 a11 1 +# CC = cc d13 2 a14 6 -#CC = gcc +CC = gcc # Normal systems flags CFLAGS = -O -Wall @@@@ -35,8 +35,8 @@@@ d25 1 a25 1 @@@@ -67,21 +67,17 @@@@ d30 1 a30 1 - chmod 700 $(INSTALLDIR) @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d24 1 a24 1 +CHILDDIR=/etc @ 1.1.1.1 log @Initial import of portsentry into the NetBSD packages collection. PortSentry is a utility which detects and respond to port scans against a target host in real-time. @ text @@