Skip to content

Commit

Permalink
filesystems/davfs2: new port had been added (+)
Browse files Browse the repository at this point in the history
This is a FUSE file system driver that allows mounting a
WebDAV server as a local file system, like a disk drive.

PR:		267518 (heavily modified)
Submitted by:	Ali Abdallah (current main developer)
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Dec 12, 2024
1 parent a9beaf0 commit ebd64e6
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GIDs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ snmpd:*:344:
_metronome:*:345:
ngircd:*:346:
eturnal:*:347:
# free: 348
davfs2:*:348:
# free: 349
_sabnzbd:*:350:
sonarr:*:351:
Expand Down
2 changes: 1 addition & 1 deletion UIDs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ snmpd:*:344:344::0:0:Net-SNMP Daemon:/nonexistent:/usr/sbin/nologin
_metronome:*:345:345::0:0:Metronome Daemon:/nonexistent:/usr/sbin/nologin
ngircd:*:346:346::0:0:ngIRCd Daemon:/var/empty:/usr/sbin/nologin
eturnal:*:347:347::0:0:eturnal User:/var/spool/eturnal:/bin/sh
# free: 348
davfs2:*:348:348::0:0:Davfs2 Daemon:/nonexistent:/usr/sbin/nologin
# free: 349
_sabnzbd:*:350:350::0:0:sabnzb Daemon:/nonexistent:/usr/sbin/nologin
sonarr:*:351:351::0:0:Sonarr PVR:/nonexistent:/usr/sbin/nologin
Expand Down
1 change: 1 addition & 0 deletions filesystems/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
SUBDIR += cryptofs
SUBDIR += curlftpfs
SUBDIR += darling-dmg
SUBDIR += davfs2
SUBDIR += dsbmc
SUBDIR += dsbmc-cli
SUBDIR += dsbmd
Expand Down
38 changes: 38 additions & 0 deletions filesystems/davfs2/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
PORTNAME= davfs2
PORTVERSION= 1.7.1
CATEGORIES= filesystems www
MASTER_SITES= SAVANNAH \
https://github.com/alisarctl/davfs2/releases/download/rel-${PORTVERSION:S/./-/g}/
PKGNAMEPREFIX= fusefs-

MAINTAINER= [email protected]
COMMENT= FUSE filesystem to access WebDAV servers
WWW= http://savannah.nongnu.org/projects/davfs2 \
https://github.com/alisarctl

LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/AUTHORS

LIB_DEPENDS= libexpat.so:textproc/expat2 \
libneon.so:www/neon

USES= gmake iconv ssl
GNU_CONFIGURE= yes

USERS= ${PORTNAME}
GROUPS= ${PORTNAME}

OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes

NLS_USES= gettext-runtime
NLS_CONFIGURE_OFF= --disable-nls

post-stage:
${CHMOD} -s ${STAGEDIR}${PREFIX}/sbin/mount.davfs
cd ${STAGEDIR}${DOCSDIR} && ${RM} AUTHORS COPYING INSTALL
.for f in davfs2.conf secrets
cd ${STAGEDIR}${ETCDIR} && ${MV} ${f} ${f}.sample
.endfor

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions filesystems/davfs2/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1732196513
SHA256 (davfs2-1.7.1.tar.gz) = 298edd0c6773cbe258e1552a431acaea6b2eedb7087889a735daef8885fcb1ac
SIZE (davfs2-1.7.1.tar.gz) = 480381
12 changes: 12 additions & 0 deletions filesystems/davfs2/files/patch-src_Makefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- src/Makefile.in.orig 2024-11-20 15:05:51 UTC
+++ src/Makefile.in
@@ -268,6 +268,9 @@ VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
XGETTEXT_015 = @XGETTEXT_015@
XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
+ifeq ($(USE_NLS),yes)
+LIBS += $(LIBINTL)
+endif
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
13 changes: 13 additions & 0 deletions filesystems/davfs2/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Web Distributed Authoring and Versioning (WebDAV), an extension to the
HTTP-protocol, allows authoring of resources on a remote web server.
davfs2 provides the ability to access such resources like a typical
filesystem, allowing for use by standard applications with no built-in
support for WebDAV.

davfs2 is designed to fully integrate into the filesystem semantics of
Unix-like systems and makes mounting by unprivileged users as easy and
secure as possible.

davfs2 does extensive caching to make the file system responsive, to
avoid unnecessary network traffic, to prevent data loss, and to cope
for slow or unreliable connections.
24 changes: 24 additions & 0 deletions filesystems/davfs2/pkg-plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@sample %%ETCDIR%%/davfs2.conf.sample
@sample %%ETCDIR%%/secrets.sample
sbin/mount.davfs
sbin/umount.davfs
%%DATADIR%%/davfs2.conf
%%DATADIR%%/secrets
%%PORTDOCS%%%%DOCSDIR%%/BUGS
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/FAQ
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README.md
%%PORTDOCS%%%%DOCSDIR%%/README.translators
%%PORTDOCS%%%%DOCSDIR%%/THANKS
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%NLS%%share/locale/cs/LC_MESSAGES/davfs2.mo
%%NLS%%share/locale/de/LC_MESSAGES/davfs2.mo
share/man/de/man5/davfs2.conf.5.gz
share/man/de/man8/mount.davfs.8.gz
share/man/de/man8/umount.davfs.8.gz
share/man/es/man5/davfs2.conf.5.gz
share/man/man5/davfs2.conf.5.gz
share/man/man8/mount.davfs.8.gz
share/man/man8/umount.davfs.8.gz
@dir %%ETCDIR%%/certs/private

0 comments on commit ebd64e6

Please sign in to comment.