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