Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/sudo/
Date: Tue, 17 Oct 2017 14:28:04
Message-Id: 1508250476.4a067213c4e3e4fbf8af0b6e2c870758392dd51b.polynomial-c@gentoo
1 commit: 4a067213c4e3e4fbf8af0b6e2c870758392dd51b
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 17 14:27:56 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 17 14:27:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a067213
7
8 app-admin/sudo: Removed old.
9
10 Package-Manager: Portage-2.3.11, Repoman-2.3.3
11
12 app-admin/sudo/Manifest | 1 -
13 app-admin/sudo/sudo-1.8.21_p1.ebuild | 218 -----------------------------------
14 2 files changed, 219 deletions(-)
15
16 diff --git a/app-admin/sudo/Manifest b/app-admin/sudo/Manifest
17 index d0f40293e83..4c521d1924c 100644
18 --- a/app-admin/sudo/Manifest
19 +++ b/app-admin/sudo/Manifest
20 @@ -1,3 +1,2 @@
21 DIST sudo-1.8.20p2.tar.gz 2930769 SHA256 bd42ae1059e935f795c69ea97b3de09fe9410a58a74b5d5e6836eb5067a445d9 SHA512 8bf67e687f7a84605fdef8d547b5cd661141b6c8fd25820c33c7e37e97ca7f21f564c3bae691f8a8cd08df7d80338e36a8f06bb5086cc104509d71d6ab1bceda WHIRLPOOL 4e9b6ddaba8cdb4d82358e01252136af56ae50f656f9802285471c7c1e5c831d26aa07cb78205f63ea6098f98846911938681a89256afe5419372039d0e4e792
22 -DIST sudo-1.8.21p1.tar.gz 2975522 SHA256 ee50d3a249a96b1c5c8d3d21380eb96c63c6e61a888b13e3c2b941b23ab7c808 SHA512 081dff35cbc2724b0481139490601665b7e10e19c8cffcd00918cb51a914f1b7103c7d04b3361e229b63d404c68c47598ca6f59a7c3c00a5b3b7aed74bae9e45 WHIRLPOOL 13f8dba536f7e70b8025bddbe25ca73859d062f3ffe7f3137fc4393453f59863a7984cd0de250e6c6fa4a34e2a1e2f617932e506cca4327d64ae49f8913bbe92
23 DIST sudo-1.8.21p2.tar.gz 2976081 SHA256 74c5746cd33a814e2431c39faf0d76f7f8a697379bd073862e3b156cf0d76368 SHA512 f04bbff54ad74ba73c078e15c75d2f41332d4912078ed66157ba7346b7fff914bd0747460cb4cd0c472af2d3b344fa72f5c62c95169df68a9cac74d7245c720c WHIRLPOOL 94d9c9abdbb93f37f13179e934004b61f930978a4b0372aa0ccf0ff1aead51af272cb296554affb24e92d7f828b285f0d923fb87b19e1173e470f4b27fa1e538
24
25 diff --git a/app-admin/sudo/sudo-1.8.21_p1.ebuild b/app-admin/sudo/sudo-1.8.21_p1.ebuild
26 deleted file mode 100644
27 index 0af84eaf37f..00000000000
28 --- a/app-admin/sudo/sudo-1.8.21_p1.ebuild
29 +++ /dev/null
30 @@ -1,218 +0,0 @@
31 -# Copyright 1999-2017 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -
36 -inherit eutils pam multilib libtool
37 -
38 -MY_P=${P/_/}
39 -MY_P=${MY_P/beta/b}
40 -
41 -uri_prefix=
42 -case ${P} in
43 - *_beta*|*_rc*) uri_prefix=beta/ ;;
44 -esac
45 -
46 -DESCRIPTION="Allows users or groups to run commands as other users"
47 -HOMEPAGE="http://www.sudo.ws/"
48 -SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
49 - ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
50 -
51 -# Basic license is ISC-style as-is, some files are released under
52 -# 3-clause BSD license
53 -LICENSE="ISC BSD"
54 -SLOT="0"
55 -if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
56 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~sparc-solaris"
57 -fi
58 -IUSE="gcrypt ldap nls pam offensive openssl sasl selinux +sendmail skey"
59 -
60 -CDEPEND="
61 - gcrypt? ( dev-libs/libgcrypt:= )
62 - openssl? ( dev-libs/openssl:0= )
63 - pam? ( virtual/pam )
64 - sasl? ( dev-libs/cyrus-sasl )
65 - skey? ( >=sys-auth/skey-1.1.5-r1 )
66 - ldap? (
67 - >=net-nds/openldap-2.1.30-r1
68 - dev-libs/cyrus-sasl
69 - )
70 - sys-libs/zlib
71 -"
72 -RDEPEND="
73 - ${CDEPEND}
74 - selinux? ( sec-policy/selinux-sudo )
75 - ldap? ( dev-lang/perl )
76 - pam? ( sys-auth/pambase )
77 - >=app-misc/editor-wrapper-3
78 - virtual/editor
79 - sendmail? ( virtual/mta )
80 -"
81 -DEPEND="
82 - ${CDEPEND}
83 - sys-devel/bison
84 -"
85 -
86 -S="${WORKDIR}/${MY_P}"
87 -
88 -REQUIRED_USE="
89 - pam? ( !skey )
90 - skey? ( !pam )
91 - ?? ( gcrypt openssl )
92 -"
93 -
94 -MAKEOPTS+=" SAMPLES="
95 -
96 -src_prepare() {
97 - default
98 - elibtoolize
99 -}
100 -
101 -set_rootpath() {
102 - # FIXME: secure_path is a compile time setting. using ROOTPATH
103 - # is not perfect, env-update may invalidate this, but until it
104 - # is available as a sudoers setting this will have to do.
105 - einfo "Setting secure_path ..."
106 -
107 - # first extract the default ROOTPATH from build env
108 - ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}")
109 - if [[ -z ${ROOTPATH} ]] ; then
110 - ewarn " Failed to find ROOTPATH, please report this"
111 - fi
112 -
113 - # then remove duplicate path entries
114 - cleanpath() {
115 - local newpath thisp IFS=:
116 - for thisp in $1 ; do
117 - if [[ :${newpath}: != *:${thisp}:* ]] ; then
118 - newpath+=:$thisp
119 - else
120 - einfo " Duplicate entry ${thisp} removed..."
121 - fi
122 - done
123 - ROOTPATH=${newpath#:}
124 - }
125 - cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}}
126 -
127 - # finally, strip gcc paths #136027
128 - rmpath() {
129 - local e newpath thisp IFS=:
130 - for thisp in ${ROOTPATH} ; do
131 - for e ; do [[ $thisp == $e ]] && continue 2 ; done
132 - newpath+=:$thisp
133 - done
134 - ROOTPATH=${newpath#:}
135 - }
136 - rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
137 -
138 - einfo "... done"
139 -}
140 -
141 -src_configure() {
142 - local ROOTPATH
143 - set_rootpath
144 -
145 - # audit: somebody got to explain me how I can test this before I
146 - # enable it.. - Diego
147 - # plugindir: autoconf code is crappy and does not delay evaluation
148 - # until `make` time, so we have to use a full path here rather than
149 - # basing off other values.
150 - myeconfargs=(
151 - --enable-zlib=system
152 - --with-editor="${EPREFIX}"/usr/libexec/editor
153 - --with-env-editor
154 - --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo
155 - --with-rundir="${EPREFIX}"/var/run/sudo
156 - --with-secure-path="${ROOTPATH}"
157 - --with-vardir="${EPREFIX}"/var/db/sudo
158 - --without-linux-audit
159 - --without-opie
160 - $(use_enable gcrypt)
161 - $(use_enable nls)
162 - $(use_enable openssl)
163 - $(use_enable sasl)
164 - $(use_with offensive insults)
165 - $(use_with offensive all-insults)
166 - $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo)
167 - $(use_with ldap)
168 - $(use_with pam)
169 - $(use_with skey)
170 - $(use_with selinux)
171 - $(use_with sendmail)
172 - )
173 - econf "${myeconfargs[@]}"
174 -}
175 -
176 -src_install() {
177 - default
178 -
179 - if use ldap ; then
180 - dodoc README.LDAP
181 - dosbin plugins/sudoers/sudoers2ldif
182 -
183 - cat <<-EOF > "${T}"/ldap.conf.sudo
184 - # See ldap.conf(5) and README.LDAP for details
185 - # This file should only be readable by root
186 -
187 - # supported directives: host, port, ssl, ldap_version
188 - # uri, binddn, bindpw, sudoers_base, sudoers_debug
189 - # tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
190 - EOF
191 -
192 - insinto /etc
193 - doins "${T}"/ldap.conf.sudo
194 - fperms 0440 /etc/ldap.conf.sudo
195 -
196 - insinto /etc/openldap/schema
197 - newins doc/schema.OpenLDAP sudo.schema
198 - fi
199 -
200 - pamd_mimic system-auth sudo auth account session
201 -
202 - keepdir /var/db/sudo
203 - fperms 0700 /var/db/sudo
204 -
205 - # Don't install into /var/run as that is a tmpfs most of the time
206 - # (bug #504854)
207 - rm -rf "${D}"/var/run
208 -}
209 -
210 -pkg_postinst() {
211 - if use ldap ; then
212 - ewarn
213 - ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
214 - ewarn
215 - if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
216 - ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
217 - ewarn "configured in /etc/nsswitch.conf."
218 - ewarn
219 - ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
220 - ewarn " sudoers: ldap files"
221 - ewarn
222 - fi
223 - fi
224 - if use prefix ; then
225 - ewarn
226 - ewarn "To use sudo, you need to change file ownership and permissions"
227 - ewarn "with root privileges, as follows:"
228 - ewarn
229 - ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
230 - ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
231 - ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
232 - ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
233 - ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
234 - ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
235 - ewarn
236 - fi
237 -
238 - elog "To use the -A (askpass) option, you need to install a compatible"
239 - elog "password program from the following list. Starred packages will"
240 - elog "automatically register for the use with sudo (but will not force"
241 - elog "the -A option):"
242 - elog ""
243 - elog " [*] net-misc/ssh-askpass-fullscreen"
244 - elog " net-misc/x11-ssh-askpass"
245 - elog ""
246 - elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
247 - elog "variable to the program you want to use."
248 -}