From 6e2da9672f79f44048d597f0f61e4646cdeade9d Mon Sep 17 00:00:00 2001 From: Robert Clausecker Date: Fri, 27 Sep 2024 12:48:46 +0200 Subject: filesystems: add new category for file systems and related utilities The filesystems category houses file systems and file system utilities. It is added mainly to turn the sysutils/fusefs-* pseudo-category into a proper one, but is also useful for the sundry of other file systems related ports found in the tree. Ports that seem like they belong there are moved to the new category. Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are not moved as they currently don't fetch and don't have TIMESTAMP set in their distinfo, but that is required to be able to push a rename of the port by the pre-receive hook. Approved by: portmgr (rene) Reviewed by: mat Pull Request: https://github.com/freebsd/freebsd-ports/pull/302 PR: 281988 --- filesystems/ltfs/Makefile | 52 +++++++++++++++++++++ filesystems/ltfs/distinfo | 3 ++ .../patch-src_tape__drivers_freebsd_cam_cam__tc.c | 11 +++++ filesystems/ltfs/pkg-descr | 3 ++ filesystems/ltfs/pkg-message | 15 ++++++ filesystems/ltfs/pkg-plist | 54 ++++++++++++++++++++++ 6 files changed, 138 insertions(+) create mode 100644 filesystems/ltfs/Makefile create mode 100644 filesystems/ltfs/distinfo create mode 100644 filesystems/ltfs/files/patch-src_tape__drivers_freebsd_cam_cam__tc.c create mode 100644 filesystems/ltfs/pkg-descr create mode 100644 filesystems/ltfs/pkg-message create mode 100644 filesystems/ltfs/pkg-plist (limited to 'filesystems/ltfs') diff --git a/filesystems/ltfs/Makefile b/filesystems/ltfs/Makefile new file mode 100644 index 000000000000..15a3f5985c9d --- /dev/null +++ b/filesystems/ltfs/Makefile @@ -0,0 +1,52 @@ +PORTNAME= ltfs +DISTVERSIONPREFIX= v +DISTVERSION= 2.4.6.2 +DISTVERSIONSUFFIX= -10513 +CATEGORIES= filesystems sysutils + +MAINTAINER= kbowling@FreeBSD.org +COMMENT= Reference implementation of LTFS for stand-alone tape drive +WWW= https://github.com/LinearTapeFileSystem/ltfs + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libicudata.so:devel/icu \ + libpkg.so:${PKG_ORIGIN} \ + libuuid.so:misc/e2fsprogs-libuuid + +USES= autoreconf compiler:c11 fuse gnome libtool:build pkgconfig \ + python shebangfix ssl + +USE_GITHUB= yes +GH_ACCOUNT= LinearTapeFileSystem +USE_GNOME= libxml2 +USE_LDCONFIG= yes + +SHEBANG_FILES= src/utils/ltfs_ordered_copy + +GNU_CONFIGURE= yes +GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share + +CONFIGURE_ARGS+= --enable-icu-6x + +#INSTALL_TARGET= install-strip + +OPTIONS_DEFINE= DEBUG SNMP +OPTIONS_SUB= yes + +DEBUG_DESC= Build without optimization and extended debug flags +SNMP_DESC= SNMP trap support + +DEBUG_CONFIGURE_ON= --enable-debug +DEBUG_CONFIGURE_OFF= --enable-fast + +SNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp +SNMP_USES= perl5 +SNMP_CONFIGURE_ENABLE= snmp + +post-install: + @${RM} ${STAGEDIR}${DATADIR}/ltfs + @${RMDIR} ${STAGEDIR}${DATADIR} + +.include diff --git a/filesystems/ltfs/distinfo b/filesystems/ltfs/distinfo new file mode 100644 index 000000000000..bdad82fb2bfd --- /dev/null +++ b/filesystems/ltfs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1721794312 +SHA256 (LinearTapeFileSystem-ltfs-v2.4.6.2-10513_GH0.tar.gz) = 3ea9b210507f6bb2c9cd8f9d92f0c2ee321e24241dc5a402e557409a71531c91 +SIZE (LinearTapeFileSystem-ltfs-v2.4.6.2-10513_GH0.tar.gz) = 629281 diff --git a/filesystems/ltfs/files/patch-src_tape__drivers_freebsd_cam_cam__tc.c b/filesystems/ltfs/files/patch-src_tape__drivers_freebsd_cam_cam__tc.c new file mode 100644 index 000000000000..d4be8240818e --- /dev/null +++ b/filesystems/ltfs/files/patch-src_tape__drivers_freebsd_cam_cam__tc.c @@ -0,0 +1,11 @@ +--- src/tape_drivers/freebsd/cam/cam_tc.c.orig 2023-09-17 04:20:07 UTC ++++ src/tape_drivers/freebsd/cam/cam_tc.c +@@ -1241,7 +1241,7 @@ static int camtape_get_next_block_to_xfer(void *device + camtape_process_errors(softc, rc, msg, "READPOS", true); + else { + pos->partition = ext_data.partition; +- pos->block = scsi_8btou64(ext_data.last_object) ++ pos->block = scsi_8btou64(ext_data.last_object); + ltfsmsg(LTFS_DEBUG, 30398D, "next-block-to-xfer", + (unsigned long long) pos->block, 0, 0, softc->drive_serial); + } diff --git a/filesystems/ltfs/pkg-descr b/filesystems/ltfs/pkg-descr new file mode 100644 index 000000000000..910dcd0a543f --- /dev/null +++ b/filesystems/ltfs/pkg-descr @@ -0,0 +1,3 @@ +Linear Tape File System (LTFS) is a filesystem to mount a LTFS formatted tape +in a tape drive. Once LTFS mounts a LTFS formatted tape as filesystem, users +can access to the tape via filesystem API. diff --git a/filesystems/ltfs/pkg-message b/filesystems/ltfs/pkg-message new file mode 100644 index 000000000000..a0fee2742d98 --- /dev/null +++ b/filesystems/ltfs/pkg-message @@ -0,0 +1,15 @@ +[ +{ type: install + message: <