pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Portsentry 2.0 released



Hi! Thanks for the quick reply and WIP to repackage Portsentry!

Regarding your patch: I believe you have downloaded the 2.0.2 release. This issue has been addressed in the master branch (but is currently unreleased). The CMakeLists.txt now uses the "GNUInstallDirs" supported by CMake, it looks like this:

--- snip --

include(GNUInstallDirs)

install(TARGETS portsentry DESTINATION ${CMAKE_INSTALL_SBINDIR})

install(FILES examples/portsentry.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/portsentry)

...

--- snip --


Here's the full current version for your review: https://github.com/portsentry/portsentry/blob/master/CMakeLists.txt

I realize NetBSD might not adhere to the GNU way in terms of paths, but I think it would be possible for your package system to override these paths or something? Let me know if this is something you can work with or if we need to come up with some alternative way to handle path resolution in NetBSD.

If this works for you, I could make an official 2.0.3 release in case you want a stable upstream reference in your package.

Best regards

Marcus

On 6/24/25 10:00, Thomas Klausner wrote:
Hi Marcus!

On Mon, Jun 23, 2025 at 08:18:29PM +0200, Marcus Hufvudsson wrote:
Hello! I was advised to send an email to this address from the #pkgsrc IRC
channel. My name's Marcus and to make a long story short, I have revived the
long dead Portsentry project and intend to keep maintaining it and implement
new features. The project recently celebrated the release of version 2.0 and
I'd like to extend an invitation to package this new version in NetBSD.

I don't know how to proceed with this or if anyone on your side is
interested in updating Portsentry (the old package lives here: https://cdn.netbsd.org/pub/pkgsrc/current/pkgsrc/security/portsentry/index.html).
In my revival and update of the source code I have continually tested on
NetBSD, the code compiles and run's on the latest, NetBSD 10. The project
source is hosted on https://github.com/portsentry/portsentry
Thanks for contacting us, and for testing on NetBSD!

I've packaged an upgrade candidate for this in wip/portsentry
(https://pkgsrc.org/wip/).

There's a small patch I'd like to see included in upstream - the
CMakeLists.txt file includes "usr" in an install path, but that leads
to the file being installed into
"/usr/pkg/usr/sbin/portsentry". ${PREFIX} is implied in install rules,
so removing 'usr/' is better.

The package builds and the program starts, but I haven't used it
before, so if you (or someone else who knows it) could do a quick
sanity check that'd be great.

Cheers,
  Thomas


Home | Main Index | Thread Index | Old Index