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