From 354e514341600aceb89b89a1d4f2385c048642f9 Mon Sep 17 00:00:00 2001 From: bouyer Date: Sun, 2 Oct 2016 16:33:28 +0000 Subject: Add fuse-sparsebundlefs version 20160928: Mac OS X v10.5 (Leopard) introduced the concept of sparse-bundle disk images, where the data is stored as a collection of small, fixed-size band-files instead of as a single monolithic file. This allows for more efficient backups of the disk image, as only the changed bands need to be stored. One common source of sparse-bundles is Mac OS' backup utility, Time Machine, which stores the backup data within a sparse-bundle image on the chosen backup volume. This software package implements a FUSE virtual filesystem for read-only access to the sparse-bundle, as if it was a single monolithic image. --- filesystems/fuse-sparsebundlefs/DESCR | 11 ++++++++++ filesystems/fuse-sparsebundlefs/Makefile | 24 ++++++++++++++++++++++ filesystems/fuse-sparsebundlefs/PLIST | 2 ++ filesystems/fuse-sparsebundlefs/distinfo | 7 +++++++ .../fuse-sparsebundlefs/patches/patch-Makefile | 24 ++++++++++++++++++++++ 5 files changed, 68 insertions(+) create mode 100644 filesystems/fuse-sparsebundlefs/DESCR create mode 100644 filesystems/fuse-sparsebundlefs/Makefile create mode 100644 filesystems/fuse-sparsebundlefs/PLIST create mode 100644 filesystems/fuse-sparsebundlefs/distinfo create mode 100644 filesystems/fuse-sparsebundlefs/patches/patch-Makefile (limited to 'filesystems') diff --git a/filesystems/fuse-sparsebundlefs/DESCR b/filesystems/fuse-sparsebundlefs/DESCR new file mode 100644 index 00000000000..3d73c56b1ac --- /dev/null +++ b/filesystems/fuse-sparsebundlefs/DESCR @@ -0,0 +1,11 @@ +Mac OS X v10.5 (Leopard) introduced the concept of sparse-bundle disk images, +where the data is stored as a collection of small, fixed-size band-files +instead of as a single monolithic file. This allows for more efficient +backups of the disk image, as only the changed bands need to be stored. + +One common source of sparse-bundles is Mac OS' backup utility, Time Machine, +which stores the backup data within a sparse-bundle image on the chosen +backup volume. + +This software package implements a FUSE virtual filesystem for read-only +access to the sparse-bundle, as if it was a single monolithic image. diff --git a/filesystems/fuse-sparsebundlefs/Makefile b/filesystems/fuse-sparsebundlefs/Makefile new file mode 100644 index 00000000000..5b9c46aef0c --- /dev/null +++ b/filesystems/fuse-sparsebundlefs/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1 2016/10/02 16:33:28 bouyer Exp $ +# + +DISTNAME= fuse-sparsebundlefs-20160928 +CATEGORIES= filesystems +MASTER_SITES= ${MASTER_SITE_GITHUB:=torarnv/} +GITHUB_PROJECT= sparsebundlefs +GITHUB_TAG= f3ccd20bd6393b05c9949810feb0e0b366b86348 + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/torarnv/sparsebundlefs +COMMENT= FUSE filesystem for reading Mac OS sparse-bundle disk images. +LICENSE= 2-clause-bsd + +USE_LANGUAGES= c c++ +USE_TOOLS+= gmake pkg-config + +INSTALLATION_DIRS= bin + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sparsebundlefs ${DESTDIR}/${PREFIX}/bin/ + +.include "../../mk/fuse.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/filesystems/fuse-sparsebundlefs/PLIST b/filesystems/fuse-sparsebundlefs/PLIST new file mode 100644 index 00000000000..7593d1a88e0 --- /dev/null +++ b/filesystems/fuse-sparsebundlefs/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2016/10/02 16:33:28 bouyer Exp $ +bin/sparsebundlefs diff --git a/filesystems/fuse-sparsebundlefs/distinfo b/filesystems/fuse-sparsebundlefs/distinfo new file mode 100644 index 00000000000..cecf865b466 --- /dev/null +++ b/filesystems/fuse-sparsebundlefs/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/10/02 16:33:28 bouyer Exp $ + +SHA1 (fuse-sparsebundlefs-20160928-f3ccd20bd6393b05c9949810feb0e0b366b86348.tar.gz) = 90ed4fdeee6889fbf227850377759b9705da4d80 +RMD160 (fuse-sparsebundlefs-20160928-f3ccd20bd6393b05c9949810feb0e0b366b86348.tar.gz) = f7ce993119884b9c885a088736879b2231510f33 +SHA512 (fuse-sparsebundlefs-20160928-f3ccd20bd6393b05c9949810feb0e0b366b86348.tar.gz) = df0cc02f7dba0fc5b534004b3fe322d36cd03bacb42bbc7564b8f29f910773b16a861e965f1834447341f642d16a9379bcd8468bdcf389f17cf27f6bccb61dbd +Size (fuse-sparsebundlefs-20160928-f3ccd20bd6393b05c9949810feb0e0b366b86348.tar.gz) = 8070 bytes +SHA1 (patch-Makefile) = 5a7ae0323fdfdc6e3c117e97ea5734074c10adae diff --git a/filesystems/fuse-sparsebundlefs/patches/patch-Makefile b/filesystems/fuse-sparsebundlefs/patches/patch-Makefile new file mode 100644 index 00000000000..64333548697 --- /dev/null +++ b/filesystems/fuse-sparsebundlefs/patches/patch-Makefile @@ -0,0 +1,24 @@ +$NetBSD: patch-Makefile,v 1.1 2016/10/02 16:33:28 bouyer Exp $ + +--- Makefile.orig 2016-09-27 23:50:42.000000000 +0200 ++++ Makefile 2016-10-02 18:19:10.000000000 +0200 +@@ -3,14 +3,14 @@ + PKG_CONFIG = pkg-config + override CFLAGS += -Wall -O2 -g + +-GCC_4_2_OR_HIGHER := $(shell expr `$(CXX) -dumpversion | sed 's/\.//g'` \>= 420) +-ifeq "$(GCC_4_2_OR_HIGHER)" "1" +- CFLAGS += -march=native +-endif +- + DEFINES = -DFUSE_USE_VERSION=26 + + ifeq ($(shell uname), Darwin) ++ GCC_4_2_OR_HIGHER := $(shell expr `$(CXX) -dumpversion | sed 's/\.//g'` \>= 420) ++ ifeq "$(GCC_4_2_OR_HIGHER)" "1" ++ CFLAGS += -march=native ++ endif ++ + # Pick up OSXFUSE, even with pkg-config from MacPorts + PKG_CONFIG := PKG_CONFIG_PATH=/usr/local/lib/pkgconfig $(PKG_CONFIG) + else ifeq ($(shell uname), Linux) -- cgit v1.2.3