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, 04 Sep 2018 06:43:09
Message-Id: 1536043371.a7527749e1027067e194c15d36888ac212d32807.polynomial-c@gentoo
1 commit: a7527749e1027067e194c15d36888ac212d32807
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 4 06:42:51 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 4 06:42:51 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7527749
7
8 app-admin/sudo: Removed old.
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 app-admin/sudo/Manifest | 1 -
13 app-admin/sudo/sudo-1.8.22-r2.ebuild | 225 ----------------------------------
14 app-admin/sudo/sudo-1.8.23-r1.ebuild | 231 -----------------------------------
15 3 files changed, 457 deletions(-)
16
17 diff --git a/app-admin/sudo/Manifest b/app-admin/sudo/Manifest
18 index 3bd05ad2d17..eaf829a6f71 100644
19 --- a/app-admin/sudo/Manifest
20 +++ b/app-admin/sudo/Manifest
21 @@ -1,4 +1,3 @@
22 -DIST sudo-1.8.22.tar.gz 3029051 BLAKE2B c77e05b6e9cee738902d6289327fb5d34d19833d96597f983d8af01434d224dd698f9257b0965a0e480e8d19eb38eef0c8216942ca5217c3fe7516cdf397f7b7 SHA512 5ce10a9302d25bb726e347499d26a0b3697446cfcdf0fd9094ee35198db7b023d5250a53fdcb4184d1a09f5fd2a78fc645bc8e80f265666b05a91f62f49b0695
23 DIST sudo-1.8.23.tar.gz 3150674 BLAKE2B 11b1c7bfa372005cda8baf651c4662f6fd15e94ca77f7705b23ca6573424796d5c1f8e47e2874c4b54017141d01a632885ac60c92346d932537048373cad0ede SHA512 a9d61850a4857bfd075547a13efb13b054e4736e3ebe3c8a98a90a090b1d9b9688354ec9725fc99d1d256999b6f9c6ae6215ce9770fcdebd7f24731107b48342
24 DIST sudo-1.8.24.tar.gz 3175719 BLAKE2B 61fc469e2d8146b8bb59709192dc33828f0065d4dcf9625e72ae1da9a2c1d6925a0201e5999e146e2e15f5a103ad5690a88fcabb75f57e76b779fe07de53b459 SHA512 ec6295a456a300e81ea2356080d51a57e3eb5d8070d8aab228cece0100ef54954f6c3dd458316b0c2da6839c0d8dab7cdc1a360aceb2594641e064465ecb1ee8
25 DIST sudo-1.8.25.tar.gz 3189660 BLAKE2B 9eeab3ac4ea67a866071750a8cf19e0753ef1b59187f715c69547bbae8ee0039bf15116ef30ed5dc6fc11b17beeff174e08756b2d701e0f2668a05f2e318f623 SHA512 f3f0c9e315484e5ba2d535f41ab722881343b1fa299f75cfad456bd41a555d80080369677e62626307df792aeabc29ba450e6f0b9c284ea2cfb8dc5e3568f46d
26
27 diff --git a/app-admin/sudo/sudo-1.8.22-r2.ebuild b/app-admin/sudo/sudo-1.8.22-r2.ebuild
28 deleted file mode 100644
29 index 5c8f882a27c..00000000000
30 --- a/app-admin/sudo/sudo-1.8.22-r2.ebuild
31 +++ /dev/null
32 @@ -1,225 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -inherit eutils pam multilib libtool
39 -
40 -MY_P=${P/_/}
41 -MY_P=${MY_P/beta/b}
42 -
43 -uri_prefix=
44 -case ${P} in
45 - *_beta*|*_rc*) uri_prefix=beta/ ;;
46 -esac
47 -
48 -DESCRIPTION="Allows users or groups to run commands as other users"
49 -HOMEPAGE="https://www.sudo.ws/"
50 -SRC_URI="https://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
51 - ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
52 -
53 -# Basic license is ISC-style as-is, some files are released under
54 -# 3-clause BSD license
55 -LICENSE="ISC BSD"
56 -SLOT="0"
57 -if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
58 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~sparc-solaris"
59 -fi
60 -IUSE="gcrypt ldap nls pam offensive openssl sasl selinux +sendmail skey"
61 -
62 -CDEPEND="
63 - gcrypt? ( dev-libs/libgcrypt:= )
64 - openssl? ( dev-libs/openssl:0= )
65 - pam? ( virtual/pam )
66 - sasl? ( dev-libs/cyrus-sasl )
67 - skey? ( >=sys-auth/skey-1.1.5-r1 )
68 - ldap? (
69 - >=net-nds/openldap-2.1.30-r1
70 - dev-libs/cyrus-sasl
71 - )
72 - sys-libs/zlib
73 -"
74 -RDEPEND="
75 - ${CDEPEND}
76 - selinux? ( sec-policy/selinux-sudo )
77 - ldap? ( dev-lang/perl )
78 - pam? ( sys-auth/pambase )
79 - >=app-misc/editor-wrapper-3
80 - virtual/editor
81 - sendmail? ( virtual/mta )
82 -"
83 -DEPEND="
84 - ${CDEPEND}
85 - sys-devel/bison
86 -"
87 -
88 -S="${WORKDIR}/${MY_P}"
89 -
90 -REQUIRED_USE="
91 - pam? ( !skey )
92 - skey? ( !pam )
93 - ?? ( gcrypt openssl )
94 -"
95 -
96 -MAKEOPTS+=" SAMPLES="
97 -
98 -src_prepare() {
99 - default
100 - elibtoolize
101 -}
102 -
103 -set_rootpath() {
104 - # FIXME: secure_path is a compile time setting. using ROOTPATH
105 - # is not perfect, env-update may invalidate this, but until it
106 - # is available as a sudoers setting this will have to do.
107 - einfo "Setting secure_path ..."
108 -
109 - # first extract the default ROOTPATH from build env
110 - ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}")
111 - if [[ -z ${ROOTPATH} ]] ; then
112 - ewarn " Failed to find ROOTPATH, please report this"
113 - fi
114 -
115 - # then remove duplicate path entries
116 - cleanpath() {
117 - local newpath thisp IFS=:
118 - for thisp in $1 ; do
119 - if [[ :${newpath}: != *:${thisp}:* ]] ; then
120 - newpath+=:$thisp
121 - else
122 - einfo " Duplicate entry ${thisp} removed..."
123 - fi
124 - done
125 - ROOTPATH=${newpath#:}
126 - }
127 - cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}}
128 -
129 - # finally, strip gcc paths #136027
130 - rmpath() {
131 - local e newpath thisp IFS=:
132 - for thisp in ${ROOTPATH} ; do
133 - for e ; do [[ $thisp == $e ]] && continue 2 ; done
134 - newpath+=:$thisp
135 - done
136 - ROOTPATH=${newpath#:}
137 - }
138 - rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
139 -
140 - einfo "... done"
141 -}
142 -
143 -src_configure() {
144 - local ROOTPATH
145 - set_rootpath
146 -
147 - # audit: somebody got to explain me how I can test this before I
148 - # enable it.. - Diego
149 - # plugindir: autoconf code is crappy and does not delay evaluation
150 - # until `make` time, so we have to use a full path here rather than
151 - # basing off other values.
152 - myeconfargs=(
153 - --enable-zlib=system
154 - --with-editor="${EPREFIX}"/usr/libexec/editor
155 - --with-env-editor
156 - --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo
157 - --with-rundir="${EPREFIX}"/var/run/sudo
158 - --with-secure-path="${ROOTPATH}"
159 - --with-vardir="${EPREFIX}"/var/db/sudo
160 - --without-linux-audit
161 - --without-opie
162 - $(use_enable gcrypt)
163 - $(use_enable nls)
164 - $(use_enable openssl)
165 - $(use_enable sasl)
166 - $(use_with offensive insults)
167 - $(use_with offensive all-insults)
168 - $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo)
169 - $(use_with ldap)
170 - $(use_with pam)
171 - $(use_with skey)
172 - $(use_with selinux)
173 - $(use_with sendmail)
174 - )
175 - econf "${myeconfargs[@]}"
176 -}
177 -
178 -src_install() {
179 - default
180 -
181 - if use ldap ; then
182 - dodoc README.LDAP
183 - dosbin plugins/sudoers/sudoers2ldif
184 -
185 - cat <<-EOF > "${T}"/ldap.conf.sudo
186 - # See ldap.conf(5) and README.LDAP for details
187 - # This file should only be readable by root
188 -
189 - # supported directives: host, port, ssl, ldap_version
190 - # uri, binddn, bindpw, sudoers_base, sudoers_debug
191 - # tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
192 - EOF
193 -
194 - insinto /etc
195 - doins "${T}"/ldap.conf.sudo
196 - fperms 0440 /etc/ldap.conf.sudo
197 -
198 - insinto /etc/openldap/schema
199 - newins doc/schema.OpenLDAP sudo.schema
200 - fi
201 -
202 - pamd_mimic system-auth sudo auth account session
203 -
204 - keepdir /var/db/sudo/lectured
205 - fperms 0700 /var/db/sudo/lectured
206 - fperms 0711 /var/db/sudo #652958
207 -
208 - # Don't install into /var/run as that is a tmpfs most of the time
209 - # (bug #504854)
210 - rm -rf "${ED}"/var/run
211 -}
212 -
213 -pkg_postinst() {
214 - #652958
215 - local sudo_db="${EROOT}/var/db/sudo"
216 - if [[ "$(stat -c %a "${sudo_db}")" -ne 711 ]] ; then
217 - chmod 711 "${sudo_db}" || die
218 - fi
219 -
220 - if use ldap ; then
221 - ewarn
222 - ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
223 - ewarn
224 - if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
225 - ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
226 - ewarn "configured in /etc/nsswitch.conf."
227 - ewarn
228 - ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
229 - ewarn " sudoers: ldap files"
230 - ewarn
231 - fi
232 - fi
233 - if use prefix ; then
234 - ewarn
235 - ewarn "To use sudo, you need to change file ownership and permissions"
236 - ewarn "with root privileges, as follows:"
237 - ewarn
238 - ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
239 - ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
240 - ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
241 - ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
242 - ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
243 - ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
244 - ewarn
245 - fi
246 -
247 - elog "To use the -A (askpass) option, you need to install a compatible"
248 - elog "password program from the following list. Starred packages will"
249 - elog "automatically register for the use with sudo (but will not force"
250 - elog "the -A option):"
251 - elog ""
252 - elog " [*] net-misc/ssh-askpass-fullscreen"
253 - elog " net-misc/x11-ssh-askpass"
254 - elog ""
255 - elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
256 - elog "variable to the program you want to use."
257 -}
258
259 diff --git a/app-admin/sudo/sudo-1.8.23-r1.ebuild b/app-admin/sudo/sudo-1.8.23-r1.ebuild
260 deleted file mode 100644
261 index 8e7d28d69bd..00000000000
262 --- a/app-admin/sudo/sudo-1.8.23-r1.ebuild
263 +++ /dev/null
264 @@ -1,231 +0,0 @@
265 -# Copyright 1999-2018 Gentoo Foundation
266 -# Distributed under the terms of the GNU General Public License v2
267 -
268 -EAPI=6
269 -
270 -inherit eutils pam multilib libtool
271 -
272 -MY_P=${P/_/}
273 -MY_P=${MY_P/beta/b}
274 -
275 -uri_prefix=
276 -case ${P} in
277 - *_beta*|*_rc*) uri_prefix=beta/ ;;
278 -esac
279 -
280 -DESCRIPTION="Allows users or groups to run commands as other users"
281 -HOMEPAGE="https://www.sudo.ws/"
282 -SRC_URI="https://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
283 - ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
284 -
285 -# Basic license is ISC-style as-is, some files are released under
286 -# 3-clause BSD license
287 -LICENSE="ISC BSD"
288 -SLOT="0"
289 -if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
290 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~sparc-solaris"
291 -fi
292 -IUSE="gcrypt ldap nls pam offensive openssl sasl selinux +sendmail skey"
293 -
294 -CDEPEND="
295 - gcrypt? ( dev-libs/libgcrypt:= )
296 - openssl? ( dev-libs/openssl:0= )
297 - pam? ( virtual/pam )
298 - sasl? ( dev-libs/cyrus-sasl )
299 - skey? ( >=sys-auth/skey-1.1.5-r1 )
300 - ldap? (
301 - >=net-nds/openldap-2.1.30-r1
302 - dev-libs/cyrus-sasl
303 - )
304 - sys-libs/zlib
305 -"
306 -RDEPEND="
307 - ${CDEPEND}
308 - selinux? ( sec-policy/selinux-sudo )
309 - ldap? ( dev-lang/perl )
310 - pam? ( sys-auth/pambase )
311 - >=app-misc/editor-wrapper-3
312 - virtual/editor
313 - sendmail? ( virtual/mta )
314 -"
315 -DEPEND="
316 - ${CDEPEND}
317 - sys-devel/bison
318 -"
319 -
320 -S="${WORKDIR}/${MY_P}"
321 -
322 -REQUIRED_USE="
323 - pam? ( !skey )
324 - skey? ( !pam )
325 - ?? ( gcrypt openssl )
326 -"
327 -
328 -MAKEOPTS+=" SAMPLES="
329 -
330 -src_prepare() {
331 - default
332 - elibtoolize
333 -}
334 -
335 -set_secure_path() {
336 - # FIXME: secure_path is a compile time setting. using PATH or
337 - # ROOTPATH is not perfect, env-update may invalidate this, but until it
338 - # is available as a sudoers setting this will have to do.
339 - einfo "Setting secure_path ..."
340 -
341 - # first extract the default ROOTPATH from build env
342 - SECURE_PATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env;
343 - echo "${ROOTPATH}")
344 - case "${SECURE_PATH}" in
345 - */usr/sbin*) ;;
346 - *) SECURE_PATH=$(unset PATH;
347 - . "${EPREFIX}"/etc/profile.env; echo "${PATH}")
348 - ;;
349 - esac
350 - if [[ -z ${SECURE_PATH} ]] ; then
351 - ewarn " Failed to detect SECURE_PATH, please report this"
352 - fi
353 -
354 - # then remove duplicate path entries
355 - cleanpath() {
356 - local newpath thisp IFS=:
357 - for thisp in $1 ; do
358 - if [[ :${newpath}: != *:${thisp}:* ]] ; then
359 - newpath+=:$thisp
360 - else
361 - einfo " Duplicate entry ${thisp} removed..."
362 - fi
363 - done
364 - SECURE_PATH=${newpath#:}
365 - }
366 - cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${SECURE_PATH:+:${SECURE_PATH}}
367 -
368 - # finally, strip gcc paths #136027
369 - rmpath() {
370 - local e newpath thisp IFS=:
371 - for thisp in ${SECURE_PATH} ; do
372 - for e ; do [[ $thisp == $e ]] && continue 2 ; done
373 - newpath+=:$thisp
374 - done
375 - SECURE_PATH=${newpath#:}
376 - }
377 - rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
378 -
379 - einfo "... done"
380 -}
381 -
382 -src_configure() {
383 - local SECURE_PATH
384 - set_secure_path
385 -
386 - # audit: somebody got to explain me how I can test this before I
387 - # enable it.. - Diego
388 - # plugindir: autoconf code is crappy and does not delay evaluation
389 - # until `make` time, so we have to use a full path here rather than
390 - # basing off other values.
391 - myeconfargs=(
392 - --enable-zlib=system
393 - --with-editor="${EPREFIX}"/usr/libexec/editor
394 - --with-env-editor
395 - --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo
396 - --with-rundir="${EPREFIX}"/var/run/sudo
397 - --with-secure-path="${SECURE_PATH}"
398 - --with-vardir="${EPREFIX}"/var/db/sudo
399 - --without-linux-audit
400 - --without-opie
401 - $(use_enable gcrypt)
402 - $(use_enable nls)
403 - $(use_enable openssl)
404 - $(use_enable sasl)
405 - $(use_with offensive insults)
406 - $(use_with offensive all-insults)
407 - $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo)
408 - $(use_with ldap)
409 - $(use_with pam)
410 - $(use_with skey)
411 - $(use_with selinux)
412 - $(use_with sendmail)
413 - )
414 - econf "${myeconfargs[@]}"
415 -}
416 -
417 -src_install() {
418 - default
419 -
420 - if use ldap ; then
421 - dodoc README.LDAP
422 -
423 - cat <<-EOF > "${T}"/ldap.conf.sudo
424 - # See ldap.conf(5) and README.LDAP for details
425 - # This file should only be readable by root
426 -
427 - # supported directives: host, port, ssl, ldap_version
428 - # uri, binddn, bindpw, sudoers_base, sudoers_debug
429 - # tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
430 - EOF
431 -
432 - insinto /etc
433 - doins "${T}"/ldap.conf.sudo
434 - fperms 0440 /etc/ldap.conf.sudo
435 -
436 - insinto /etc/openldap/schema
437 - newins doc/schema.OpenLDAP sudo.schema
438 - fi
439 -
440 - pamd_mimic system-auth sudo auth account session
441 -
442 - keepdir /var/db/sudo/lectured
443 - fperms 0700 /var/db/sudo/lectured
444 - fperms 0711 /var/db/sudo #652958
445 -
446 - # Don't install into /var/run as that is a tmpfs most of the time
447 - # (bug #504854)
448 - rm -rf "${ED}"/var/run
449 -}
450 -
451 -pkg_postinst() {
452 - #652958
453 - local sudo_db="${EROOT}/var/db/sudo"
454 - if [[ "$(stat -c %a "${sudo_db}")" -ne 711 ]] ; then
455 - chmod 711 "${sudo_db}" || die
456 - fi
457 -
458 - if use ldap ; then
459 - ewarn
460 - ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
461 - ewarn
462 - if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
463 - ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
464 - ewarn "configured in /etc/nsswitch.conf."
465 - ewarn
466 - ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
467 - ewarn " sudoers: ldap files"
468 - ewarn
469 - fi
470 - fi
471 - if use prefix ; then
472 - ewarn
473 - ewarn "To use sudo, you need to change file ownership and permissions"
474 - ewarn "with root privileges, as follows:"
475 - ewarn
476 - ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
477 - ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
478 - ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
479 - ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
480 - ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
481 - ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
482 - ewarn
483 - fi
484 -
485 - elog "To use the -A (askpass) option, you need to install a compatible"
486 - elog "password program from the following list. Starred packages will"
487 - elog "automatically register for the use with sudo (but will not force"
488 - elog "the -A option):"
489 - elog ""
490 - elog " [*] net-misc/ssh-askpass-fullscreen"
491 - elog " net-misc/x11-ssh-askpass"
492 - elog ""
493 - elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
494 - elog "variable to the program you want to use."
495 -}