# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils IUSE="socks5 ssl xml2" DESCRIPTION="A Linux file system driver that allows you to mount a WebDAV server as a local disk drive. Davfs2 uses Coda for kernel driver and neon for WebDAV interface. " SRC_URI="mirror://sourceforge/dav/${P}.tar.gz" HOMEPAGE="http://dav.sourceforge.net" KEYWORDS="~x86" LICENSE="GPL-2" DEPEND="ssl? ( >=dev-libs/openssl-0.9.6 ) xml2? ( dev-libs/libxml2 )" SLOT="0" src_unpack() { unpack ${A} && cd "${S}" epatch "${FILESDIR}/${PN}-kernel-headers.patch" } src_compile() { econf \ `use_with ssl` \ `use_with socks5 socks` \ `use_with xml2 libxml2` \ || die "configure failed" emake || die "make failed" } src_install() { einstall || die "install failed" } pkg_postinst() { einfo "" einfo "Remember! You must have coda compiled into your kernel" einfo "(or as a module) in order to use davfs2" einfo "" }