Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2024 10:24:52 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ebd64e65a49e - main - filesystems/davfs2: new port had been added (+)
Message-ID:  <202412121024.4BCAOq2o017518@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ebd64e65a49ef01be669f868f32de82deead3ab3

commit ebd64e65a49ef01be669f868f32de82deead3ab3
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2024-12-12 10:23:58 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2024-12-12 10:23:58 +0000

    filesystems/davfs2: new port had been added (+)
    
    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)
---
 GIDs                                           |  2 +-
 UIDs                                           |  2 +-
 filesystems/Makefile                           |  1 +
 filesystems/davfs2/Makefile                    | 38 ++++++++++++++++++++++++++
 filesystems/davfs2/distinfo                    |  3 ++
 filesystems/davfs2/files/patch-src_Makefile.in | 12 ++++++++
 filesystems/davfs2/pkg-descr                   | 13 +++++++++
 filesystems/davfs2/pkg-plist                   | 24 ++++++++++++++++
 8 files changed, 93 insertions(+), 2 deletions(-)

diff --git a/GIDs b/GIDs
index eb55b2514514..03596f6128e5 100644
--- a/GIDs
+++ b/GIDs
@@ -288,7 +288,7 @@ snmpd:*:344:
 _metronome:*:345:
 ngircd:*:346:
 eturnal:*:347:
-# free: 348
+davfs2:*:348:
 # free: 349
 _sabnzbd:*:350:
 sonarr:*:351:
diff --git a/UIDs b/UIDs
index 7248825ac5d4..12bf78b790bc 100644
--- a/UIDs
+++ b/UIDs
@@ -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
diff --git a/filesystems/Makefile b/filesystems/Makefile
index 26c9a09b0c2d..41efde84f53d 100644
--- a/filesystems/Makefile
+++ b/filesystems/Makefile
@@ -14,6 +14,7 @@
     SUBDIR += cryptofs
     SUBDIR += curlftpfs
     SUBDIR += darling-dmg
+    SUBDIR += davfs2
     SUBDIR += dsbmc
     SUBDIR += dsbmc-cli
     SUBDIR += dsbmd
diff --git a/filesystems/davfs2/Makefile b/filesystems/davfs2/Makefile
new file mode 100644
index 000000000000..5173d824a21d
--- /dev/null
+++ b/filesystems/davfs2/Makefile
@@ -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=	ali.abdallah@suse.com
+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>
diff --git a/filesystems/davfs2/distinfo b/filesystems/davfs2/distinfo
new file mode 100644
index 000000000000..3d8a9bbaa540
--- /dev/null
+++ b/filesystems/davfs2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1732196513
+SHA256 (davfs2-1.7.1.tar.gz) = 298edd0c6773cbe258e1552a431acaea6b2eedb7087889a735daef8885fcb1ac
+SIZE (davfs2-1.7.1.tar.gz) = 480381
diff --git a/filesystems/davfs2/files/patch-src_Makefile.in b/filesystems/davfs2/files/patch-src_Makefile.in
new file mode 100644
index 000000000000..fce40eda0fff
--- /dev/null
+++ b/filesystems/davfs2/files/patch-src_Makefile.in
@@ -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@
diff --git a/filesystems/davfs2/pkg-descr b/filesystems/davfs2/pkg-descr
new file mode 100644
index 000000000000..6f8aa0f4ef10
--- /dev/null
+++ b/filesystems/davfs2/pkg-descr
@@ -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.
diff --git a/filesystems/davfs2/pkg-plist b/filesystems/davfs2/pkg-plist
new file mode 100644
index 000000000000..f80bee4b604b
--- /dev/null
+++ b/filesystems/davfs2/pkg-plist
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412121024.4BCAOq2o017518>