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