pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
portsentry: update to 2.0.2
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Tue Jun 24 16:14:17 2025 +0200
Changeset: df00e9d2b447198a4cf6cb6dd74da4dfcf47b002
Modified Files:
portsentry/Makefile
portsentry/PLIST
portsentry/distinfo
Added Files:
portsentry/COMMIT_MSG
Removed Files:
portsentry/TODO
portsentry/patches/patch-CMakeLists.txt
Log Message:
portsentry: update to 2.0.2
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=df00e9d2b447198a4cf6cb6dd74da4dfcf47b002
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
portsentry/COMMIT_MSG | 49 +++++++++++++++++++++++++++++++++
portsentry/Makefile | 12 ++++----
portsentry/PLIST | 21 +++++++++++++-
portsentry/TODO | 1 -
portsentry/distinfo | 7 ++---
portsentry/patches/patch-CMakeLists.txt | 15 ----------
6 files changed, 79 insertions(+), 26 deletions(-)
diffs:
diff --git a/portsentry/COMMIT_MSG b/portsentry/COMMIT_MSG
new file mode 100644
index 0000000000..99b82d2163
--- /dev/null
+++ b/portsentry/COMMIT_MSG
@@ -0,0 +1,49 @@
+## 2025-06-24 2.0.2
+
+### Improvements
+- Added multi-architecture build of docker containers
+- Improved documentation
+- Improved CMake install process with definable directories
+- Added CPack support for packaging
+- Moved man pages to build process
+- Improved systemd unit file with better handling of install paths and start conditions
+
+## 2025-05-24 2.0.1
+
+### Improvements
+- Added detailed usage instructions in docs/HOWTO-Use.md
+- Minor documentation updates
+- Added automatic package building and compile targets arm
+- Fixed architecture code issues for arm64 and armhf
+- Added unit testing
+
+## 2025-05-09 2.0.0
+
+### Bugfixes
+- Fixed bug where block and ignore file would be written to even though user has configured portsentry to not do any blocking
+- Fixed multiple potential race conditions which could manifest when running two portsentry instances
+- Fixed potential bug in state engine which could overflow and miss reporting on packets
+- Various smaller bugfixes
+
+### Features
+- Added libpcap support, which enables stealth mode on *BSD systems and increases performance
+- Added IPv6 support
+- Added Docker support and added portsentry registry on docker hub
+- Added fail2ban integration
+
+### Improvements
+- Significant disk usage reduction after parser redesign. Code no longer continually re-reads config file
+- Removed/consolidated several duplicate code/DRY violations, significantly reducing code size and potential errors
+- Fixed resource leak of socket file descriptors in connect mode in certain situations
+- Merged tcp/udp modes so both protocols can be monitored at the same time. No more dual processes
+- General code cleanup and removal of legacy code
+- Added more command line options in order to increase runtime flexibility
+- Change to runtime debug/verbose log output, additionally supporting stdout instead of only syslog and added distinction between log and error messages
+- Incorporated "advanced mode" features into both connect and stealth modes
+- Changed to CMake instead of hand written makefiles
+- Added Linting and Formating
+- Added integration tests
+- Added fuzzing tests
+- Added SAST testing
+- Added systemd unit
+- Updated and increased the amount of documentation
diff --git a/portsentry/Makefile b/portsentry/Makefile
index 25363bb60c..a61f333415 100644
--- a/portsentry/Makefile
+++ b/portsentry/Makefile
@@ -1,16 +1,14 @@
# $NetBSD: Makefile,v 1.21 2017/08/16 20:21:14 wiz Exp $
-DISTNAME= portsentry-2.0.1-src
-PKGNAME= ${DISTNAME:S/-src//}
+DISTNAME= portsentry-2.0.2
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GITHUB:=portsentry/}
-GITHUB_RELEASE= v${PKGVERSION_NOREV}
-EXTRACT_SUFX= .tar.xz
+GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= https://github.com/portsentry/portsentry
COMMENT= Detects and respond to port scans against a target host in real-time
-LICENSE= cpl-1.0
+LICENSE= 2-clause-bsd
USE_LANGUAGES= c c++
@@ -28,6 +26,8 @@ MAKE_DIRS+= ${PKG_SYSCONFDIR}
PKG_SYSCONFSUBDIR= portsentry
INSTALLATION_DIRS+= ${EGDIR}
+INSTALLATION_DIRS+= ${EGDIR}/logrotate.d
+INSTALLATION_DIRS+= ${EGDIR}/systemd
SUBST_CLASSES+= prefix
SUBST_SED.prefix+= -e "s,/etc/portsentry,${PKG_SYSCONFDIR},"
@@ -37,6 +37,8 @@ SUBST_STAGE.prefix= post-build
post-install:
${MV} ${DESTDIR}${PKG_SYSCONFDIR}/portsentry.* ${DESTDIR}${EGDIR}
+ ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/../logrotate.d/portsentry ${DESTDIR}${EGDIR}/logrotate.d
+ ${MV} ${DESTDIR}${PREFIX}/lib/systemd/system//portsentry.service ${DESTDIR}${EGDIR}/systemd
.include "../../devel/cmake/build.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/portsentry/PLIST b/portsentry/PLIST
index 55feb64012..093546dc18 100644
--- a/portsentry/PLIST
+++ b/portsentry/PLIST
@@ -1,4 +1,23 @@
-@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:13:36 joerg Exp $
+@comment $NetBSD$
+man/man8/portsentry.8
+man/man8/portsentry.conf.8
sbin/portsentry
+share/doc/portsentry/Acknowledgement.md
+share/doc/portsentry/Changes.md
+share/doc/portsentry/Contributing.md
+share/doc/portsentry/HOWTO-Compile.md
+share/doc/portsentry/HOWTO-Docker.md
+share/doc/portsentry/HOWTO-Fail2Ban.md
+share/doc/portsentry/HOWTO-Logfile.md
+share/doc/portsentry/HOWTO-Use-Cases.md
+share/doc/portsentry/HOWTO-Use.md
+share/doc/portsentry/LICENSE
+share/doc/portsentry/Manual.md
+share/doc/portsentry/README.md
+share/doc/portsentry/images/PS-Enumeration.png
+share/doc/portsentry/images/PS-Int-Org.png
+share/doc/portsentry/portsentry.conf.md
+share/examples/portsentry/logrotate.d/portsentry
share/examples/portsentry/portsentry.conf
share/examples/portsentry/portsentry.ignore
+share/examples/portsentry/systemd/portsentry.service
diff --git a/portsentry/TODO b/portsentry/TODO
deleted file mode 100644
index 8c1ff050c4..0000000000
--- a/portsentry/TODO
+++ /dev/null
@@ -1 +0,0 @@
-When this survives testing, replace security/portsentry with this.
diff --git a/portsentry/distinfo b/portsentry/distinfo
index 5f1c3a08a8..3ef9a579de 100644
--- a/portsentry/distinfo
+++ b/portsentry/distinfo
@@ -1,6 +1,5 @@
$NetBSD: distinfo,v 1.11 2021/10/26 11:17:39 nia Exp $
-BLAKE2s (portsentry-2.0.1-src.tar.xz) = 502358ee2ffc0fcb48803b051f7072da6d1b01c0280f60576d5efd0034da8153
-SHA512 (portsentry-2.0.1-src.tar.xz) = f94e1aba250104c4513ea0964c0470b60d3b761069342835bd521a1e2ebefdfe48d01acfee832da20a9c56e6b3610146c0c37eae357ca5ed1aa61d19f640f037
-Size (portsentry-2.0.1-src.tar.xz) = 138376 bytes
-SHA1 (patch-CMakeLists.txt) = 2d29551c44e78ea319aa82cf68d05002525d0cf3
+BLAKE2s (portsentry-2.0.2.tar.gz) = 35529125cd83f13afff84787ce518f073c45142793e586e5ec2da85bbd2e25b8
+SHA512 (portsentry-2.0.2.tar.gz) = 390efda0d9c5ca32a2c4643e71e18ecb5ffb0fa51ea5a743422881e3ef2e8ae6e07a05eb5ea30750f68ac09d0704fc87c791209fb5651ef2b2d0068b95484e4b
+Size (portsentry-2.0.2.tar.gz) = 158295 bytes
diff --git a/portsentry/patches/patch-CMakeLists.txt b/portsentry/patches/patch-CMakeLists.txt
deleted file mode 100644
index a91ed81fea..0000000000
--- a/portsentry/patches/patch-CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD$
-
-${PREFIX} (/usr) is default, don't add it.
-
---- CMakeLists.txt.orig 2025-06-24 07:38:52.887363491 +0000
-+++ CMakeLists.txt
-@@ -63,7 +63,7 @@ if (USE_PCAP)
- endif()
-
- # INSTALL TARGETS for portsentry program
--install(TARGETS portsentry DESTINATION usr/sbin)
-+install(TARGETS portsentry DESTINATION sbin)
- install(FILES examples/portsentry.conf DESTINATION etc/portsentry)
- install(FILES examples/portsentry.ignore DESTINATION etc/portsentry)
-
Home |
Main Index |
Thread Index |
Old Index