From afadeba6e63ddab1366a03fe5253c5e6047e295d Mon Sep 17 00:00:00 2001 From: Gokturk Yuksek Date: Mon, 7 Dec 2015 19:36:42 -0500 Subject: net-fs/davfs2: remove vulnerable versions (CVE-2013-4362) #485232 >"${D}/etc/davfs2/davfs2.conf"<> /etc/fstab" - elog " (as user)" - elog " # mkdir -p ~/dav" - elog " \$ mount ~/dav" - elog -} diff --git a/net-fs/davfs2/davfs2-1.4.7.ebuild b/net-fs/davfs2/davfs2-1.4.7.ebuild deleted file mode 100644 index cde202570624..000000000000 --- a/net-fs/davfs2/davfs2-1.4.7.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=4 - -inherit autotools eutils linux-mod user - -DESCRIPTION="Linux FUSE (or coda) driver that allows you to mount a WebDAV resource" -HOMEPAGE="http://savannah.nongnu.org/projects/davfs2" -SRC_URI="http://mirror.lihnidos.org/GNU/savannah/davfs2/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc x86" -IUSE="" -RESTRICT="test" - -DEPEND="dev-libs/libxml2 - net-libs/neon - sys-libs/zlib" -RDEPEND="${DEPEND}" - -pkg_setup() { - enewgroup davfs2 -} - -src_prepare() { - epatch "${FILESDIR}"/${P}-destdir.patch # fixed in 1.4.7+ upstream - sed -e "s/^NE_REQUIRE_VERSIONS.*29/& 30/" -i configure.ac - eautoreconf -} - -src_configure() { - econf dav_user=nobody --enable-largefile --docdir=/usr/share/doc/${P} -} - -src_compile() { - emake -} - -src_install() { - emake DESTDIR="${D}" install -# dodoc AUTHORS BUGS ChangeLog FAQ NEWS README README.translators THANKS TODO - - dodir /var/run/mount.davfs - keepdir /var/run/mount.davfs - fowners root:davfs2 /var/run/mount.davfs - fperms 1774 /var/run/mount.davfs - -} - -pkg_postinst() { - elog - elog "Quick setup:" - elog " (as root)" - elog " # gpasswd -a \${your_user} davfs2" - elog " # echo 'http://path/to/dav /home/\${your_user}/dav davfs rw,user,noauto 0 0' >> /etc/fstab" - elog " (as user)" - elog " # mkdir -p ~/dav" - elog " \$ mount ~/dav" - elog -} diff --git a/net-fs/davfs2/files/davfs2-1.4.5-glibc212.patch b/net-fs/davfs2/files/davfs2-1.4.5-glibc212.patch deleted file mode 100644 index cd7cde3f26a0..000000000000 --- a/net-fs/davfs2/files/davfs2-1.4.5-glibc212.patch +++ /dev/null @@ -1,60 +0,0 @@ -http://bugs.gentoo.org/332865 -https://savannah.nongnu.org/bugs/?28916 - ---- src/dav_coda.c -+++ src/dav_coda.c -@@ -52,6 +52,9 @@ - #ifdef HAVE_SYS_TYPES_H - #include - #endif -+#ifdef HAVE_SYS_STAT_H -+#include -+#endif - - #include "defaults.h" - #include "mount_davfs.h" ---- src/dav_fuse.c -+++ src/dav_fuse.c -@@ -41,6 +41,12 @@ - #ifdef HAVE_UNISTD_H - #include - #endif -+#ifdef HAVE_SYS_TYPES_H -+#include -+#endif -+#ifdef HAVE_SYS_STAT_H -+#include -+#endif - - #include "defaults.h" - #include "mount_davfs.h" ---- src/kernel_interface.c -+++ src/kernel_interface.c -@@ -44,6 +44,12 @@ - #ifdef HAVE_UNISTD_H - #include - #endif -+#ifdef HAVE_SYS_TYPES_H -+#include -+#endif -+#ifdef HAVE_SYS_STAT_H -+#include -+#endif - - #ifdef HAVE_SYS_MOUNT_H - #include ---- src/webdav.c -+++ src/webdav.c -@@ -47,6 +47,12 @@ - #ifdef HAVE_UNISTD_H - #include - #endif -+#ifdef HAVE_SYS_TYPES_H -+#include -+#endif -+#ifdef HAVE_SYS_STAT_H -+#include -+#endif - - #include - #include diff --git a/net-fs/davfs2/files/davfs2-1.4.7-destdir.patch b/net-fs/davfs2/files/davfs2-1.4.7-destdir.patch deleted file mode 100644 index 40dbd9585a23..000000000000 --- a/net-fs/davfs2/files/davfs2-1.4.7-destdir.patch +++ /dev/null @@ -1,18 +0,0 @@ -https://bugs.gentoo.org/384703 -Patch by Jeroen Roovers - -https://savannah.nongnu.org/support/?108104 - ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -51,8 +51,8 @@ - chmod u+s $(DESTDIR)$(sbindir)/mount.davfs; \ - if test "$(sbindir)" != "$(ssbindir)"; then \ - $(mkinstalldirs) $(DESTDIR)$(ssbindir); \ -- $(LN_S) -f $(DESTDIR)$(sbindir)/mount.davfs $(DESTDIR)$(ssbindir)/mount.davfs; \ -- $(LN_S) -f $(DESTDIR)$(sbindir)/umount.davfs $(DESTDIR)$(ssbindir)/umount.davfs; \ -+ $(LN_S) -f $(sbindir)/mount.davfs $(DESTDIR)$(ssbindir)/mount.davfs; \ -+ $(LN_S) -f $(sbindir)/umount.davfs $(DESTDIR)$(ssbindir)/umount.davfs; \ - fi - - uninstall-hook: -- cgit v1.2.3-18-g5258