Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 525674
Collapse All | Expand All

(-)old/sudo-1.8.11_p1.ebuild (-2 / +14 lines)
Lines 24-30 Link Here
24
LICENSE="ISC BSD"
24
LICENSE="ISC BSD"
25
SLOT="0"
25
SLOT="0"
26
KEYWORDS="~alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~sparc-solaris"
26
KEYWORDS="~alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~sparc-solaris"
27
IUSE="ldap nls pam offensive selinux skey +sendmail"
27
IUSE="ldap nls pam offensive selinux skey +sendmail sssd"
28
28
29
DEPEND="pam? ( virtual/pam )
29
DEPEND="pam? ( virtual/pam )
30
	skey? ( >=sys-auth/skey-1.1.5-r1 )
30
	skey? ( >=sys-auth/skey-1.1.5-r1 )
Lines 32-38 Link Here
32
		>=net-nds/openldap-2.1.30-r1
32
		>=net-nds/openldap-2.1.30-r1
33
		dev-libs/cyrus-sasl
33
		dev-libs/cyrus-sasl
34
	)
34
	)
35
	sys-libs/zlib"
35
	sys-libs/zlib
36
	sssd? ( >=sys-auth/sssd-1.8[sudo] )"
36
RDEPEND="${DEPEND}
37
RDEPEND="${DEPEND}
37
	selinux? ( sec-policy/selinux-sudo )
38
	selinux? ( sec-policy/selinux-sudo )
38
	ldap? ( dev-lang/perl )
39
	ldap? ( dev-lang/perl )
Lines 116-121 Link Here
116
		$(use_with skey) \
117
		$(use_with skey) \
117
		$(use_with selinux) \
118
		$(use_with selinux) \
118
		$(use_with sendmail) \
119
		$(use_with sendmail) \
120
		$(use_with sssd) \
119
		--without-opie \
121
		--without-opie \
120
		--without-linux-audit \
122
		--without-linux-audit \
121
		--with-rundir="${EPREFIX}"/var/run/sudo \
123
		--with-rundir="${EPREFIX}"/var/run/sudo \
Lines 156-161 Link Here
156
}
158
}
157
159
158
pkg_postinst() {
160
pkg_postinst() {
161
	if use sssd ; then
162
		ewarn
163
		ewarn "To make use of sssd, add this line to your /etc/nsswitch.conf:"
164
		ewarn "  sudoers: sss files"
165
		ewarn
166
		ewarn "Also, within your sssd.conf file, append \"sudo\" to the \"services\" list,"
167
		ewarn "define a [sudo] block (even if nothing is in it), and define"
168
		ewarn "ldap_sudo_search_base within your domain block, then restart sssd"
169
		ewarn
170
	fi
159
	if use ldap ; then
171
	if use ldap ; then
160
		ewarn
172
		ewarn
161
		ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
173
		ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."

Return to bug 525674