Skip to contentSkip to conversation

davfs2: new package

PATCH New Roman Gorbenkov 2 participants 4 messages Jun 22, 2018 – Jun 24, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 davfs2: new package

davfs2 is a Linux file system driver that allows to mount a WebDAV resource. WebDAV is an extension to HTTP/1.1 that allows remote collaborative authoring of Web resources.

---
 package/Config.in          |  1 +
 package/davfs2/Config.in   | 17 +++++++++++++++++
 package/davfs2/davfs2.hash |  5 +++++
 package/davfs2/davfs2.mk   | 19 +++++++++++++++++++
 4 files changed, 42 insertions(+)
 create mode 100644 package/davfs2/Config.in
 create mode 100644 package/davfs2/davfs2.hash
 create mode 100644 package/davfs2/davfs2.mk
package/Config.in +1 -0
index a5ecfecbf9..c8e35fd99e 100644
@@ -175,6 +175,7 @@ menu "Filesystem and flash utilities"
 	source "package/cpio/Config.in"
 	source "package/cramfs/Config.in"
 	source "package/curlftpfs/Config.in"
+	source "package/davfs2/Config.in"
 	source "package/dosfstools/Config.in"
 	source "package/e2fsprogs/Config.in"
 	source "package/e2tools/Config.in"
package/davfs2/Config.in new file +17 -0
new file mode 100644
index 0000000000..9a2e20586c
@@ -0,0 +1,17 @@
+comment "DAVFS2 needs a toolchain w/ regular stack smashing protection support"
+	depends on !BR2_TOOLCHAIN_BUILDROOT_USE_SSP || !BR2_SSP_REGULAR
+
+config BR2_PACKAGE_DAVFS2
+	bool "davfs2"
+	depends on BR2_TOOLCHAIN_BUILDROOT_USE_SSP
+	depends on BR2_SSP_REGULAR
+	select BR2_PACKAGE_NEON
+	select BR2_PACKAGE_NEON_XML
+	help
+	  davfs2 is a Linux file system driver that allows to
+	  mount a WebDAV resource. WebDAV is an extension to HTTP/1.1
+	  that allows remote collaborative authoring of Web resources.
+	  To use davfs2 via /etc/fstab, FEATURE_MOUNT_HELPERS
+	  must be selected in busybox configuration.
+
+	  http://savannah.nongnu.org/projects/davfs2
package/davfs2/davfs2.hash new file +5 -0
new file mode 100644
index 0000000000..97ce80bfe0
@@ -0,0 +1,5 @@
+# Calculated based on the hash above
+#Locally calculated
+sha256 c9c4e0f0912a782386216b2147eb9c36c47f193b8fcf3d637719e0b9fe7c96e0  davfs2-1.5.4.tar.gz
+#License file, locally calculated
+sha256 0ae0485a5bd37a63e63603596417e4eb0e653334fa6c7f932ca3a0e85d4af227  COPYING
package/davfs2/davfs2.mk new file +19 -0
new file mode 100644
index 0000000000..da5ea530a0
@@ -0,0 +1,19 @@
+################################################################################
+#
+# davfs2
+#
+################################################################################
+
+DAVFS2_VERSION = 1.5.4
+DAVFS2_SITE = http://download.savannah.nongnu.org/releases/davfs2/davfs2-$(DAVFS2_VERSION).tar.gz
+DAVFS2_LICENSE = GPL-3.0+
+DAVFS2_LICENSE_FILES = COPYING
+
+DAVFS2_DEPENDENCIES = neon
+
+DAVFS2_AUTORECONF = YES
+
+DAVFS2_CONF_ENV += \
+    ac_cv_path_NEON_CONFIG=$(STAGING_DIR)/usr/bin/neon-config
+
+$(eval $(autotools-package))
Signature · 1 line
2.13.6
#1 lore raw

PATCH 2/2 DEVELOPERS: add myself to package/davfs2

---
 DEVELOPERS | 3 +++
 1 file changed, 3 insertions(+)
DEVELOPERS +3 -0
index d22ac527fa..85b341e7ce 100644
@@ -1664,6 +1664,9 @@ F:	package/chocolate-doom/
 F:	package/irssi/
 F:	package/vnstat/
 
+N:	Roman Gorbenkov <[email protected]>
+F:	package/davfs2/
+
 N:	Romain Naour <[email protected]>
 F:	package/aubio/
 F:	package/bullet/
Signature · 1 line
2.13.6
#2 lore raw

PATCH 2/2 DEVELOPERS: add myself to package/davfs2

Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Roman" == Roman Gorbenkov <[email protected]> writes:

---
 DEVELOPERS | 3 +++
 1 file changed, 3 insertions(+)
DEVELOPERS +0 -0
index d22ac527fa..85b341e7ce 100644

DEVELOPERS F: package/chocolate-doom/ · line 1668

Quoted 5 lines
DEVELOPERS +2 -0
@@ -1664,6 +1664,9 @@ F:	package/chocolate-doom/
 F:	package/irssi/
 F:	package/vnstat/
 
+N:	Roman Gorbenkov <[email protected]>
+F:	package/davfs2/

This should have been part of the commit adding davfs2. I've merged it with that commit and applied, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/2 davfs2: new package

In reply to Roman Gorbenkov
Quoted 35 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Roman" == Roman Gorbenkov <[email protected]> writes:

davfs2 is a Linux file system driver that allows to mount a WebDAV resource. WebDAV is an extension to HTTP/1.1 that allows remote collaborative authoring of Web resources.

---
 package/Config.in          |  1 +
 package/davfs2/Config.in   | 17 +++++++++++++++++
 package/davfs2/davfs2.hash |  5 +++++
 package/davfs2/davfs2.mk   | 19 +++++++++++++++++++
 4 files changed, 42 insertions(+)
 create mode 100644 package/davfs2/Config.in
 create mode 100644 package/davfs2/davfs2.hash
 create mode 100644 package/davfs2/davfs2.mk
package/Config.in +1 -0
index a5ecfecbf9..c8e35fd99e 100644
@@ -175,6 +175,7 @@ menu "Filesystem and flash utilities"
 	source "package/cpio/Config.in"
 	source "package/cramfs/Config.in"
 	source "package/curlftpfs/Config.in"
+	source "package/davfs2/Config.in"
 	source "package/dosfstools/Config.in"
 	source "package/e2fsprogs/Config.in"
 	source "package/e2tools/Config.in"
package/davfs2/Config.in new file +0 -0
new file mode 100644
index 0000000000..9a2e20586c

package/davfs2/Config.in line 2

Quoted 2 lines
package/davfs2/Config.in new file +2 -0
@@ -0,0 +1,17 @@
+comment "DAVFS2 needs a toolchain w/ regular stack smashing protection support"
+	depends on !BR2_TOOLCHAIN_BUILDROOT_USE_SSP || !BR2_SSP_REGULAR

DAVFS2 should be in lower case. This dependency is kind of annoying, and is also because src/Makefile.am hardcodes -fstack-protector-strong, so I've instead added a patch to drop this. Buildroot will pass the correct -fstack-protector-* arguments if so configured.

package/davfs2/Config.in line 9

Quoted 6 lines
package/davfs2/Config.in new file +6 -0
+config BR2_PACKAGE_DAVFS2
+	bool "davfs2"
+	depends on BR2_TOOLCHAIN_BUILDROOT_USE_SSP
+	depends on BR2_SSP_REGULAR
+	select BR2_PACKAGE_NEON
+	select BR2_PACKAGE_NEON_XML

It uses fork() so it should depend on BR2_USE_MMU.

It uses error.h which doesn't exist on musl, so it should depend on !BR2_TOOLCHAIN_USES_MUSL (and show a comment when musl is used).

Please consider testing with ./utils/test-pkg to verify such things.

package/davfs2/Config.in line 1

Quoted 3 lines
package/davfs2/Config.in new file +2 -0
+++ b/package/davfs2/davfs2.hash
@@ -0,0 +1,5 @@
+# Calculated based on the hash above

? Dropped.

package/davfs2/Config.in line 5

Quoted 4 lines
package/davfs2/Config.in new file +4 -0
+#Locally calculated
+sha256 c9c4e0f0912a782386216b2147eb9c36c47f193b8fcf3d637719e0b9fe7c96e0  davfs2-1.5.4.tar.gz
+#License file, locally calculated
+sha256 0ae0485a5bd37a63e63603596417e4eb0e653334fa6c7f932ca3a0e85d4af227  COPYING

Nit: We normally have a space between '#' and the text. Fixed.

Quoted 6 lines
package/davfs2/davfs2.mk new file +0 -0
new file mode 100644
index 0000000000..da5ea530a0

package/davfs2/davfs2.mk line 8

Quoted 8 lines
package/davfs2/davfs2.mk new file +8 -0
@@ -0,0 +1,19 @@
+################################################################################
+#
+# davfs2
+#
+################################################################################
+
+DAVFS2_VERSION = 1.5.4
+DAVFS2_SITE = http://download.savannah.nongnu.org/releases/davfs2/davfs2-$(DAVFS2_VERSION).tar.gz

The tarball name should not be part of the URL. This will try to download:

http://download.savannah.nongnu.org/releases/davfs2/davfs2-1.5.4.tar.gz/davfs2-1.5.4.tar.gz

Which doesn't exist. Fixed.

package/davfs2/davfs2.mk line 14

Quoted 6 lines
package/davfs2/davfs2.mk new file +6 -0
+DAVFS2_LICENSE = GPL-3.0+
+DAVFS2_LICENSE_FILES = COPYING
+
+DAVFS2_DEPENDENCIES = neon
+
+DAVFS2_AUTORECONF = YES

Why? You don't patch anything and the configure script is included in the tarball. Dropped.

Committed with these fixes, thanks.

Signature · 1 line
Bye, Peter Korsgaard