summaryrefslogtreecommitdiff
path: root/filesystems/sshfs
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/sshfs')
-rw-r--r--filesystems/sshfs/Makefile32
-rw-r--r--filesystems/sshfs/distinfo5
-rw-r--r--filesystems/sshfs/files/patch-meson.build27
-rw-r--r--filesystems/sshfs/pkg-descr1
-rw-r--r--filesystems/sshfs/pkg-message26
5 files changed, 91 insertions, 0 deletions
diff --git a/filesystems/sshfs/Makefile b/filesystems/sshfs/Makefile
new file mode 100644
index 000000000000..6dd076551ea4
--- /dev/null
+++ b/filesystems/sshfs/Makefile
@@ -0,0 +1,32 @@
+PORTNAME= sshfs
+PORTVERSION= 3.7.3
+PORTREVISION= 2
+DISTVERSIONPREFIX= ${PORTNAME}-
+CATEGORIES= filesystems
+PKGNAMEPREFIX= fusefs-
+
+PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES+= a73501f2159875aef082ab0a61731a8b7673d477.patch:-p1 # https://github.com/libfuse/sshfs/pull/212
+
+MAINTAINER= bofh@FreeBSD.org
+COMMENT= Mount remote directories over ssh
+WWW= https://github.com/libfuse/sshfs
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USES= compiler:c11 fuse:3 gnome meson pkgconfig
+USE_GITHUB= yes
+GH_ACCOUNT= libfuse
+USE_GNOME= glib20
+
+CFLAGS+= -DNDEBUG
+
+PLIST_FILES= bin/sshfs
+
+OPTIONS_DEFINE= DOCS
+
+DOCS_BUILD_DEPENDS= rst2man:textproc/py-docutils
+DOCS_PLIST_FILES= share/man/man1/sshfs.1.gz
+
+.include <bsd.port.mk>
diff --git a/filesystems/sshfs/distinfo b/filesystems/sshfs/distinfo
new file mode 100644
index 000000000000..10d8cf33b962
--- /dev/null
+++ b/filesystems/sshfs/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1655312051
+SHA256 (libfuse-sshfs-sshfs-3.7.3_GH0.tar.gz) = 52a1a1e017859dfe72a550e6fef8ad4f8703ce312ae165f74b579fd7344e3a26
+SIZE (libfuse-sshfs-sshfs-3.7.3_GH0.tar.gz) = 63968
+SHA256 (a73501f2159875aef082ab0a61731a8b7673d477.patch) = ef0fc2d7d292eb1bef4c2c63d0f5c1be00f29f9f4360cefe27fed70f69a31d10
+SIZE (a73501f2159875aef082ab0a61731a8b7673d477.patch) = 3032
diff --git a/filesystems/sshfs/files/patch-meson.build b/filesystems/sshfs/files/patch-meson.build
new file mode 100644
index 000000000000..34209e1f6504
--- /dev/null
+++ b/filesystems/sshfs/files/patch-meson.build
@@ -0,0 +1,27 @@
+--- meson.build.orig 2018-12-22 14:33:52 UTC
++++ meson.build
+@@ -19,12 +19,7 @@ int main(void) {
+ (void) get_4();
+ return 0;
+ }'''
+-if not cc.compiles(code, args: [ '-O0', '-Werror=unused-result' ])
+- message('Compiler warns about unused result even when casting to void')
+- add_global_arguments('-Wno-unused-result', language: 'c')
+-endif
+
+-
+ rst2man = find_program('rst2man', 'rst2man.py', required: false)
+
+ cfg = configuration_data()
+@@ -62,11 +57,6 @@ if rst2man.found()
+ else
+ message('rst2man not found, not building manual page.')
+ endif
+-
+-meson.add_install_script('utils/install_helper.sh',
+- get_option('sbindir'),
+- get_option('bindir'))
+-
+
+ subdir('test')
+
diff --git a/filesystems/sshfs/pkg-descr b/filesystems/sshfs/pkg-descr
new file mode 100644
index 000000000000..91ee403527c4
--- /dev/null
+++ b/filesystems/sshfs/pkg-descr
@@ -0,0 +1 @@
+SSHFS allows you to mount a remote directory over a normal ssh connection.
diff --git a/filesystems/sshfs/pkg-message b/filesystems/sshfs/pkg-message
new file mode 100644
index 000000000000..187edabe7faf
--- /dev/null
+++ b/filesystems/sshfs/pkg-message
@@ -0,0 +1,26 @@
+[
+{ type: install
+ message: <<EOM
+Basic Instructions:
+There are three ways to do this:
+
+1)
+% sshfs -o idmap=user username@example.org: /path/to/mount/point
+
+or
+
+2)
+% mount_fusefs auto /path/to/mount/point sshfs -o idmap=user \
+ username@example.org:
+
+or
+
+3)
+% env FUSE_DEV_NAME=/dev/fuse0 sshfs -o idmap=user \
+ username@example.org:
+% mount_fusefs /dev/fuse0 /path/to/mount/point
+
+For further options see ``sshfs -h''.
+EOM
+}
+]