From 90771f922531102b9732c3df2373bfec247117ae Mon Sep 17 00:00:00 2001 From: Mustafa Yuecel Date: Fri, 10 Mar 2006 22:08:23 +0000 Subject: 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) --- packages/davfs2/.mtn2git_empty | 0 packages/davfs2/davfs2_0.2.7.bb | 46 ++++++++++++++++++++++++ packages/davfs2/files/.mtn2git_empty | 0 packages/davfs2/files/Makefile.in.patch | 44 +++++++++++++++++++++++ packages/davfs2/files/no-func-checks.patch | 32 +++++++++++++++++ packages/davfs2/files/no-neon-version-test.patch | 10 ++++++ packages/davfs2/files/volatiles | 1 + 7 files changed, 133 insertions(+) create mode 100644 packages/davfs2/.mtn2git_empty create mode 100644 packages/davfs2/davfs2_0.2.7.bb create mode 100644 packages/davfs2/files/.mtn2git_empty create mode 100644 packages/davfs2/files/Makefile.in.patch create mode 100644 packages/davfs2/files/no-func-checks.patch create mode 100644 packages/davfs2/files/no-neon-version-test.patch create mode 100644 packages/davfs2/files/volatiles diff --git a/packages/davfs2/.mtn2git_empty b/packages/davfs2/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 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 " +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 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 ], +-[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 ]) +-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 -- cgit v1.2.3 From 97ea9e42c5a7213362eaee90b02c722503ccecae Mon Sep 17 00:00:00 2001 From: Mustafa Yuecel Date: Fri, 10 Mar 2006 22:17:06 +0000 Subject: neon-0.24.7: add SSL support - add openssl and time to DEPENDS - add lib_package to inherit - copy neon-config to staging dir (used by davfs2) --- packages/neon/neon_0.24.7.bb | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/neon/neon_0.24.7.bb b/packages/neon/neon_0.24.7.bb index 2e2ba4de59..d53260b3cf 100644 --- a/packages/neon/neon_0.24.7.bb +++ b/packages/neon/neon_0.24.7.bb @@ -1,18 +1,24 @@ -inherit autotools - -DEPENDS = "zlib libxml2 expat" +DESCRIPTION = "neon is an HTTP and WebDAV client library, with a C interface." SECTION = "base" LICENSE = "LGPL" -DESCRIPTION = "neon is an HTTP and WebDAV client library, with a C interface." +DEPENDS = "openssl zlib libxml2 expat time" + PR = "r1" SRC_URI = "http://www.webdav.org/neon/neon-0.24.7.tar.gz \ file://no-func-checks.patch;patch=1" -EXTRA_OECONF = " --without-ssl --with-libxml2 --with-expat \ - --enable-shared --enable-static" +inherit autotools lib_package + +EXTRA_OECONF = " --with-ssl --with-libxml2 --with-expat --enable-shared" do_stage () { autotools_stage_includes oe_libinstall -C src -so -a libneon ${STAGING_LIBDIR}/ + + cat neon-config | sed -e "s,^prefix=.*,prefix=${STAGING_BINDIR}/..," \ + -e "s,^exec_prefix=.*,exec_prefix=${STAGING_BINDIR}/..," \ + -e "s,^includedir=.*,includedir=${STAGING_INCDIR}," \ + -e "s,^libdir=.*,libdir=${STAGING_LIBDIR}," > ${STAGING_BINDIR}/neon-config + chmod a+rx ${STAGING_BINDIR}/neon-config } -- cgit v1.2.3