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