summaryrefslogtreecommitdiff
path: root/filesystems/encfs
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2024-09-27 12:48:46 +0200
committerRobert Clausecker <fuz@FreeBSD.org>2024-11-06 16:17:35 +0100
commit6e2da9672f79f44048d597f0f61e4646cdeade9d (patch)
treec92e4b3158e3419e8cec38e00227d08dcdaab3e9 /filesystems/encfs
parentmath/sdpa: speed up build (diff)
filesystems: add new category for file systems and related utilities
The filesystems category houses file systems and file system utilities. It is added mainly to turn the sysutils/fusefs-* pseudo-category into a proper one, but is also useful for the sundry of other file systems related ports found in the tree. Ports that seem like they belong there are moved to the new category. Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are not moved as they currently don't fetch and don't have TIMESTAMP set in their distinfo, but that is required to be able to push a rename of the port by the pre-receive hook. Approved by: portmgr (rene) Reviewed by: mat Pull Request: https://github.com/freebsd/freebsd-ports/pull/302 PR: 281988
Diffstat (limited to 'filesystems/encfs')
-rw-r--r--filesystems/encfs/Makefile35
-rw-r--r--filesystems/encfs/distinfo3
-rw-r--r--filesystems/encfs/files/patch-CMakeLists.txt12
-rw-r--r--filesystems/encfs/files/patch-encfs_NullCipher.cpp11
-rw-r--r--filesystems/encfs/pkg-descr5
-rw-r--r--filesystems/encfs/pkg-plist56
6 files changed, 122 insertions, 0 deletions
diff --git a/filesystems/encfs/Makefile b/filesystems/encfs/Makefile
new file mode 100644
index 000000000000..a78fbf67063c
--- /dev/null
+++ b/filesystems/encfs/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= encfs
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.9.5
+PORTREVISION= 9
+CATEGORIES= filesystems
+PKGNAMEPREFIX= fusefs-
+
+MAINTAINER= dmgk@FreeBSD.org
+COMMENT= Encrypted pass-through FUSE filesystem
+WWW= http://www.arg0.net/encfs
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USES= cmake compiler:c++11-lib cpe fuse ssl
+CPE_VENDOR= ${PORTNAME}_project
+USE_GITHUB= yes
+GH_ACCOUNT= vgough
+
+OPTIONS_DEFINE= BUNDLED_TINYXML MANPAGES NLS
+OPTIONS_DEFAULT= BUNDLED_TINYXML MANPAGES
+OPTIONS_SUB= yes
+
+BUNDLED_TINYXML_DESC= Use bundled TinyXML2 instead of textproc/tinyxml2
+BUNDLED_TINYXML_CMAKE_BOOL= USE_INTERNAL_TINYXML
+BUNDLED_TINYXML_LIB_DEPENDS_OFF= libtinyxml2.so:textproc/tinyxml2
+
+MANPAGES_DESC= Install manpages (requires Perl 5)
+MANPAGES_USES= perl5
+MANPAGES_USE= perl5=build
+
+NLS_USES= gettext
+NLS_CMAKE_BOOL= ENABLE_NLS
+
+.include <bsd.port.mk>
diff --git a/filesystems/encfs/distinfo b/filesystems/encfs/distinfo
new file mode 100644
index 000000000000..9998faa7d611
--- /dev/null
+++ b/filesystems/encfs/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1524928468
+SHA256 (vgough-encfs-v1.9.5_GH0.tar.gz) = 4709f05395ccbad6c0a5b40a4619d60aafe3473b1a79bafb3aa700b1f756fd63
+SIZE (vgough-encfs-v1.9.5_GH0.tar.gz) = 2798888
diff --git a/filesystems/encfs/files/patch-CMakeLists.txt b/filesystems/encfs/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..f4e66aaaa10b
--- /dev/null
+++ b/filesystems/encfs/files/patch-CMakeLists.txt
@@ -0,0 +1,12 @@
+--- CMakeLists.txt.orig 2024-02-25 17:41:27 UTC
++++ CMakeLists.txt
+@@ -346,9 +346,6 @@ if (POD2MAN)
+
+ if (POD2MAN)
+ set (MAN_DESTINATION "share/man/man1")
+- if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+- set (MAN_DESTINATION "man/man1")
+- endif()
+
+ add_custom_target (encfs-man ALL
+ COMMAND ${POD2MAN} -u --section=1 --release=${ENCFS_VERSION} --center=${ENCFS_NAME}
diff --git a/filesystems/encfs/files/patch-encfs_NullCipher.cpp b/filesystems/encfs/files/patch-encfs_NullCipher.cpp
new file mode 100644
index 000000000000..08e4db20abe8
--- /dev/null
+++ b/filesystems/encfs/files/patch-encfs_NullCipher.cpp
@@ -0,0 +1,11 @@
+--- encfs/NullCipher.cpp.orig 2022-05-14 16:04:54 UTC
++++ encfs/NullCipher.cpp
+@@ -76,7 +76,7 @@ class NullDestructor {
+ NullDestructor &operator=(const NullDestructor &) = delete; // copy assignment
+ NullDestructor& operator=(NullDestructor&& other) = delete; // move assignment
+
+- void operator()(NullKey *&) {}
++ void operator()(NullKey *) {}
+ };
+ std::shared_ptr<AbstractCipherKey> gNullKey(new NullKey(), NullDestructor());
+
diff --git a/filesystems/encfs/pkg-descr b/filesystems/encfs/pkg-descr
new file mode 100644
index 000000000000..0fafe1d67b16
--- /dev/null
+++ b/filesystems/encfs/pkg-descr
@@ -0,0 +1,5 @@
+EncFS is an encrypted pass-through filesystem which runs in userspace,
+using the FUSE kernel module. Similar in design to CFS and other
+pass-through filesystems, all data is encrypted and stored in the
+underlying filesystem. Unlike loopback filesystems, there is no
+predetermined or pre-allocated filesystem size.
diff --git a/filesystems/encfs/pkg-plist b/filesystems/encfs/pkg-plist
new file mode 100644
index 000000000000..e75b46eceeaa
--- /dev/null
+++ b/filesystems/encfs/pkg-plist
@@ -0,0 +1,56 @@
+bin/encfs
+bin/encfsctl
+bin/encfssh
+%%MANPAGES%%share/man/man1/encfs.1.gz
+%%MANPAGES%%share/man/man1/encfsctl.1.gz
+%%MANPAGES%%share/man/man1/encfssh.1.gz
+%%NLS%%share/locale/ar/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/be/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/bs/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/da/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/de_AT/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/de_CH/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/de_DE/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/de/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/el/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/eo/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/es_ES/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/es_PE/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/es/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/et/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/fr_FR/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/he/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/id/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/it/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/lv/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/nds/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/nn/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/oc/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/pt_PT/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/ta/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/zh_HK/LC_MESSAGES/encfs.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/encfs.mo