From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 202C11395E2 for ; Mon, 21 Nov 2016 13:27:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E09BE0BC1; Mon, 21 Nov 2016 13:26:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DB958E0BC1 for ; Mon, 21 Nov 2016 13:26:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AB57C341027 for ; Mon, 21 Nov 2016 13:26:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 37C2F49A for ; Mon, 21 Nov 2016 13:26:49 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1479734805.fb1d336c715d9b0a6c6374330f9998fee70e7633.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/cifs-utils/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-fs/cifs-utils/cifs-utils-6.6-r1.ebuild X-VCS-Directories: net-fs/cifs-utils/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: fb1d336c715d9b0a6c6374330f9998fee70e7633 X-VCS-Branch: master Date: Mon, 21 Nov 2016 13:26:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ac82cc33-969e-4513-ba71-29d5faa85cc1 X-Archives-Hash: 14fb4ba68c6c0c4cf5731219a2ee6054 commit: fb1d336c715d9b0a6c6374330f9998fee70e7633 Author: Lars Wendler gentoo org> AuthorDate: Mon Nov 21 13:26:32 2016 +0000 Commit: Lars Wendler gentoo org> CommitDate: Mon Nov 21 13:26:45 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb1d336c net-fs/cifs-utils: Added pam USE flag (bug #599760). Package-Manager: portage-2.3.2 net-fs/cifs-utils/cifs-utils-6.6-r1.ebuild | 112 +++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) diff --git a/net-fs/cifs-utils/cifs-utils-6.6-r1.ebuild b/net-fs/cifs-utils/cifs-utils-6.6-r1.ebuild new file mode 100644 index 00000000..803027c --- /dev/null +++ b/net-fs/cifs-utils/cifs-utils-6.6-r1.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils linux-info multilib + +DESCRIPTION="Tools for Managing Linux CIFS Client Filesystems" +HOMEPAGE="http://wiki.samba.org/index.php/LinuxCIFS_utils" +SRC_URI="https://ftp.samba.org/pub/linux-cifs/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~arm-linux ~x86-linux" +IUSE="+acl +ads +caps +caps-ng creds pam" + +RDEPEND=" + !net-fs/mount-cifs + !/dev/null + + if use acl ; then + dodir /etc/cifs-utils + dosym /usr/$(get_libdir)/cifs-utils/idmapwb.so \ + /etc/cifs-utils/idmap-plugin + dodir /etc/request-key.d + echo 'create cifs.idmap * * /usr/sbin/cifs.idmap %k' \ + > "${ED}/etc/request-key.d/cifs.idmap.conf" + fi + + if use ads ; then + dodir /etc/request-key.d + echo 'create dns_resolver * * /usr/sbin/cifs.upcall %k' \ + > "${ED}/etc/request-key.d/cifs.upcall.conf" + echo 'create cifs.spnego * * /usr/sbin/cifs.upcall %k' \ + > "${ED}/etc/request-key.d/cifs.spnego.conf" + fi +} + +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 acl ; then + einfo "The cifs.idmap utility has been enabled by creating the" + einfo "configuration file /etc/request-key.d/cifs.idmap.conf" + einfo "This enables you to get and set CIFS acls." + fi + + if use ads ; then + einfo "The cifs.upcall utility has been enabled by creating the" + einfo "configuration file /etc/request-key.d/cifs.upcall.conf" + einfo "This enables you to mount DFS shares." + fi +}