summaryrefslogtreecommitdiff
path: root/filesystems
diff options
context:
space:
mode:
authorbouyer <bouyer>2016-10-02 16:35:02 +0000
committerbouyer <bouyer>2016-10-02 16:35:02 +0000
commit553654fbe2549117cafb186fad6f46f443acce28 (patch)
treeef0530ddb9fa2a79dd565c81e9c49b0e98cf344e /filesystems
parent354e514341600aceb89b89a1d4f2385c048642f9 (diff)
downloadpkgsrc-553654fbe2549117cafb186fad6f46f443acce28.tar.gz
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.
Diffstat (limited to 'filesystems')
-rw-r--r--filesystems/fuse-darling-dmg/DESCR7
-rw-r--r--filesystems/fuse-darling-dmg/Makefile22
-rw-r--r--filesystems/fuse-darling-dmg/PLIST3
-rw-r--r--filesystems/fuse-darling-dmg/distinfo7
-rw-r--r--filesystems/fuse-darling-dmg/patches/patch-src_be.h11
-rw-r--r--filesystems/fuse-darling-dmg/patches/patch-src_main-fuse.cpp11
6 files changed, 61 insertions, 0 deletions
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 <stdint.h>
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ #include <sys/endian.h>
+ #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 <cstring>
+ #include <iostream>
+ #include <cstdio>
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ #include <sys/endian.h>
+ #else
+ #include <endian.h>