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: Sun, 08 Jul 2018 09:18:29
Message-Id: 1531041499.c1de12de8448b36ae30b7bd309e21fca522ba2ab.polynomial-c@gentoo
1 commit: c1de12de8448b36ae30b7bd309e21fca522ba2ab
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 8 09:17:59 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 8 09:18:19 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1de12de
7
8 app-admin/sudo: Removed old.
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 app-admin/sudo/Manifest | 1 -
13 app-admin/sudo/sudo-1.8.20_p2.ebuild | 216 -----------------------------------
14 2 files changed, 217 deletions(-)
15
16 diff --git a/app-admin/sudo/Manifest b/app-admin/sudo/Manifest
17 index bcba5506615..4a91e31b016 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.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.24b1.tar.gz 3167476 BLAKE2B 23fa302773733ac84f36af006076a367c8201ed238f43007b9fff504ead6b8845614c0180aa1cfd33b7fb7082437b9701ff6e4da8df44e97f34a0084a0920feb SHA512 92746df75b32031ef890c48fe0383001640c8470bae841f2277f42008eda4e86b0ed0494ceb0a9e1ac7a7510375c9a7c7d23ec3e84a42e94d457f6771170357c
25
26 diff --git a/app-admin/sudo/sudo-1.8.20_p2.ebuild b/app-admin/sudo/sudo-1.8.20_p2.ebuild
27 deleted file mode 100644
28 index 256026257b1..00000000000
29 --- a/app-admin/sudo/sudo-1.8.20_p2.ebuild
30 +++ /dev/null
31 @@ -1,216 +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 selinux skey +sendmail"
60 -
61 -CDEPEND="
62 - gcrypt? ( dev-libs/libgcrypt:= )
63 - openssl? ( dev-libs/openssl:0= )
64 - pam? ( virtual/pam )
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_with offensive insults)
164 - $(use_with offensive all-insults)
165 - $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo)
166 - $(use_with ldap)
167 - $(use_with pam)
168 - $(use_with skey)
169 - $(use_with selinux)
170 - $(use_with sendmail)
171 - )
172 - econf "${myeconfargs[@]}"
173 -}
174 -
175 -src_install() {
176 - default
177 -
178 - if use ldap ; then
179 - dodoc README.LDAP
180 - dosbin plugins/sudoers/sudoers2ldif
181 -
182 - cat <<-EOF > "${T}"/ldap.conf.sudo
183 - # See ldap.conf(5) and README.LDAP for details
184 - # This file should only be readable by root
185 -
186 - # supported directives: host, port, ssl, ldap_version
187 - # uri, binddn, bindpw, sudoers_base, sudoers_debug
188 - # tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
189 - EOF
190 -
191 - insinto /etc
192 - doins "${T}"/ldap.conf.sudo
193 - fperms 0440 /etc/ldap.conf.sudo
194 -
195 - insinto /etc/openldap/schema
196 - newins doc/schema.OpenLDAP sudo.schema
197 - fi
198 -
199 - pamd_mimic system-auth sudo auth account session
200 -
201 - keepdir /var/db/sudo
202 - fperms 0700 /var/db/sudo
203 -
204 - # Don't install into /var/run as that is a tmpfs most of the time
205 - # (bug #504854)
206 - rm -rf "${D}"/var/run
207 -}
208 -
209 -pkg_postinst() {
210 - if use ldap ; then
211 - ewarn
212 - ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
213 - ewarn
214 - if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
215 - ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
216 - ewarn "configured in /etc/nsswitch.conf."
217 - ewarn
218 - ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
219 - ewarn " sudoers: ldap files"
220 - ewarn
221 - fi
222 - fi
223 - if use prefix ; then
224 - ewarn
225 - ewarn "To use sudo, you need to change file ownership and permissions"
226 - ewarn "with root privileges, as follows:"
227 - ewarn
228 - ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
229 - ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
230 - ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
231 - ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
232 - ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
233 - ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
234 - ewarn
235 - fi
236 -
237 - elog "To use the -A (askpass) option, you need to install a compatible"
238 - elog "password program from the following list. Starred packages will"
239 - elog "automatically register for the use with sudo (but will not force"
240 - elog "the -A option):"
241 - elog ""
242 - elog " [*] net-misc/ssh-askpass-fullscreen"
243 - elog " net-misc/x11-ssh-askpass"
244 - elog ""
245 - elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
246 - elog "variable to the program you want to use."
247 -}