summaryrefslogtreecommitdiff
path: root/filesystems
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2019-02-25 01:00:38 +0000
committermanu <manu@pkgsrc.org>2019-02-25 01:00:38 +0000
commit5a685c158c657c4a31eda759f02779f2f0871d2e (patch)
treeb1e57e99f3e2c06cb53a6d6ea5e0e6dcd11037fc /filesystems
parent0748445e258119611eac4087e9f7c015bf9e6f11 (diff)
downloadpkgsrc-5a685c158c657c4a31eda759f02779f2f0871d2e.tar.gz
Added filesytems/ltfs version 2.4.2.0.0, filesytems/ltfs-ltotape version 0.1
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, user can access to the tape via filesystem API. Objective of this project is being the reference implementation of the LTFS format Specifications in SNIA (https://www.snia.org/tech_activities/standards/curr_standards/ltfs). At this time, the LTFS format specifications 2.4 is the target
Diffstat (limited to 'filesystems')
-rw-r--r--filesystems/ltfs-ltotape/DESCR1
-rw-r--r--filesystems/ltfs-ltotape/MESSAGE7
-rw-r--r--filesystems/ltfs-ltotape/Makefile28
-rw-r--r--filesystems/ltfs-ltotape/PLIST2
-rw-r--r--filesystems/ltfs-ltotape/distinfo7
-rw-r--r--filesystems/ltfs-ltotape/patches/patch-Makefile.am14
-rw-r--r--filesystems/ltfs/DESCR9
-rw-r--r--filesystems/ltfs/MESSAGE.NetBSD20
-rw-r--r--filesystems/ltfs/Makefile46
-rw-r--r--filesystems/ltfs/PLIST48
-rw-r--r--filesystems/ltfs/buildlink3.mk13
-rw-r--r--filesystems/ltfs/distinfo7
-rw-r--r--filesystems/ltfs/patches/patch-conf_Makefile.am30
13 files changed, 232 insertions, 0 deletions
diff --git a/filesystems/ltfs-ltotape/DESCR b/filesystems/ltfs-ltotape/DESCR
new file mode 100644
index 00000000000..2d579eec036
--- /dev/null
+++ b/filesystems/ltfs-ltotape/DESCR
@@ -0,0 +1 @@
+HPE ltotape tape backend for LTFS
diff --git a/filesystems/ltfs-ltotape/MESSAGE b/filesystems/ltfs-ltotape/MESSAGE
new file mode 100644
index 00000000000..12d1956ad70
--- /dev/null
+++ b/filesystems/ltfs-ltotape/MESSAGE
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2019/02/25 01:00:39 manu Exp $
+
+Enable ltotape by setting the following in ${PKG_SYSCONFDIR}/ltfs.conf
+default tape ltotape
+plugin tape ltotape ${PREFIX}/lib/ltfs/libdriver-ltotape.so
+===========================================================================
diff --git a/filesystems/ltfs-ltotape/Makefile b/filesystems/ltfs-ltotape/Makefile
new file mode 100644
index 00000000000..c42b658ed68
--- /dev/null
+++ b/filesystems/ltfs-ltotape/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2019/02/25 01:00:39 manu Exp $
+
+GITHUB_PROJECT= ltfs-backends
+DISTNAME= v0.1
+PKGNAME= ltfs-ltotape-${DISTNAME:S/v//}
+CATEGORIES= filesystems
+MASTER_SITES= ${MASTER_SITE_GITHUB:=LinearTapeFileSystem/}/${GITHUB_PROJECT}/archive/
+DIST_SUBDIR= ${GITHUB_PROJECT}
+WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${DISTNAME:S/v//}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/LinearTapeFileSystem/ltfs-backends/
+COMMENT= HPE ltotape tape backend for LTFS
+LICENSE= gnu-lgpl-v2
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= autoheader automake autoreconf gmake pkg-config
+USE_LANGUAGES= c
+
+CPPFLAGS.NetBSD+= -D_KERNTYPES
+
+pre-configure:
+ cd ${WRKSRC} && ./autogen.sh
+
+.include "../../filesystems/ltfs/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/filesystems/ltfs-ltotape/PLIST b/filesystems/ltfs-ltotape/PLIST
new file mode 100644
index 00000000000..2c5d205de97
--- /dev/null
+++ b/filesystems/ltfs-ltotape/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2019/02/25 01:00:39 manu Exp $
+lib/ltfs/libdriver-ltotape.la
diff --git a/filesystems/ltfs-ltotape/distinfo b/filesystems/ltfs-ltotape/distinfo
new file mode 100644
index 00000000000..776b0f51737
--- /dev/null
+++ b/filesystems/ltfs-ltotape/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/02/25 01:00:39 manu Exp $
+
+SHA1 (ltfs-backends/v0.1.tar.gz) = c6dbfa95afefe8a11ea56a321f78c67b39a107f6
+RMD160 (ltfs-backends/v0.1.tar.gz) = 1337919ec2fe9b0ce83b8ba60e81bc9eda78cf7d
+SHA512 (ltfs-backends/v0.1.tar.gz) = 464e4456178e4fe6895fb954a5c7eec7d9ad84e2c0a8887a135e93aaa5807ec493430497ccc56a499f25e02cabf226a4be8574948f97affb3733188af6d8371a
+Size (ltfs-backends/v0.1.tar.gz) = 47827 bytes
+SHA1 (patch-Makefile.am) = d9087041b9d88a23a64f2419cf9c5c60e66b575a
diff --git a/filesystems/ltfs-ltotape/patches/patch-Makefile.am b/filesystems/ltfs-ltotape/patches/patch-Makefile.am
new file mode 100644
index 00000000000..c3c19c3d212
--- /dev/null
+++ b/filesystems/ltfs-ltotape/patches/patch-Makefile.am
@@ -0,0 +1,14 @@
+$NetBSD: patch-Makefile.am,v 1.1 2019/02/25 01:00:39 manu Exp $
+
+Make sure config.h is not copied at install time, we do not need it.
+
+--- Makefile.am.orig 2019-02-24 06:56:41.830962689 +0000
++++ Makefile.am 2019-02-24 06:56:46.505946016 +0000
+@@ -1,6 +1,6 @@
+ ACLOCAL_AMFLAGS = -I m4
+
+-nobase_pkginclude_HEADERS = config.h
++#nobase_pkginclude_HEADERS = config.h
+
+ SUBDIRS = messages src/tape_drivers/netbsd/ltotape
+
diff --git a/filesystems/ltfs/DESCR b/filesystems/ltfs/DESCR
new file mode 100644
index 00000000000..53bfd5805ec
--- /dev/null
+++ b/filesystems/ltfs/DESCR
@@ -0,0 +1,9 @@
+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, user can access to the tape via filesystem API.
+
+Objective of this project is being the reference implementation of
+the LTFS format Specifications in SNIA
+(https://www.snia.org/tech_activities/standards/curr_standards/ltfs).
+
+At this time, the LTFS format specifications 2.4 is the target
diff --git a/filesystems/ltfs/MESSAGE.NetBSD b/filesystems/ltfs/MESSAGE.NetBSD
new file mode 100644
index 00000000000..fa716e58d41
--- /dev/null
+++ b/filesystems/ltfs/MESSAGE.NetBSD
@@ -0,0 +1,20 @@
+===========================================================================
+$NetBSD: MESSAGE.NetBSD,v 1.1 2019/02/25 01:00:39 manu Exp $
+
+LTFS requires fixes to base-system libperfuse that have made been available
+at the dates below:
+ NetBSD-current: Sat, Feb 9th 2019
+ NetBSD-8 branch: Sun, Feb 10th 2019
+ NetBSD-7-1 branch: not available
+ NetBSD-7-0 branch: not available
+
+Releases after NetBSD 8.0 will contain the fix. For other releases, you
+may either:
+
+- upgrade sources for src/lib/libperfuse and rebuild it. The patch with
+ the relevant fix can be obtained by:
+ cvs rdiff -u -r1.85 -r1.86 src/lib/libperfuse/ops.c
+
+- use libperfuse from pkgsrc by setting PREFER_PKGSRC=perfuse in mk.conf,
+ and rebuild filesystems/fuse
+===========================================================================
diff --git a/filesystems/ltfs/Makefile b/filesystems/ltfs/Makefile
new file mode 100644
index 00000000000..d57646631e3
--- /dev/null
+++ b/filesystems/ltfs/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1 2019/02/25 01:00:39 manu Exp $
+
+GITHUB_PROJECT= ltfs
+DISTNAME= v2.4.2.0-pre0
+PKGNAME= ${GITHUB_PROJECT}-${DISTNAME:S/v//:S/-pre0/.0/}
+CATEGORIES= filesystems
+MASTER_SITES= ${MASTER_SITE_GITHUB:=LinearTapeFileSystem/}/${GITHUB_PROJECT}/archive/
+DIST_SUBDIR= ${GITHUB_PROJECT}
+WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${DISTNAME:S/v//}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/LinearTapeFileSystem/ltfs/
+COMMENT= Linear FileSystem for LTO and DAT tapes
+LICENSE= modified-bsd
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= autoheader automake autoreconf gmake pkg-config
+USE_LANGUAGES= c
+
+REPLACE_SH+= init.d/ltfs
+
+EGDIR= ${PREFIX}/share/examples/ltfs/
+CONF_FILES+= ${EGDIR}/ltfs.conf ${PKG_SYSCONFDIR}/ltfs.conf
+CONF_FILES+= ${EGDIR}/ltfs.conf.local ${PKG_SYSCONFDIR}/ltfs.conf.local
+
+pre-configure:
+ cd ${WRKSRC} && ./autogen.sh
+
+pre-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/conf/ltfs.conf ${DESTDIR}${EGDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/conf/ltfs.conf.local ${DESTDIR}${EGDIR}/
+
+# net/net-snmp brings -lperl but fails to buildinlink it
+# or set approriate -L flag, hence we must help here, despite
+# we do not need -lperl.
+.include "../../lang/perl5/buildlink3.mk"
+LDFLAGS+= -L${PREFIX}/${PERL5_SUB_INSTALLARCHLIB}/CORE
+
+.include "../../devel/libuuid/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../net/net-snmp/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../mk/fuse.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/filesystems/ltfs/PLIST b/filesystems/ltfs/PLIST
new file mode 100644
index 00000000000..84a83c6dd77
--- /dev/null
+++ b/filesystems/ltfs/PLIST
@@ -0,0 +1,48 @@
+@comment $NetBSD: PLIST,v 1.1 2019/02/25 01:00:39 manu Exp $
+bin/ltfs
+bin/ltfsck
+bin/mkltfs
+include/ltfs/config.h
+include/ltfs/libltfs/arch/arch_info.h
+include/ltfs/libltfs/arch/signal_internal.h
+include/ltfs/libltfs/arch/time_internal.h
+include/ltfs/libltfs/dcache_ops.h
+include/ltfs/libltfs/iosched_ops.h
+include/ltfs/libltfs/kmi_ops.h
+include/ltfs/libltfs/ltfs.h
+include/ltfs/libltfs/ltfs_error.h
+include/ltfs/libltfs/ltfs_fsops.h
+include/ltfs/libltfs/ltfs_locking.h
+include/ltfs/libltfs/ltfs_locking_new.h
+include/ltfs/libltfs/ltfs_locking_old.h
+include/ltfs/libltfs/ltfs_thread.h
+include/ltfs/libltfs/ltfs_types.h
+include/ltfs/libltfs/ltfslogging.h
+include/ltfs/libltfs/ltfstrace.h
+include/ltfs/libltfs/plugin.h
+include/ltfs/libltfs/queue.h
+include/ltfs/libltfs/tape.h
+include/ltfs/libltfs/tape_ops.h
+include/ltfs/libltfs/uthash.h
+include/ltfs/libltfs/uthash_ext.h
+include/ltfs/tape_drivers/ibm_tape.h
+include/ltfs/tape_drivers/spc_op_codes.h
+include/ltfs/tape_drivers/ssc_op_codes.h
+include/ltfs/tape_drivers/tape_drivers.h
+lib/libltfs.la
+lib/ltfs/libiosched-fcfs.so
+lib/ltfs/libiosched-unified.so
+lib/ltfs/libkmi-flatfile.so
+lib/ltfs/libkmi-simple.so
+lib/ltfs/libtape-file.so
+lib/ltfs/libtape-itdtimg.so
+lib/ltfs/libtape-scsipi-ibmtape.so
+lib/pkgconfig/ltfs.pc
+man/man8/ltfs-sde.8
+man/man8/ltfsck.8
+man/man8/mkltfs.8
+share/ltfs/ltfs
+share/examples/ltfs/ltfs.conf
+share/examples/ltfs/ltfs.conf.local
+share/snmp/LTFS-MIB.txt
+share/snmp/LtfsSnmpTrapDef.txt
diff --git a/filesystems/ltfs/buildlink3.mk b/filesystems/ltfs/buildlink3.mk
new file mode 100644
index 00000000000..8187dbb2809
--- /dev/null
+++ b/filesystems/ltfs/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/02/25 01:00:39 manu Exp $
+
+BUILDLINK_TREE+= ltfs
+
+.if !defined(LTFS_BUILDLINK3_MK)
+LTFS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ltfs+= ltfs>=2.4.2.0.0
+BUILDLINK_ABI_DEPENDS.ltfs+= ltfs>=2.4.2.0.0
+BUILDLINK_PKGSRCDIR.ltfs?= ../../filesystems/ltfs
+.endif # LTFS_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -ltfs
diff --git a/filesystems/ltfs/distinfo b/filesystems/ltfs/distinfo
new file mode 100644
index 00000000000..80039aef45b
--- /dev/null
+++ b/filesystems/ltfs/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/02/25 01:00:39 manu Exp $
+
+SHA1 (ltfs/v2.4.2.0-pre0.tar.gz) = ecce71a30f0beb8281b6fbf1a28c8a33b082a595
+RMD160 (ltfs/v2.4.2.0-pre0.tar.gz) = 69fcb0ff2fae7cc509005b14d5fe0a5953456c30
+SHA512 (ltfs/v2.4.2.0-pre0.tar.gz) = 700690203ff71d01fce130809df09ce313951a5e427136ae4e071d47a46cbad5736faaef7a2d793adaff147a5c833c33690f7efc1d432828b666244c3e291f8b
+Size (ltfs/v2.4.2.0-pre0.tar.gz) = 591900 bytes
+SHA1 (patch-conf_Makefile.am) = 95ea905de7c4c71d8cc0effff99930c5af7997a0
diff --git a/filesystems/ltfs/patches/patch-conf_Makefile.am b/filesystems/ltfs/patches/patch-conf_Makefile.am
new file mode 100644
index 00000000000..013a79f48ad
--- /dev/null
+++ b/filesystems/ltfs/patches/patch-conf_Makefile.am
@@ -0,0 +1,30 @@
+$NetBSD: patch-conf_Makefile.am,v 1.1 2019/02/25 01:00:39 manu Exp $
+
+Do not install confguration file so that we can copy them in
+/usr/pkg/share/examples/ltfs instead.
+
+--- conf/Makefile.am.orig 2019-02-20 06:22:33.000000000 +0100
++++ conf/Makefile.am 2019-02-24 03:15:52.062219251 +0100
+@@ -1,5 +1,5 @@
+-dist_sysconf_DATA = ltfs.conf
++noinst_DATA = ltfs.conf
+
+ PLAT_OPT =
+
+ if PLATFORM_LINUX
+@@ -31,11 +31,11 @@
+ mv ltfs.conf ltfs.conf.tmp
+ ${SED} -e "s!__CONFDIR__!@sysconfdir@!" ltfs.conf.tmp >ltfs.conf
+ rm ltfs.conf.tmp
+
+-install-data-local:
+- if [ ! -f "$(DESTDIR)$(sysconfdir)/ltfs.conf.local" ]; then \
+- cp ltfs.conf.local "$(DESTDIR)$(sysconfdir)/ltfs.conf.local"; \
+- fi
++#install-data-local:
++# if [ ! -f "$(DESTDIR)$(sysconfdir)/ltfs.conf.local" ]; then \
++# cp ltfs.conf.local "$(DESTDIR)$(sysconfdir)/ltfs.conf.local"; \
++# fi
+
+ clean-local:
+ rm -f ltfs.conf