summaryrefslogtreecommitdiff
path: root/filesystems/avfs
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/avfs')
-rw-r--r--filesystems/avfs/Makefile43
-rw-r--r--filesystems/avfs/distinfo3
-rw-r--r--filesystems/avfs/files/patch-scripts_mountavfs11
-rw-r--r--filesystems/avfs/files/patch-scripts_umountavfs16
-rw-r--r--filesystems/avfs/pkg-descr8
-rw-r--r--filesystems/avfs/pkg-plist51
6 files changed, 132 insertions, 0 deletions
diff --git a/filesystems/avfs/Makefile b/filesystems/avfs/Makefile
new file mode 100644
index 000000000000..e72960be92e5
--- /dev/null
+++ b/filesystems/avfs/Makefile
@@ -0,0 +1,43 @@
+PORTNAME= avfs
+PORTVERSION= 1.1.4
+CATEGORIES= filesystems sysutils
+MASTER_SITES= SF/avf/${PORTNAME}/${PORTVERSION}
+
+MAINTAINER= danfe@FreeBSD.org
+COMMENT= Virtual File System library
+WWW= https://avf.sourceforge.net/
+
+# FUSE daemon is licensed as GPLv2, shared library is LGPLv2
+LICENSE= LGPL20 GPLv2
+LICENSE_COMB= multi
+
+RUN_DEPENDS= ${LOCALBASE}/bin/bash:shells/bash
+
+USES= libtool pkgconfig tar:bz2 shebangfix perl5
+USE_PERL5= run
+SHEBANG_FILES= extfs/uimg scripts/umountavfs scripts/mountavfs
+USE_LDCONFIG= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= PERL="${PERL}"
+
+INSTALL_TARGET= install-strip
+
+OPTIONS_DEFINE= DAV DEBUG FUSE ZSTD
+OPTIONS_SUB= yes
+
+DAV_DESC= Build the DAV module (requires libneon)
+DAV_LIB_DEPENDS= libneon.so:www/neon
+DAV_CONFIGURE_ENABLE= dav
+
+DEBUG_CONFIGURE_ENABLE= debug
+
+FUSE_CONFIGURE_ENABLE= fuse
+FUSE_USES= fuse
+
+ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd
+ZSTD_CONFIGURE_WITH= zstd
+
+post-patch:
+ @${REINPLACE_CMD} -e '/#include/s,neon/,,' ${WRKSRC}/modules/dav*.?
+
+.include <bsd.port.mk>
diff --git a/filesystems/avfs/distinfo b/filesystems/avfs/distinfo
new file mode 100644
index 000000000000..da7f15db88bc
--- /dev/null
+++ b/filesystems/avfs/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1730905202
+SHA256 (avfs-1.1.4.tar.bz2) = 3a7981af8557f864ae10d4b204c29969588fdb526e117456e8efd54bf8faa12b
+SIZE (avfs-1.1.4.tar.bz2) = 614657
diff --git a/filesystems/avfs/files/patch-scripts_mountavfs b/filesystems/avfs/files/patch-scripts_mountavfs
new file mode 100644
index 000000000000..1042b3533c9e
--- /dev/null
+++ b/filesystems/avfs/files/patch-scripts_mountavfs
@@ -0,0 +1,11 @@
+--- scripts/mountavfs.orig 2016-09-16 18:43:19 UTC
++++ scripts/mountavfs
+@@ -14,7 +14,7 @@ else
+ MntDir=${HOME}/.avfs
+ fi
+
+-grep -qE "avfsd ${MntDir}" /proc/mounts || {
++mount -p | grep -qE "${MntDir}.*fusefs" || {
+ if [ ! -e "$MntDir" ]; then
+ mkdir -p "$MntDir"
+ fi
diff --git a/filesystems/avfs/files/patch-scripts_umountavfs b/filesystems/avfs/files/patch-scripts_umountavfs
new file mode 100644
index 000000000000..e93c9c659029
--- /dev/null
+++ b/filesystems/avfs/files/patch-scripts_umountavfs
@@ -0,0 +1,16 @@
+--- scripts/umountavfs.orig 2016-09-16 18:43:19 UTC
++++ scripts/umountavfs
+@@ -14,11 +14,11 @@ else
+ MntDir="${HOME}/.avfs"
+ fi
+
+-grep -qE "${MntDir}.*avfsd" /proc/mounts && {
++mount -p | grep -qE "${MntDir}.*fusefs" && {
+ echo unMounting AVFS on $MntDir...
+ if type -p fusermount > /dev/null 2>&1 ; then
+ fusermount -u -z "$MntDir"
+ else
+- umount -l "$MntDir"
++ umount "$MntDir"
+ fi
+ }
diff --git a/filesystems/avfs/pkg-descr b/filesystems/avfs/pkg-descr
new file mode 100644
index 000000000000..4bdc41f8adbd
--- /dev/null
+++ b/filesystems/avfs/pkg-descr
@@ -0,0 +1,8 @@
+AVFS is a system, which enables all programs to look inside gzip, tar,
+zip, etc. files or view remote (ftp, http, dav, etc.) files, without
+recompiling the programs.
+
+Shared library and FUSE daemon are provided.
+
+AVFS is (C) under the GNU GPL. The shared library supporting AVFS with
+LD_PRELOAD is (C) under the GNU LGPL.
diff --git a/filesystems/avfs/pkg-plist b/filesystems/avfs/pkg-plist
new file mode 100644
index 000000000000..77e9a9d3032b
--- /dev/null
+++ b/filesystems/avfs/pkg-plist
@@ -0,0 +1,51 @@
+bin/avfs-config
+%%FUSE%%bin/avfsd
+bin/davpass
+bin/ftppass
+%%FUSE%%bin/mountavfs
+%%FUSE%%bin/umountavfs
+include/avfs.h
+include/virtual.h
+lib/avfs/extfs/README
+lib/avfs/extfs/a
+lib/avfs/extfs/apt
+lib/avfs/extfs/audio
+lib/avfs/extfs/bpp
+lib/avfs/extfs/deb
+lib/avfs/extfs/deba
+lib/avfs/extfs/debd
+lib/avfs/extfs/dpkg
+lib/avfs/extfs/extfs.ini
+lib/avfs/extfs/ftplist
+lib/avfs/extfs/hp48
+lib/avfs/extfs/iso9660
+lib/avfs/extfs/lslR
+lib/avfs/extfs/mailfs
+lib/avfs/extfs/patchfs
+lib/avfs/extfs/rpm
+lib/avfs/extfs/rpms
+lib/avfs/extfs/trpm
+lib/avfs/extfs/u7z
+lib/avfs/extfs/uace
+lib/avfs/extfs/uadf
+lib/avfs/extfs/uar
+lib/avfs/extfs/uarc
+lib/avfs/extfs/uarj
+lib/avfs/extfs/uc1541
+lib/avfs/extfs/ucab
+lib/avfs/extfs/ucpio
+lib/avfs/extfs/udar
+lib/avfs/extfs/uextrar
+lib/avfs/extfs/uha
+lib/avfs/extfs/uimg
+lib/avfs/extfs/ulha
+lib/avfs/extfs/upp
+lib/avfs/extfs/uxdms
+lib/avfs/extfs/uxpk
+lib/avfs/extfs/uzip
+lib/avfs/extfs/uzoo
+lib/libavfs.a
+lib/libavfs.so
+lib/libavfs.so.0
+lib/libavfs.so.0.0.2
+libdata/pkgconfig/avfs.pc