summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMustafa Yuecel <yuecelm@ee.ethz.ch>2006-03-10 22:08:23 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-03-10 22:08:23 +0000
commit90771f922531102b9732c3df2373bfec247117ae (patch)
treee9d06b7a9930a1cb7c50c8990852eaabb62a9200
parent72cceaa29f9dc5039f7fcf51847f4ae2586f1b27 (diff)
davfs2-0.2.7: mounts WebDAV resources
- needs coda kernel module - recommends neon with SSL support (e.g. to use the free 1GB webspace from GMX)
-rw-r--r--packages/davfs2/.mtn2git_empty0
-rw-r--r--packages/davfs2/davfs2_0.2.7.bb46
-rw-r--r--packages/davfs2/files/.mtn2git_empty0
-rw-r--r--packages/davfs2/files/Makefile.in.patch44
-rw-r--r--packages/davfs2/files/no-func-checks.patch32
-rw-r--r--packages/davfs2/files/no-neon-version-test.patch10
-rw-r--r--packages/davfs2/files/volatiles1
7 files changed, 133 insertions, 0 deletions
diff --git a/packages/davfs2/.mtn2git_empty b/packages/davfs2/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/davfs2/.mtn2git_empty
diff --git a/packages/davfs2/davfs2_0.2.7.bb b/packages/davfs2/davfs2_0.2.7.bb
new file mode 100644
index 0000000000..00db8bfd55
--- /dev/null
+++ b/packages/davfs2/davfs2_0.2.7.bb
@@ -0,0 +1,46 @@
+DESCRIPTION = "A Linux file system driver that allows you to mount a WebDAV server as a disk drive."
+SECTION = "network"
+PRIORITY = "optional"
+MAINTAINER = "Mustafa Yuecel <yuecelm@ee.ethz.ch>"
+HOMEPAGE = "http://dav.sourceforge.net"
+DEPENDS = "neon (0.24.7)"
+RDEPENDS_${PN} = "libneon (0.24.7) kernel-module-coda"
+LICENSE = "GPL"
+
+PR = "r0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/dav/${P}.tar.gz \
+ file://no-func-checks.patch;patch=1 \
+ file://no-neon-version-test.patch;patch=1 \
+ file://Makefile.in.patch;patch=1 \
+ file://volatiles"
+
+inherit autotools
+
+ALTERNATIVE_NAME = "mount.davfs"
+ALTERNATIVE_PATH = "${sbindir}/${ALTERNATIVE_NAME}"
+ALTERNATIVE_PRIORITY = "90"
+ALTERNATIVE_LINK = "${base_sbindir}/${ALTERNATIVE_NAME}"
+
+EXTRA_OECONF = "--with-ssl --with-neon"
+
+CONFFILES_${PN} = "${sysconfdir}/davfs2/davfs2.conf ${sysconfdir}/davfs2/secrets"
+
+do_configure_prepend () {
+ autoconf
+}
+
+do_install_append () {
+ mkdir -p ${D}${sysconfdir}/default/volatiles
+ install -m 644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/10_davfs2
+}
+
+pkg_postinst () {
+ update-alternatives --install ${ALTERNATIVE_LINK} ${ALTERNATIVE_NAME} \
+ ${ALTERNATIVE_PATH} ${ALTERNATIVE_PRIORITY}
+ /etc/init.d/populate-volatile.sh
+}
+
+pkg_prerm () {
+ update-alternatives --remove ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH}
+}
diff --git a/packages/davfs2/files/.mtn2git_empty b/packages/davfs2/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/davfs2/files/.mtn2git_empty
diff --git a/packages/davfs2/files/Makefile.in.patch b/packages/davfs2/files/Makefile.in.patch
new file mode 100644
index 0000000000..16b4425f14
--- /dev/null
+++ b/packages/davfs2/files/Makefile.in.patch
@@ -0,0 +1,44 @@
+--- davfs2-0.2.7/Makefile.in.orig 2006-02-11 16:42:27.000000000 +0100
++++ davfs2-0.2.7/Makefile.in 2006-02-11 16:43:10.000000000 +0100
+@@ -13,6 +13,7 @@
+ datadir = @datadir@
+ sysconfdir = @sysconfdir@/$(PACKAGE_NAME)
+ localstatedir = /var/run/$(PROGRAM_NAME)
++docdir = @datadir@/doc/$(PACKAGE_NAME)
+ datadir = @datadir@/$(PACKAGE_NAME)
+ mandir = @datadir@/man/man8
+
+@@ -51,7 +52,7 @@
+
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@ -m 4755
+ INSTALL_DATA = @INSTALL_DATA@
+-INSTALL_SECRETS = @INSTALL_DATA@ -b -m 600
++INSTALL_SECRETS = @INSTALL_DATA@ -m 600
+ INSTALL_DIR = @INSTALL@ -d -m 755
+ INSTALL = @INSTALL@
+
+@@ -67,7 +68,6 @@
+ @echo ""
+
+ install: $(PROGRAMS)
+- $(INSTALL) -d -m 1775 -g $(dav_group) $(DESTDIR)$(localstatedir)
+ $(INSTALL_DIR) $(DESTDIR)$(sbindir)
+ for t in $(PROGRAMS); do \
+ $(INSTALL_PROGRAM) $(top_builddir)/$$t $(DESTDIR)$(sbindir)/$$t;done
+@@ -76,14 +77,13 @@
+ $(INSTALL_DATA) $(top_builddir)/$$t $(DESTDIR)$(sysconfdir)/$$t;done
+ for t in $(SECRETS); do \
+ $(INSTALL_SECRETS) $(top_builddir)/$$t $(DESTDIR)$(sysconfdir)/$$t;done
+- $(INSTALL_DIR) $(DESTDIR)$(datadir)
++ $(INSTALL_DIR) $(DESTDIR)$(docdir)
+ for t in $(DATA); do \
+- $(INSTALL_DATA) $(top_builddir)/$$t $(DESTDIR)$(datadir)/$$t;done
++ $(INSTALL_DATA) $(top_builddir)/$$t $(DESTDIR)$(docdir)/$$t;done
+ $(INSTALL_DIR) $(DESTDIR)$(mandir)
+ for t in $(MANS); do \
+ $(INSTALL_DATA) $(top_builddir)/$$t $(DESTDIR)$(mandir)/$$t;done
+ if [ -L /sbin/$(PROGRAM_NAME) ]; then rm /sbin/$(PROGRAM_NAME); fi
+- ln -s $(DESTDIR)$(sbindir)/$(PROGRAM_NAME) /sbin/$(PROGRAM_NAME) 2> /dev/null
+
+ @echo ""
+ @echo "----------------------------------------------------"
diff --git a/packages/davfs2/files/no-func-checks.patch b/packages/davfs2/files/no-func-checks.patch
new file mode 100644
index 0000000000..46ca24398e
--- /dev/null
+++ b/packages/davfs2/files/no-func-checks.patch
@@ -0,0 +1,32 @@
+--- neon-0.24.7/macros/neon.m4.old 2005-02-24 16:28:01 +00:00
++++ neon-0.24.7/macros/neon.m4 2005-02-24 16:40:17 +00:00
+@@ -508,26 +508,9 @@
+ # Enable getaddrinfo() support only if all the necessary functions
+ # are found.
+ ne_enable_gai=yes
+-NE_CHECK_FUNCS(getaddrinfo gai_strerror inet_ntop,,[ne_enable_gai=no; break])
+-if test $ne_enable_gai = yes; then
+- AC_DEFINE(USE_GETADDRINFO, 1, [Define if getaddrinfo() should be used])
+- AC_CACHE_CHECK([for working AI_ADDRCONFIG], [ne_cv_gai_addrconfig], [
+- AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <netdb.h>],
+-[struct addrinfo hints = {0}, *result;
+-hints.ai_flags = AI_ADDRCONFIG;
+-if (getaddrinfo("localhost", NULL, &hints, &result) != 0) return 1;])],
+- ne_cv_gai_addrconfig=yes, ne_cv_gai_addrconfig=no)])
+- if test $ne_cv_gai_addrconfig = yes; then
+- AC_DEFINE(USE_GAI_ADDRCONFIG, 1, [Define if getaddrinfo supports AI_ADDRCONFIG])
+- fi
+-else
+- # Checks for non-getaddrinfo() based resolver interfaces.
+- NE_SEARCH_LIBS(hstrerror, resolv,,[:])
+- NE_CHECK_FUNCS(hstrerror)
+- # Older Unixes don't declare h_errno.
+- AC_CHECK_DECL(h_errno,,,[#define _XOPEN_SOURCE_EXTENDED 1
+-#include <netdb.h>])
+-fi
++ne_cv_gai_addrconfig=yes
++AC_DEFINE(USE_GETADDRINFO, 1, [Define if getaddrinfo() should be used])
++AC_DEFINE(USE_GAI_ADDRCONFIG, 1, [Define if getaddrinfo supports AI_ADDRCONFIG])
+
+ AC_CHECK_MEMBERS(struct tm.tm_gmtoff,,
+ AC_MSG_WARN([no timezone handling in date parsing on this platform]),
diff --git a/packages/davfs2/files/no-neon-version-test.patch b/packages/davfs2/files/no-neon-version-test.patch
new file mode 100644
index 0000000000..67b2055584
--- /dev/null
+++ b/packages/davfs2/files/no-neon-version-test.patch
@@ -0,0 +1,10 @@
+--- davfs2-0.2.7/configure.in.orig 2006-02-11 15:19:21.000000000 +0100
++++ davfs2-0.2.7/configure.in 2006-02-11 15:19:34.000000000 +0100
+@@ -20,7 +20,6 @@
+ top_builddir=`pwd`
+ AC_SUBST(top_builddir)
+
+-NEON_REQUIRE(0,24)
+ NEON_WITHOUT_ZLIB
+ NEON_WITHOUT_ACL
+ NEON_TEST
diff --git a/packages/davfs2/files/volatiles b/packages/davfs2/files/volatiles
new file mode 100644
index 0000000000..51405429d1
--- /dev/null
+++ b/packages/davfs2/files/volatiles
@@ -0,0 +1 @@
+d root users 0775 /var/run/mount.davfs