Hi, I'm looking into upgrading security/plaso and it's dependencies.
One of those dependencies is sysutils/libfsntfs, while upgrading, I
opportunistically intend to move it into sysutils/libyal.
besides updating LIB_DEPENDS and bumping ports depending on it:
rm -rf sysutils/libfsntfs
remove entry from sysutils/Makefile
add entry to sysutils/libyal/Makefile
cvs import what I have below (to ease review, just showing the diff to
what's currently in sysutils/libfsntfs)
Two questions I have:
the @pkgpath in PLIST is enough, or do I need more, something in quirks?
a make update just works with that.
Second question:
make test requires autoconf this specific version.
I added AUTOCONF_VERSION and the TEST_DEPENDS. Is that the correct way to
go?
cheers,
Sebastian
Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/libfsntfs/Makefile,v
diff -u -r1.20 Makefile
--- Makefile 19 Mar 2026 09:53:59 -0000 1.20
+++ Makefile 26 Aug 2026 21:01:19 -0000
@@ -1,26 +1,15 @@
COMMENT = library and tools to access NTFS
-VERSION = 20251028
-DISTNAME = libfsntfs-experimental-${VERSION}
+VERSION = 20260727
+BASENAME = libfsntfs
+DISTNAME = ${BASENAME}-experimental-${VERSION}
PKGNAME = ${DISTNAME:S/-experimental//}
SHARED_LIBS += fsntfs 0.2 # 1.0
-CATEGORIES = sysutils security
-
-HOMEPAGE = https://github.com/libyal/libfsntfs/wiki
-
-MAINTAINER = Sebastian Reitenbach <[email protected]>
-
-SITES = https://github.com/libyal/libfsntfs/releases/download/${VERSION}/
-
-# LGPLv3+
-PERMIT_PACKAGE = Yes
-
WANTLIB = ${MODPY_WANTLIB}
WANTLIB += bfio c fuse fwnt iconv intl m pthread util crypto ssl
-CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += --enable-python
WRKDIST = ${WRKDIR}/${PKGNAME}
@@ -35,7 +24,8 @@
-pre-test:
- sed -i s,#!/bin/bash,#!/${LOCALBASE}/bin/bash, ${WRKSRC}/tests/test_*.sh
+# Tests use autoconf
+AUTOCONF_VERSION = 2.72
+TEST_DEPENDS += devel/autoconf/${AUTOCONF_VERSION}
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/sysutils/libfsntfs/distinfo,v
diff -u -r1.5 distinfo
--- distinfo 19 Mar 2026 09:53:59 -0000 1.5
+++ distinfo 26 Aug 2026 21:01:19 -0000
@@ -1,2 +1,2 @@
-SHA256 (libfsntfs-experimental-20251028.tar.gz) =
ntvRmC+IaBITkaNWluNMQTeUpdiM2R5OyLGDEz61d/Y=
-SIZE (libfsntfs-experimental-20251028.tar.gz) = 2025278
+SHA256 (libfsntfs-experimental-20260727.tar.gz) =
9f44UpYActkgzaSu/OkCKpmv3cjjj7UTeXHSZqt9Q7o=
+SIZE (libfsntfs-experimental-20260727.tar.gz) = 2054202
Index: patches/patch-fsntfstools_fsntfsmount_c
===================================================================
RCS file: patches/patch-fsntfstools_fsntfsmount_c
diff -N patches/patch-fsntfstools_fsntfsmount_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-fsntfstools_fsntfsmount_c 26 Aug 2026 21:01:19 -0000
@@ -0,0 +1,17 @@
+Index: fsntfstools/fsntfsmount.c
+--- fsntfstools/fsntfsmount.c.orig
++++ fsntfstools/fsntfsmount.c
+@@ -486,8 +486,13 @@ int main( int argc, char * const argv[] )
+
+ goto on_error;
+ }
++#if defined( HAVE_LIBFUSE3 )
+ fuse_unmount(
+ fsntfsmount_fuse_handle );
++#else
++ fuse_unmount(
++ mount_point, fsntfsmount_fuse_channel );
++#endif
+
+ fuse_destroy(
+ fsntfsmount_fuse_handle );
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/sysutils/libfsntfs/pkg/PLIST,v
diff -u -r1.3 PLIST
--- pkg/PLIST 11 Mar 2022 19:57:34 -0000 1.3
+++ pkg/PLIST 26 Aug 2026 21:01:19 -0000
@@ -1,3 +1,4 @@
+@pkgpath sysutils/libfsntfs
@bin bin/fsntfsinfo
@bin bin/fsntfsmount
include/libfsntfs/
@@ -13,7 +14,8 @@
@lib lib/libfsntfs.so.${LIBfsntfs_VERSION}
lib/pkgconfig/libfsntfs.pc
lib/python${MODPY_VERSION}/site-packages/pyfsntfs.a
+@so
lib/python${MODPY_VERSION}/site-packages/pyfsntfs.${MODPY_PYC_MAGIC_TAG}so
lib/python${MODPY_VERSION}/site-packages/pyfsntfs.la
-@so lib/python${MODPY_VERSION}/site-packages/pyfsntfs.so
@man man/man1/fsntfsinfo.1
+@man man/man1/fsntfsmount.1
@man man/man3/libfsntfs.3
--
https://buzzdeee.reitenba.ch
libfsntfs.diff
Description: Binary data
