summaryrefslogtreecommitdiff
path: root/sysutils/fusefs-httpdirfs
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/fusefs-httpdirfs')
-rw-r--r--sysutils/fusefs-httpdirfs/Makefile41
-rw-r--r--sysutils/fusefs-httpdirfs/distinfo3
-rw-r--r--sysutils/fusefs-httpdirfs/files/patch-Makefile10
-rw-r--r--sysutils/fusefs-httpdirfs/pkg-descr13
4 files changed, 67 insertions, 0 deletions
diff --git a/sysutils/fusefs-httpdirfs/Makefile b/sysutils/fusefs-httpdirfs/Makefile
new file mode 100644
index 000000000000..0348114b6192
--- /dev/null
+++ b/sysutils/fusefs-httpdirfs/Makefile
@@ -0,0 +1,41 @@
+# $FreeBSD$
+
+PORTNAME= httpdirfs
+DISTVERSION= 1.2.0
+CATEGORIES= sysutils
+PKGNAMEPREFIX= fusefs-
+
+MAINTAINER= 0mp@FreeBSD.org
+COMMENT= FUSE filesystem to mount HTTP directory listings, with a permanent cache
+
+LICENSE= GPL3OPENSSL
+LICENSE_NAME= GPLv3 or later with execption to link with OpenSSL
+LICENSE_FILE= ${WRKSRC}/LICENSE
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+LIB_DEPENDS= libcurl.so:ftp/curl \
+ libexpat.so:textproc/expat2 \
+ libgumbo.so:devel/gumbo \
+ libuuid.so:misc/e2fsprogs-libuuid
+
+USES= fuse gmake localbase pkgconfig ssl
+USE_CSTD= c99
+USE_GITHUB= yes
+GH_ACCOUNT= fangfufu
+
+MAKE_ENV= prefix=${PREFIX}
+
+PLIST_FILES= bin/httpdirfs \
+ man/man1/httpdirfs.1.gz
+PORTDOCS= README.md
+
+OPTIONS_DEFINE= DOCS
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/httpdirfs
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
+
+.include <bsd.port.mk>
diff --git a/sysutils/fusefs-httpdirfs/distinfo b/sysutils/fusefs-httpdirfs/distinfo
new file mode 100644
index 000000000000..e679389201dc
--- /dev/null
+++ b/sysutils/fusefs-httpdirfs/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1573554310
+SHA256 (fangfufu-httpdirfs-1.2.0_GH0.tar.gz) = 05be4d83434eaea002f550b77aed6c05ff135927662d53a6e2b224e766a50a9a
+SIZE (fangfufu-httpdirfs-1.2.0_GH0.tar.gz) = 74794
diff --git a/sysutils/fusefs-httpdirfs/files/patch-Makefile b/sysutils/fusefs-httpdirfs/files/patch-Makefile
new file mode 100644
index 000000000000..1658c327be30
--- /dev/null
+++ b/sysutils/fusefs-httpdirfs/files/patch-Makefile
@@ -0,0 +1,10 @@
+--- Makefile.orig 2019-11-12 10:38:03 UTC
++++ Makefile
+@@ -1,6 +1,6 @@
+ VERSION=1.2.0
+
+-CFLAGS += -O2 -Wall -Wextra -Wshadow -rdynamic -D_GNU_SOURCE\
++CFLAGS += -Wall -Wextra -Wshadow -D_GNU_SOURCE\
+ -D_FILE_OFFSET_BITS=64 -DVERSION=\"$(VERSION)\"\
+ `pkg-config --cflags-only-I gumbo libcurl fuse uuid expat`
+ LDFLAGS += `pkg-config --libs-only-L gumbo libcurl fuse uuid expat`
diff --git a/sysutils/fusefs-httpdirfs/pkg-descr b/sysutils/fusefs-httpdirfs/pkg-descr
new file mode 100644
index 000000000000..d0ded0f70db2
--- /dev/null
+++ b/sysutils/fusefs-httpdirfs/pkg-descr
@@ -0,0 +1,13 @@
+HTTPDirFS stands for Hyper Text Transfer Protocol Directory Filesystem. It may
+be used to to mount HTTP directory listings as if it was a partition.
+
+HTTP connections are reused due to the use of cURL-multi interface. The FUSE
+component runs in multithreaded mode.
+
+There is a permanent cache system which can cache all the file segments that
+have been downloaded.
+
+The support for Airsonic / Subsonic server is also included. This allows the
+user to mount a remote music collection locally.
+
+WWW: https://github.com/fangfufu/httpdirfs