pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Temporarily add fuse-encfs



Module Name:	pkgsrc-wip
Committed By:	coypu <coypu%sdf.org@localhost>
Pushed By:	coypu
Date:		Mon Jun 19 17:37:13 2017 +0300
Changeset:	6986a1ceb7b5c04a5b02e53df9ebeaed0c774270

Added Files:
	fuse-encfs/DESCR
	fuse-encfs/Makefile
	fuse-encfs/PLIST
	fuse-encfs/distinfo
	fuse-encfs/patches/patch-cmake_FindFUSE.cmake
	fuse-encfs/patches/patch-encfs_DirNode.cpp
	fuse-encfs/patches/patch-internal_easylogging++.h

Log Message:
Temporarily add fuse-encfs

This is intended for easy testing.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6986a1ceb7b5c04a5b02e53df9ebeaed0c774270

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 fuse-encfs/DESCR                                  |  6 +++
 fuse-encfs/Makefile                               | 29 ++++++++++++
 fuse-encfs/PLIST                                  | 56 +++++++++++++++++++++++
 fuse-encfs/distinfo                               |  9 ++++
 fuse-encfs/patches/patch-cmake_FindFUSE.cmake     | 17 +++++++
 fuse-encfs/patches/patch-encfs_DirNode.cpp        | 27 +++++++++++
 fuse-encfs/patches/patch-internal_easylogging++.h | 34 ++++++++++++++
 7 files changed, 178 insertions(+)

diffs:
diff --git a/fuse-encfs/DESCR b/fuse-encfs/DESCR
new file mode 100644
index 0000000000..8dcb2e8a92
--- /dev/null
+++ b/fuse-encfs/DESCR
@@ -0,0 +1,6 @@
+EncFS provides an encrypted filesystem in user-space. It runs without any
+special permissions and uses the FUSE library.
+
+As with most encrypted filesystems, Encfs is meant to provide security
+against off-line attacks; ie your notebook or backups fall into the wrong
+hands, etc.
diff --git a/fuse-encfs/Makefile b/fuse-encfs/Makefile
new file mode 100644
index 0000000000..67830c6233
--- /dev/null
+++ b/fuse-encfs/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.12 2016/03/05 11:28:29 jperkin Exp $
+#
+
+DISTNAME=	encfs-1.9.1
+PKGNAME=	fuse-${DISTNAME}
+CATEGORIES=	filesystems
+MASTER_SITES=	${MASTER_SITE_GITHUB:=vgough/}
+GITHUB_PROJECT=	encfs
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://www.arg0.net/encfs
+COMMENT=	FUSE Encrypted Filesystem
+
+USE_TOOLS+=	autoconf cmake pkg-config
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++
+
+CONFIGURE_DIRS=	${WRKDIR}/build
+CMAKE_ARG_PATH=	${WRKSRC}
+
+post-extract:
+	${RUN} mkdir -p ${WRKDIR}/build
+
+.include "../../devel/librlog/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/fuse.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/fuse-encfs/PLIST b/fuse-encfs/PLIST
new file mode 100644
index 0000000000..240345e5df
--- /dev/null
+++ b/fuse-encfs/PLIST
@@ -0,0 +1,56 @@
+@comment $NetBSD$
+bin/encfs
+bin/encfsctl
+bin/encfssh
+share/locale/ar/LC_MESSAGES/encfs.mo
+share/locale/be/LC_MESSAGES/encfs.mo
+share/locale/bg/LC_MESSAGES/encfs.mo
+share/locale/bs/LC_MESSAGES/encfs.mo
+share/locale/ca/LC_MESSAGES/encfs.mo
+share/locale/cs/LC_MESSAGES/encfs.mo
+share/locale/da/LC_MESSAGES/encfs.mo
+share/locale/de/LC_MESSAGES/encfs.mo
+share/locale/de_AT/LC_MESSAGES/encfs.mo
+share/locale/de_CH/LC_MESSAGES/encfs.mo
+share/locale/de_DE/LC_MESSAGES/encfs.mo
+share/locale/el/LC_MESSAGES/encfs.mo
+share/locale/eo/LC_MESSAGES/encfs.mo
+share/locale/es/LC_MESSAGES/encfs.mo
+share/locale/es_ES/LC_MESSAGES/encfs.mo
+share/locale/es_PE/LC_MESSAGES/encfs.mo
+share/locale/et/LC_MESSAGES/encfs.mo
+share/locale/fi/LC_MESSAGES/encfs.mo
+share/locale/fr/LC_MESSAGES/encfs.mo
+share/locale/fr_FR/LC_MESSAGES/encfs.mo
+share/locale/gl/LC_MESSAGES/encfs.mo
+share/locale/he/LC_MESSAGES/encfs.mo
+share/locale/hr/LC_MESSAGES/encfs.mo
+share/locale/hu/LC_MESSAGES/encfs.mo
+share/locale/id/LC_MESSAGES/encfs.mo
+share/locale/it/LC_MESSAGES/encfs.mo
+share/locale/ja/LC_MESSAGES/encfs.mo
+share/locale/ko/LC_MESSAGES/encfs.mo
+share/locale/lv/LC_MESSAGES/encfs.mo
+share/locale/nb/LC_MESSAGES/encfs.mo
+share/locale/nds/LC_MESSAGES/encfs.mo
+share/locale/nl/LC_MESSAGES/encfs.mo
+share/locale/nn/LC_MESSAGES/encfs.mo
+share/locale/oc/LC_MESSAGES/encfs.mo
+share/locale/pl/LC_MESSAGES/encfs.mo
+share/locale/pt/LC_MESSAGES/encfs.mo
+share/locale/pt_BR/LC_MESSAGES/encfs.mo
+share/locale/pt_PT/LC_MESSAGES/encfs.mo
+share/locale/ro/LC_MESSAGES/encfs.mo
+share/locale/ru/LC_MESSAGES/encfs.mo
+share/locale/sk/LC_MESSAGES/encfs.mo
+share/locale/sr/LC_MESSAGES/encfs.mo
+share/locale/sv/LC_MESSAGES/encfs.mo
+share/locale/ta/LC_MESSAGES/encfs.mo
+share/locale/tr/LC_MESSAGES/encfs.mo
+share/locale/uk/LC_MESSAGES/encfs.mo
+share/locale/vi/LC_MESSAGES/encfs.mo
+share/locale/zh_CN/LC_MESSAGES/encfs.mo
+share/locale/zh_HK/LC_MESSAGES/encfs.mo
+share/locale/zh_TW/LC_MESSAGES/encfs.mo
+share/man/man1/encfs.1
+share/man/man1/encfsctl.1
diff --git a/fuse-encfs/distinfo b/fuse-encfs/distinfo
new file mode 100644
index 0000000000..99374842d3
--- /dev/null
+++ b/fuse-encfs/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.5 2015/11/03 00:15:00 agc Exp $
+
+SHA1 (encfs-1.9.1.tar.gz) = 4af5a44645d0dd37fe329c3ca834b8f18e8352f5
+RMD160 (encfs-1.9.1.tar.gz) = 6d12d47e1e24e849df76ee2aa0b442a1b01ded74
+SHA512 (encfs-1.9.1.tar.gz) = 7ac0d2495d28dbca9e4c23c8c82321cdab6c37e8e37daf88dc9b3fe8d8521a4fa8889e20cdbde1f94fb4c51d3c4b5ea5b30fa6e612258285cc284d61e5d377ea
+Size (encfs-1.9.1.tar.gz) = 455910 bytes
+SHA1 (patch-cmake_FindFUSE.cmake) = 96de3fd60209f7900295beb96bb89c918faad3d1
+SHA1 (patch-encfs_DirNode.cpp) = 7c7ddc2a125e8dfb2373c700a2e5d1c5a69fab39
+SHA1 (patch-internal_easylogging++.h) = ad330f9e667dda23db51332e7e94adc107f8c1e8
diff --git a/fuse-encfs/patches/patch-cmake_FindFUSE.cmake b/fuse-encfs/patches/patch-cmake_FindFUSE.cmake
new file mode 100644
index 0000000000..3d57a526bc
--- /dev/null
+++ b/fuse-encfs/patches/patch-cmake_FindFUSE.cmake
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Also try to find (netbsd) librefuse
+
+--- cmake/FindFUSE.cmake.orig	2016-09-18 20:16:04.000000000 +0000
++++ cmake/FindFUSE.cmake
+@@ -13,8 +13,8 @@ if (APPLE)
+     set (FUSE_NAMES libosxfuse.dylib fuse)
+     set (FUSE_SUFFIXES osxfuse fuse)
+ else (APPLE)
+-    set (FUSE_NAMES fuse)
+-    set (FUSE_SUFFIXES fuse)
++    set (FUSE_NAMES fuse refuse)
++    set (FUSE_SUFFIXES fuse refuse)
+ endif (APPLE)
+ 
+ # find includes
diff --git a/fuse-encfs/patches/patch-encfs_DirNode.cpp b/fuse-encfs/patches/patch-encfs_DirNode.cpp
new file mode 100644
index 0000000000..83fa0ecd1b
--- /dev/null
+++ b/fuse-encfs/patches/patch-encfs_DirNode.cpp
@@ -0,0 +1,27 @@
+$NetBSD$
+
+Define _DIRENT_HAVE_D_TYPE at the top for all the OSes that support
+it. This is an untested functional change for FreeBSD and APPLE.
+
+--- encfs/DirNode.cpp.orig	2016-09-18 20:16:04.000000000 +0000
++++ encfs/DirNode.cpp
+@@ -42,6 +42,10 @@
+ #include "Error.h"
+ #include "Mutex.h"
+ 
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
++#define _DIRENT_HAVE_D_TYPE
++#endif
++
+ using namespace std;
+ 
+ namespace encfs {
+@@ -78,7 +82,7 @@ static bool _nextName(struct dirent *&de
+ 
+   if (de) {
+     if (fileType) {
+-#if defined(_DIRENT_HAVE_D_TYPE) || defined(__FreeBSD__) || defined(__APPLE__)
++#if defined(_DIRENT_HAVE_D_TYPE)
+       *fileType = de->d_type;
+ #else
+ #warning "struct dirent.d_type not supported"
diff --git a/fuse-encfs/patches/patch-internal_easylogging++.h b/fuse-encfs/patches/patch-internal_easylogging++.h
new file mode 100644
index 0000000000..a25e287705
--- /dev/null
+++ b/fuse-encfs/patches/patch-internal_easylogging++.h
@@ -0,0 +1,34 @@
+$NetBSD$
+
+NetBSD support, it's a unixy OS.
+
+--- internal/easylogging++.h.orig	2016-09-18 20:16:04.000000000 +0000
++++ internal/easylogging++.h
+@@ -99,13 +99,19 @@
+ #else
+ #   define ELPP_OS_FREEBSD 0
+ #endif
++#if (defined(__NetBSD__))
++#   define ELPP_OS_NETBSD 1
++#else
++#   define ELPP_OS_NETBSD 0
++#endif
++
+ #if (defined(__sun))
+ #   define ELPP_OS_SOLARIS 1
+ #else
+ #   define ELPP_OS_SOLARIS 0
+ #endif
+ // Unix
+-#if ((ELPP_OS_LINUX || ELPP_OS_MAC || ELPP_OS_FREEBSD || ELPP_OS_SOLARIS) && (!ELPP_OS_WINDOWS))
++#if ((ELPP_OS_LINUX || ELPP_OS_MAC || ELPP_OS_FREEBSD || ELPP_OS_NETBSD || ELPP_OS_SOLARIS) && (!ELPP_OS_WINDOWS))
+ #   define ELPP_OS_UNIX 1
+ #else
+ #   define ELPP_OS_UNIX 0
+@@ -6692,4 +6698,4 @@ el::base::debug::CrashHandler elCrashHan
+ #else
+ #   define START_EASYLOGGINGPP(argc, argv) el::Helpers::setArgs(argc, argv)
+ #endif  // defined(ELPP_UNICODE)
+-#endif // EASYLOGGINGPP_H
+\ No newline at end of file
++#endif // EASYLOGGINGPP_H


Home | Main Index | Thread Index | Old Index