# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=4 inherit eutils confutils linux-info DESCRIPTION="Tools for Managing Linux CIFS Client Filesystems" HOMEPAGE="http://wiki.samba.org/index.php/LinuxCIFS_utils" SRC_URI="ftp://ftp.samba.org/pub/linux-cifs/${PN}/${P}.tar.bz2" LICENSE="GPL-3" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~arm-linux ~x86-linux" IUSE="ads +caps caps-ng creds" DEPEND="!net-fs/mount-cifs !/dev/null } pkg_postinst() { # Inform about set-user-ID bit of mount.cifs ewarn "setuid use flag was dropped due to multiple security implications" ewarn "such as CVE-2009-2948, CVE-2011-3585 and CVE-2012-1586" ewarn "You are free to set setuid flags by yourself" # Inform about upcall usage if use ads ; then ewarn "Using mount.cifs in combination with keyutils" ewarn "in order to mount DFS shares, you need to add" ewarn "the following line to /etc/request-key.conf:" ewarn " create dns_resolver * * /usr/sbin/cifs.upcall %k" ewarn "Otherwise, your DFS shares will not work properly." fi }