From 1183796a490301c04708b39008177561aa3b5749 Mon Sep 17 00:00:00 2001 From: bouyer Date: Sun, 2 Oct 2016 16:35:02 +0000 Subject: Add fuse-darling-dmg version 20160310: This project allows ordinary users to directly mount OS X disk images under Linux via FUSE. darling-dmg is part of Darling - http://www.darlinghq.org Without darling-dmg, the only way to do this would be to manually extract the DMG file, become root and mount the HFS+ filesystem as root. This is slow, wasteful and may even crash your system. The project's author has seen the Linux HFS+ implementation cause kernel crashes. --- filesystems/fuse-darling-dmg/DESCR | 7 +++++++ filesystems/fuse-darling-dmg/Makefile | 22 ++++++++++++++++++++++ filesystems/fuse-darling-dmg/PLIST | 3 +++ filesystems/fuse-darling-dmg/distinfo | 7 +++++++ .../fuse-darling-dmg/patches/patch-src_be.h | 11 +++++++++++ .../patches/patch-src_main-fuse.cpp | 11 +++++++++++ 6 files changed, 61 insertions(+) create mode 100644 filesystems/fuse-darling-dmg/DESCR create mode 100644 filesystems/fuse-darling-dmg/Makefile create mode 100644 filesystems/fuse-darling-dmg/PLIST create mode 100644 filesystems/fuse-darling-dmg/distinfo create mode 100644 filesystems/fuse-darling-dmg/patches/patch-src_be.h create mode 100644 filesystems/fuse-darling-dmg/patches/patch-src_main-fuse.cpp diff --git a/filesystems/fuse-darling-dmg/DESCR b/filesystems/fuse-darling-dmg/DESCR new file mode 100644 index 00000000000..f4c41b31e53 --- /dev/null +++ b/filesystems/fuse-darling-dmg/DESCR @@ -0,0 +1,7 @@ +This project allows ordinary users to directly mount OS X disk images under +Linux via FUSE. darling-dmg is part of Darling - http://www.darlinghq.org + +Without darling-dmg, the only way to do this would be to manually extract +the DMG file, become root and mount the HFS+ filesystem as root. This is slow, +wasteful and may even crash your system. The project's author has seen the +Linux HFS+ implementation cause kernel crashes. diff --git a/filesystems/fuse-darling-dmg/Makefile b/filesystems/fuse-darling-dmg/Makefile new file mode 100644 index 00000000000..abd5964868c --- /dev/null +++ b/filesystems/fuse-darling-dmg/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2016/10/02 16:35:02 bouyer Exp $ +# + +DISTNAME= fuse-darling-dmg-20160310 +CATEGORIES= filesystems +MASTER_SITES= ${MASTER_SITE_GITHUB:=darlinghq/} +GITHUB_PROJECT= darling-dmg +GITHUB_TAG= b7ce87bfe59c2ed758165c8650402f6d4c84d184 + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/darlinghq/darling-dmg +COMMENT= FUSE module for .dmg files (containing an HFS+ filesystem) +LICENSE= gnu-gpl-v3 + +USE_LANGUAGES= c c++ +USE_CMAKE= yes + +.include "../../devel/cmake/buildlink3.mk" +.include "../../textproc/icu/buildlink3.mk" +.include "../../textproc/libxml2/buildlink3.mk" +.include "../../mk/fuse.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/filesystems/fuse-darling-dmg/PLIST b/filesystems/fuse-darling-dmg/PLIST new file mode 100644 index 00000000000..f5c810f95b6 --- /dev/null +++ b/filesystems/fuse-darling-dmg/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2016/10/02 16:35:02 bouyer Exp $ +bin/darling-dmg +lib/libdmg.so diff --git a/filesystems/fuse-darling-dmg/distinfo b/filesystems/fuse-darling-dmg/distinfo new file mode 100644 index 00000000000..4ba7206f35c --- /dev/null +++ b/filesystems/fuse-darling-dmg/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/10/02 16:35:02 bouyer Exp $ + +SHA1 (fuse-darling-dmg-20160310-b7ce87bfe59c2ed758165c8650402f6d4c84d184.tar.gz) = c251fd01bcb843244ae8aa0f9a0d74cf9a6b4974 +RMD160 (fuse-darling-dmg-20160310-b7ce87bfe59c2ed758165c8650402f6d4c84d184.tar.gz) = de3f73bb4e9e66c1b6f98beb7e5e6b647be91147 +Size (fuse-darling-dmg-20160310-b7ce87bfe59c2ed758165c8650402f6d4c84d184.tar.gz) = 50309 bytes +SHA1 (patch-src_be.h) = 9c6554c84ee3ed15cc1232b70cf87c23aa4c88fa +SHA1 (patch-src_main-fuse.cpp) = a302b6467185f6f94731b07ed04792b6a5ef2801 diff --git a/filesystems/fuse-darling-dmg/patches/patch-src_be.h b/filesystems/fuse-darling-dmg/patches/patch-src_be.h new file mode 100644 index 00000000000..99a28cfd0f2 --- /dev/null +++ b/filesystems/fuse-darling-dmg/patches/patch-src_be.h @@ -0,0 +1,11 @@ +--- src/be.h.orig 2016-03-10 17:31:29.000000000 +0100 ++++ src/be.h 2016-03-10 17:31:58.000000000 +0100 +@@ -1,7 +1,7 @@ + #ifndef BENDIAN_H + #define BENDIAN_H + #include +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__NetBSD__) + #include + #elif defined(_WIN32) + static uint16_t htobe16(uint16_t x) { diff --git a/filesystems/fuse-darling-dmg/patches/patch-src_main-fuse.cpp b/filesystems/fuse-darling-dmg/patches/patch-src_main-fuse.cpp new file mode 100644 index 00000000000..8ad9abbdf5d --- /dev/null +++ b/filesystems/fuse-darling-dmg/patches/patch-src_main-fuse.cpp @@ -0,0 +1,11 @@ +--- src/main-fuse.cpp.orig 2016-03-10 17:36:33.000000000 +0100 ++++ src/main-fuse.cpp 2016-03-10 17:36:50.000000000 +0100 +@@ -2,7 +2,7 @@ + #include + #include + #include +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__NetBSD__) + #include + #else + #include -- cgit v1.2.3