summaryrefslogtreecommitdiff
path: root/recipes/davfs2
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/davfs2')
-rw-r--r--recipes/davfs2/davfs2-0.2.7/Makefile.in.patch44
-rw-r--r--recipes/davfs2/davfs2-0.2.7/no-func-checks.patch32
-rw-r--r--recipes/davfs2/davfs2-0.2.7/no-neon-version-test.patch10
-rw-r--r--recipes/davfs2/davfs2-0.2.8/Makefile.in.patch23
-rw-r--r--recipes/davfs2/davfs2_0.2.7.bb45
-rw-r--r--recipes/davfs2/davfs2_0.2.8.bb43
-rw-r--r--recipes/davfs2/files/volatiles1
7 files changed, 198 insertions, 0 deletions
diff --git a/recipes/davfs2/davfs2-0.2.7/Makefile.in.patch b/recipes/davfs2/davfs2-0.2.7/Makefile.in.patch
new file mode 100644
index 0000000000..16b4425f14
--- /dev/null
+++ b/recipes/davfs2/davfs2-0.2.7/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/recipes/davfs2/davfs2-0.2.7/no-func-checks.patch b/recipes/davfs2/davfs2-0.2.7/no-func-checks.patch
new file mode 100644
index 0000000000..46ca24398e
--- /dev/null
+++ b/recipes/davfs2/davfs2-0.2.7/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/recipes/davfs2/davfs2-0.2.7/no-neon-version-test.patch b/recipes/davfs2/davfs2-0.2.7/no-neon-version-test.patch
new file mode 100644
index 0000000000..67b2055584
--- /dev/null
+++ b/recipes/davfs2/davfs2-0.2.7/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/recipes/davfs2/davfs2-0.2.8/Makefile.in.patch b/recipes/davfs2/davfs2-0.2.8/Makefile.in.patch
new file mode 100644
index 0000000000..1f1b13f198
--- /dev/null
+++ b/recipes/davfs2/davfs2-0.2.8/Makefile.in.patch
@@ -0,0 +1,23 @@
+--- davfs2-0.2.8/Makefile.in.old 2006-03-15 23:30:50.000000000 +0100
++++ davfs2-0.2.8/Makefile.in 2006-03-15 23:39:08.000000000 +0100
+@@ -50,7 +50,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@
+
+@@ -80,11 +80,6 @@
+ $(INSTALL_DIR) $(DESTDIR)$(mandir)
+ for t in $(MANS); do \
+ $(INSTALL_DATA) $(top_builddir)/$$t $(DESTDIR)$(mandir)/$$t;done
+- if [ -n "$(DESTDIR)" -a "$(DESTDIR)" != "/" ]; then \
+- $(INSTALL_DIR) $(DESTDIR)/sbin; \
+- ln -sf ..$(sbindir)/$(PROGRAM_NAME) \
+- $(DESTDIR)/sbin/$(PROGRAM_NAME) 2> /dev/null; \
+- else ln -sf $(sbindir)/$(PROGRAM_NAME) /sbin/$(PROGRAM_NAME) 2> /dev/null; fi
+
+ @echo ""
+ @echo "----------------------------------------------------"
diff --git a/recipes/davfs2/davfs2_0.2.7.bb b/recipes/davfs2/davfs2_0.2.7.bb
new file mode 100644
index 0000000000..310ccabb32
--- /dev/null
+++ b/recipes/davfs2/davfs2_0.2.7.bb
@@ -0,0 +1,45 @@
+DESCRIPTION = "A Linux file system driver that allows you to mount a WebDAV server as a disk drive."
+SECTION = "network"
+PRIORITY = "optional"
+HOMEPAGE = "http://dav.sourceforge.net"
+DEPENDS = "neon-0.24.7"
+RDEPENDS_${PN} = "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-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/recipes/davfs2/davfs2_0.2.8.bb b/recipes/davfs2/davfs2_0.2.8.bb
new file mode 100644
index 0000000000..e49c4af424
--- /dev/null
+++ b/recipes/davfs2/davfs2_0.2.8.bb
@@ -0,0 +1,43 @@
+DESCRIPTION = "A Linux file system driver that allows you to mount a WebDAV server as a disk drive."
+SECTION = "network"
+PRIORITY = "optional"
+HOMEPAGE = "http://dav.sourceforge.net"
+DEPENDS = "neon-0.25.5"
+RDEPENDS_${PN} = "kernel-module-coda"
+LICENSE = "GPL"
+
+PR = "r2"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/dav/${P}.tar.gz \
+ 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-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 update
+}
+
+pkg_prerm () {
+ update-alternatives --remove ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH}
+}
diff --git a/recipes/davfs2/files/volatiles b/recipes/davfs2/files/volatiles
new file mode 100644
index 0000000000..169fda7c3d
--- /dev/null
+++ b/recipes/davfs2/files/volatiles
@@ -0,0 +1 @@
+d root users 0775 /var/run/mount.davfs none