aboutsummaryrefslogtreecommitdiffstats
path: root/testing/davfs2/010-main_code_fix.patch
diff options
context:
space:
mode:
authorThomas Harning Jr <harningt@gmail.com>2015-07-13 20:14:55 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-07-16 12:28:06 +0000
commit34aaff6d1a3510bea3ec8b419ff010ea84930ee2 (patch)
tree998dcde8f9059ac3060a3a4d234b5c0d4b6d0002 /testing/davfs2/010-main_code_fix.patch
parent4b3500c9460597aacd032ea75391d5b44fd46fe1 (diff)
downloadaports-34aaff6d1a3510bea3ec8b419ff010ea84930ee2.tar.bz2
aports-34aaff6d1a3510bea3ec8b419ff010ea84930ee2.tar.xz
testing/davfs2: new aport
http://savannah.nongnu.org/projects/davfs2 Linux FUSE (or coda) driver that allows you to mount a WebDAV resource I based this build off of the Gentoo ebuild and the OpenWRT build files/patches https://github.com/openwrt/packages/tree/master/net/davfs2 Had to modify one of the patches to add iconv.h to automake tests due to HAVE_ICONV_H being used but HAVE_ICONV was defined with 'iconv' rules and both definitions being used. Regarding maintainership - I could possibly keep up with the project and keep it up-to-date.
Diffstat (limited to 'testing/davfs2/010-main_code_fix.patch')
-rw-r--r--testing/davfs2/010-main_code_fix.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/davfs2/010-main_code_fix.patch b/testing/davfs2/010-main_code_fix.patch
new file mode 100644
index 0000000000..aa36fdfaa7
--- /dev/null
+++ b/testing/davfs2/010-main_code_fix.patch
@@ -0,0 +1,35 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -32,8 +32,8 @@ mount_davfs_SOURCES = cache.c dav_coda.c
+ kernel_interface.h mount_davfs.h webdav.h
+ umount_davfs_SOURCES = umount_davfs.c defaults.h
+
+-AM_CFLAGS = -Wall -Werror=format-security \
+- -fstack-protector --param=ssp-buffer-size=4
++AM_CFLAGS = -Wall -Werror=format-security
++# -fstack-protector --param=ssp-buffer-size=4 -- removed ssp not supported in openwrt
+ DEFS = -DPROGRAM_NAME=\"mount.davfs\" \
+ -DDAV_SYS_CONF_DIR=\"$(pkgsysconfdir)\" \
+ -DDAV_LOCALSTATE_DIR=\"$(dav_localstatedir)\" \
+--- a/src/cache.c
++++ b/src/cache.c
+@@ -58,7 +58,7 @@
+ #ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+ #endif
+-#include <sys/xattr.h>
++#include <linux/xattr.h>
+
+ #include <ne_alloc.h>
+ #include <ne_string.h>
+--- a/src/webdav.c
++++ b/src/webdav.c
+@@ -2033,7 +2033,7 @@ ssl_verify(void *userdata, int failures,
+ len = getline(&s, &n, stdin);
+ if (len < 0)
+ abort();
+- if (rpmatch(s) > 0)
++ if ((s[0]=='y' || s[0]=='Y') > 0)
+ ret = 0;
+ free(s);
+ }