diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2006-09-22 19:48:47 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2006-09-22 19:48:47 +0000 |
commit | 7686872f40880c0ebd80a5e4e8684e655078ccf1 (patch) | |
tree | 6eb960ea6e1fad395fea6eb095d4e03b8d1bee84 /net-fs/davfs2 | |
parent | version bump (diff) | |
download | gentoo-2-7686872f40880c0ebd80a5e4e8684e655078ccf1.tar.gz gentoo-2-7686872f40880c0ebd80a5e4e8684e655078ccf1.tar.bz2 gentoo-2-7686872f40880c0ebd80a5e4e8684e655078ccf1.zip |
Add patch to fix some bugs thanks to Butchie <butchie@free.fr> in bug 148566
(Portage version: 2.1.2_pre1)
Diffstat (limited to 'net-fs/davfs2')
-rw-r--r-- | net-fs/davfs2/ChangeLog | 9 | ||||
-rw-r--r-- | net-fs/davfs2/davfs2-1.0.2_p20060820-r1.ebuild | 77 | ||||
-rw-r--r-- | net-fs/davfs2/files/davfs2-cvs1.0.2-badpointer.patch | 63 | ||||
-rw-r--r-- | net-fs/davfs2/files/digest-davfs2-1.0.2_p20060820-r1 | 3 |
4 files changed, 151 insertions, 1 deletions
diff --git a/net-fs/davfs2/ChangeLog b/net-fs/davfs2/ChangeLog index f5192847e9c5..8c938fbda025 100644 --- a/net-fs/davfs2/ChangeLog +++ b/net-fs/davfs2/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-fs/davfs2 # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/davfs2/ChangeLog,v 1.28 2006/08/22 14:43:30 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/davfs2/ChangeLog,v 1.29 2006/09/22 19:48:47 genstef Exp $ + +*davfs2-1.0.2_p20060820-r1 (22 Sep 2006) + + 22 Sep 2006; Stefan Schweizer <genstef@gentoo.org> + +files/davfs2-cvs1.0.2-badpointer.patch, + +davfs2-1.0.2_p20060820-r1.ebuild: + Add patch to fix some bugs thanks to Butchie <butchie@free.fr> in bug 148566 *davfs2-1.0.2_p20060820 (22 Aug 2006) diff --git a/net-fs/davfs2/davfs2-1.0.2_p20060820-r1.ebuild b/net-fs/davfs2/davfs2-1.0.2_p20060820-r1.ebuild new file mode 100644 index 000000000000..6915cb95f7e8 --- /dev/null +++ b/net-fs/davfs2/davfs2-1.0.2_p20060820-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/davfs2/davfs2-1.0.2_p20060820-r1.ebuild,v 1.1 2006/09/22 19:48:47 genstef Exp $ + +inherit linux-mod eutils + +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="http://gentooexperimental.org/~genstef/dist/${P}.tar.bz2" +HOMEPAGE="http://dav.sourceforge.net" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="ssl debug socks5" +RESTRICT="test" + +DEPEND="ssl? ( >=dev-libs/openssl-0.9.6 ) + socks5? ( >=net-proxy/dante-1.1.13 ) + dev-libs/libxml2 + net-misc/neon + sys-libs/zlib" +SLOT="0" +S=${WORKDIR}/${PN} + +#CONFIG_CHECK="CODA_FS !CODA_FS_OLD_API" +CODA_FS_ERROR="${P} requires kernel support for Coda to be found in filesystems, network filesystems" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/davfs2-cvs1.0.2-badpointer.patch +} + +src_compile() { + ./autogen.sh + local myconf + + if use debug; then + myconf="--with-debug" + fi + if kernel_is 2 4; then + myconf="${myconf} --with-kernel-src=${KV_DIR}" + else + myconf="${myconf} --without-kernel-src" + fi + + econf \ + $(use_with ssl) \ + $(use_with socks5 socks) \ + ${myconf} || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR=${D} install || die "make install failed" + cd doc + dodoc BUGS ChangeLog davfs2.conf.template FAQ NEWS README secrets.template THANKS TODO BUGS + + #fix einstalled files in wrong places + cd ${D}/usr/share/davfs2 + rm COPYING ChangeLog davfs2.conf.template FAQ NEWS README secrets.template THANKS TODO BUGS GPL + rmdir ${D}/usr/share/davfs2 + + dodir /var/run/mount.davfs + keepdir /var/run/mount.davfs + fowners root:users /var/run/mount.davfs + fperms 1774 /var/run/mount.davfs + + dodir /etc/modules.d + cat >${D}/etc/modules.d/davfs2 <<EOF +alias char-major-67 coda +alias /dev/davfs* coda +EOF +} + +pkg_postinst() { + linux-mod_pkg_postinst + ewarn "This is a cvs version - please report bugs upstream" +} diff --git a/net-fs/davfs2/files/davfs2-cvs1.0.2-badpointer.patch b/net-fs/davfs2/files/davfs2-cvs1.0.2-badpointer.patch new file mode 100644 index 000000000000..f2b75a47c83b --- /dev/null +++ b/net-fs/davfs2/files/davfs2-cvs1.0.2-badpointer.patch @@ -0,0 +1,63 @@ +diff -Naur davfs2/src/cache.c davfs2-new/src/cache.c +--- davfs2/src/cache.c 2006-08-21 22:51:51.000000000 +0200 ++++ davfs2-new/src/cache.c 2006-09-17 10:29:06.720200399 +0200 +@@ -236,7 +236,7 @@ + + static int is_busy(const dav_node *node); + +-static inline int is_cached(const dav_node *node) { ++static inline int is_cached(dav_node *node) { + + if (!S_ISREG(node->mode) || node->cache_path == NULL) + return 0; +@@ -244,6 +244,7 @@ + return 1; + } else { + free(node->cache_path); ++ node->cache_path = NULL; + return 0; + } + } +@@ -299,6 +300,8 @@ + + static inline void set_cache_file_times(dav_node *node) { + ++ if (node->cache_path == NULL) ++ return; + struct utimbuf t; + t.actime = node->atime; + t.modtime = node->mtime; +@@ -1790,6 +1793,7 @@ + syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), + "Error %i creating: %s", errno, node->cache_path); + free(node->cache_path); ++ node->cache_path = NULL; + return EIO; + } + +@@ -1817,6 +1821,7 @@ + syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), + "Error %i creating: %s", errno, node->cache_path); + free(node->cache_path); ++ node->cache_path = NULL; + return EIO; + } + +@@ -1839,6 +1844,7 @@ + "Error writing directory %s", node->cache_path); + remove(node->cache_path); + free(node->cache_path); ++ node->cache_path = NULL; + return EIO; + } + } +@@ -1973,7 +1979,7 @@ + + struct stat st; + if (stat(index, &st) == 0) { +- blocksize = st.st_blksize; ++ blocksize = (st.st_blksize > 4096) ? 4096 : st.st_blksize; + } else { + blocksize = 1024; + } + diff --git a/net-fs/davfs2/files/digest-davfs2-1.0.2_p20060820-r1 b/net-fs/davfs2/files/digest-davfs2-1.0.2_p20060820-r1 new file mode 100644 index 000000000000..3754423c8bcd --- /dev/null +++ b/net-fs/davfs2/files/digest-davfs2-1.0.2_p20060820-r1 @@ -0,0 +1,3 @@ +MD5 b508ee29fe5f06ded4fc43f87fe9e54b davfs2-1.0.2_p20060820.tar.bz2 80240 +RMD160 b07b6b0a458d7da6c3dba9a5a194b693c04e6828 davfs2-1.0.2_p20060820.tar.bz2 80240 +SHA256 1446e1cf1800d6b85d44f5c0f593d4616b0514dd3e3b4f6034f94ccfce6acd0e davfs2-1.0.2_p20060820.tar.bz2 80240 |