Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/sudo/
Date: Thu, 16 Sep 2021 22:06:42
Message-Id: 1631829924.6e62a1449ffda62e825e84e1028be8b971ac33fb.sam@gentoo
1 commit: 6e62a1449ffda62e825e84e1028be8b971ac33fb
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 16 22:05:13 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 16 22:05:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e62a144
7
8 app-admin/sudo: drop 1.9.8
9
10 Bug: https://bugs.gentoo.org/813039
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 app-admin/sudo/Manifest | 1 -
14 app-admin/sudo/sudo-1.9.8.ebuild | 255 ---------------------------------------
15 2 files changed, 256 deletions(-)
16
17 diff --git a/app-admin/sudo/Manifest b/app-admin/sudo/Manifest
18 index d33a796b5ac..998f5768090 100644
19 --- a/app-admin/sudo/Manifest
20 +++ b/app-admin/sudo/Manifest
21 @@ -1,4 +1,3 @@
22 DIST sudo-1.9.6p1.tar.gz 4119888 BLAKE2B 02bdb551c46cff11ac56e64937c64e6a29ccd8e0af34ea2f6b33c223bee8f7ad958d0fc3d7ef8ef12bf5bc82565769b923ff112a3f3d6bf6999fa4f6ea55e38e SHA512 632dfe72f04ce9a7a5a7236fcd5c09ce4535e695ced49d24dd848e3a7b1bea7380df44188b9e475af4271069539b5a5816948a98fbb0649ebebaba8b4c4b7745
23 DIST sudo-1.9.7p2.tar.gz 4200036 BLAKE2B b977c423670e5e34e84f3b009d5fe5f0379a0027e828fb903aa7ff1b11581572e8d5452a3666d963df3edfe1b83ffe16fbf8bddbf07881284f4507c8138859ad SHA512 39184127122014d0d1d194d455644191009835ffdcc0efda3a99028fe346ca3ff6b15341016f85029556e9f1f9deeaf83b52160effc47d1a5713affb36b99386
24 -DIST sudo-1.9.8.tar.gz 4301188 BLAKE2B 6731f5ad4b7002b2ec0d9f893a18070e220918bb6f4ffefdc6719221a5614912253f9547d83fc5e61c3cdada8b093d5e9c7f4c37ec6e3fc2fb9245bd10797dd2 SHA512 b1ef0464bbf5d7ab65066752769261640a142fa82b7d3d8698a7e098fbc2670c382211bce1ca0c44cb7a1c3b5a375a725a1e05a9fdfb4a31023c868285814fdc
25 DIST sudo-1.9.8p1.tar.gz 4302104 BLAKE2B ddd997a39c3e4001a24ab8a1cf81bce4ffc2f9c2d6b548315c316051e994f656311748826ff48eb4030b201b9adbb47bc4d5d1b3a42dfd6d72f9d7e147630893 SHA512 edab6dd9bf07bd9a333e598327da5d0a376279b9d1884aba38c079fcd8d4265de9c0089c321ec3e608058540d3c0869b56961cba315250bd256fe0d713183875
26
27 diff --git a/app-admin/sudo/sudo-1.9.8.ebuild b/app-admin/sudo/sudo-1.9.8.ebuild
28 deleted file mode 100644
29 index de7fec38555..00000000000
30 --- a/app-admin/sudo/sudo-1.9.8.ebuild
31 +++ /dev/null
32 @@ -1,255 +0,0 @@
33 -# Copyright 1999-2021 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -inherit pam libtool tmpfiles toolchain-funcs
39 -
40 -MY_P="${P/_/}"
41 -MY_P="${MY_P/beta/b}"
42 -
43 -DESCRIPTION="Allows users or groups to run commands as other users"
44 -HOMEPAGE="https://www.sudo.ws/"
45 -if [[ ${PV} == "9999" ]] ; then
46 - inherit mercurial
47 - EHG_REPO_URI="https://www.sudo.ws/repos/sudo"
48 -else
49 - uri_prefix=
50 - case ${P} in
51 - *_beta*|*_rc*) uri_prefix=beta/ ;;
52 - esac
53 -
54 - SRC_URI="https://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
55 - ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
56 - if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
57 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~sparc-solaris"
58 - fi
59 -fi
60 -
61 -# Basic license is ISC-style as-is, some files are released under
62 -# 3-clause BSD license
63 -LICENSE="ISC BSD"
64 -SLOT="0"
65 -IUSE="gcrypt ldap nls offensive pam sasl +secure-path selinux +sendmail skey ssl sssd"
66 -
67 -DEPEND="
68 - sys-libs/zlib:=
69 - virtual/libcrypt:=
70 - gcrypt? ( dev-libs/libgcrypt:= )
71 - ldap? (
72 - >=net-nds/openldap-2.1.30-r1
73 - sasl? (
74 - dev-libs/cyrus-sasl
75 - net-nds/openldap[sasl]
76 - )
77 - )
78 - pam? ( sys-libs/pam )
79 - sasl? ( dev-libs/cyrus-sasl )
80 - skey? ( >=sys-auth/skey-1.1.5-r1 )
81 - ssl? ( dev-libs/openssl:0= )
82 - sssd? ( sys-auth/sssd[sudo] )
83 -"
84 -RDEPEND="
85 - ${DEPEND}
86 - >=app-misc/editor-wrapper-3
87 - virtual/editor
88 - ldap? ( dev-lang/perl )
89 - pam? ( sys-auth/pambase )
90 - selinux? ( sec-policy/selinux-sudo )
91 - sendmail? ( virtual/mta )
92 -"
93 -BDEPEND="
94 - sys-devel/bison
95 - virtual/pkgconfig
96 -"
97 -
98 -S="${WORKDIR}/${MY_P}"
99 -
100 -REQUIRED_USE="
101 - ?? ( pam skey )
102 - ?? ( gcrypt ssl )
103 -"
104 -
105 -MAKEOPTS+=" SAMPLES="
106 -
107 -src_prepare() {
108 - default
109 - elibtoolize
110 -}
111 -
112 -set_secure_path() {
113 - # first extract the default ROOTPATH from build env
114 - SECURE_PATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env;
115 - echo "${ROOTPATH}")
116 - case "${SECURE_PATH}" in
117 - */usr/sbin*) ;;
118 - *) SECURE_PATH=$(unset PATH;
119 - . "${EPREFIX}"/etc/profile.env; echo "${PATH}")
120 - ;;
121 - esac
122 - if [[ -z ${SECURE_PATH} ]] ; then
123 - ewarn " Failed to detect SECURE_PATH, please report this"
124 - fi
125 -
126 - # then remove duplicate path entries
127 - cleanpath() {
128 - local newpath thisp IFS=:
129 - for thisp in $1 ; do
130 - if [[ :${newpath}: != *:${thisp}:* ]] ; then
131 - newpath+=:${thisp}
132 - else
133 - einfo " Duplicate entry ${thisp} removed..."
134 - fi
135 - done
136 - SECURE_PATH=${newpath#:}
137 - }
138 - cleanpath /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin${SECURE_PATH:+:${SECURE_PATH}}
139 -
140 - # finally, strip gcc paths #136027
141 - rmpath() {
142 - local e newpath thisp IFS=:
143 - for thisp in ${SECURE_PATH} ; do
144 - for e ; do [[ ${thisp} == ${e} ]] && continue 2 ; done
145 - newpath+=:${thisp}
146 - done
147 - SECURE_PATH=${newpath#:}
148 - }
149 - rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
150 -}
151 -
152 -src_configure() {
153 - local SECURE_PATH
154 - set_secure_path
155 - tc-export PKG_CONFIG #767712
156 -
157 - # audit: somebody got to explain me how I can test this before I
158 - # enable it.. - Diego
159 - # plugindir: autoconf code is crappy and does not delay evaluation
160 - # until `make` time, so we have to use a full path here rather than
161 - # basing off other values.
162 - myeconfargs=(
163 - # requires some python eclass
164 - --disable-python
165 - --enable-tmpfiles.d="${EPREFIX}"/usr/lib/tmpfiles.d
166 - --enable-zlib=system
167 - --with-editor="${EPREFIX}"/usr/libexec/editor
168 - --with-env-editor
169 - --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo
170 - --with-rundir="${EPREFIX}"/run/sudo
171 - --with-vardir="${EPREFIX}"/var/db/sudo
172 - --without-linux-audit
173 - --without-opie
174 - $(use_enable gcrypt)
175 - $(use_enable nls)
176 - $(use_enable sasl)
177 - $(use_enable ssl openssl)
178 - $(use_with ldap)
179 - $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo)
180 - $(use_with offensive insults)
181 - $(use_with offensive all-insults)
182 - $(use_with pam)
183 - $(use_with pam pam-login)
184 - $(use_with secure-path secure-path "${SECURE_PATH}")
185 - $(use_with selinux)
186 - $(use_with sendmail)
187 - $(use_with skey)
188 - $(use_with sssd)
189 - )
190 -
191 - econf "${myeconfargs[@]}"
192 -}
193 -
194 -src_install() {
195 - default
196 -
197 - if use ldap ; then
198 - dodoc README.LDAP
199 -
200 - cat <<-EOF > "${T}"/ldap.conf.sudo
201 - # See ldap.conf(5) and README.LDAP for details
202 - # This file should only be readable by root
203 -
204 - # supported directives: host, port, ssl, ldap_version
205 - # uri, binddn, bindpw, sudoers_base, sudoers_debug
206 - # tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
207 - EOF
208 -
209 - if use sasl ; then
210 - cat <<-EOF >> "${T}"/ldap.conf.sudo
211 -
212 - # SASL directives: use_sasl, sasl_mech, sasl_auth_id
213 - # sasl_secprops, rootuse_sasl, rootsasl_auth_id, krb5_ccname
214 - EOF
215 - fi
216 -
217 - insinto /etc
218 - doins "${T}"/ldap.conf.sudo
219 - fperms 0440 /etc/ldap.conf.sudo
220 -
221 - insinto /etc/openldap/schema
222 - newins doc/schema.OpenLDAP sudo.schema
223 - fi
224 -
225 - if use pam; then
226 - pamd_mimic system-auth sudo auth account session
227 - pamd_mimic system-auth sudo-i auth account session
228 - fi
229 -
230 - keepdir /var/db/sudo/lectured
231 - fperms 0700 /var/db/sudo/lectured
232 - fperms 0711 /var/db/sudo #652958
233 -
234 - # Don't install into /run as that is a tmpfs most of the time
235 - # (bug #504854)
236 - rm -rf "${ED}"/run || die
237 -
238 - find "${ED}" -type f -name "*.la" -delete || die #697812
239 -}
240 -
241 -pkg_postinst() {
242 - tmpfiles_process sudo.conf
243 -
244 - #652958
245 - local sudo_db="${EROOT}/var/db/sudo"
246 - if [[ "$(stat -c %a "${sudo_db}")" -ne 711 ]] ; then
247 - chmod 711 "${sudo_db}" || die
248 - fi
249 -
250 - if use ldap ; then
251 - ewarn
252 - ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
253 - ewarn
254 - if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
255 - ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
256 - ewarn "configured in /etc/nsswitch.conf."
257 - ewarn
258 - ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
259 - ewarn " sudoers: ldap files"
260 - ewarn
261 - fi
262 - fi
263 - if use prefix ; then
264 - ewarn
265 - ewarn "To use sudo, you need to change file ownership and permissions"
266 - ewarn "with root privileges, as follows:"
267 - ewarn
268 - ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
269 - ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
270 - ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
271 - ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
272 - ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
273 - ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
274 - ewarn
275 - fi
276 -
277 - elog "To use the -A (askpass) option, you need to install a compatible"
278 - elog "password program from the following list. Starred packages will"
279 - elog "automatically register for the use with sudo (but will not force"
280 - elog "the -A option):"
281 - elog ""
282 - elog " [*] net-misc/ssh-askpass-fullscreen"
283 - elog " net-misc/x11-ssh-askpass"
284 - elog ""
285 - elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
286 - elog "variable to the program you want to use."
287 -}