1 |
flameeyes 11/05/18 01:29:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sudo-1.8.1_p2.ebuild |
5 |
Removed: sudo-1.7.6_p1.ebuild sudo-1.8.1_p1.ebuild |
6 |
Log: |
7 |
Version bump; remove old. |
8 |
|
9 |
(Portage version: 2.2.0_alpha33/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.270 app-admin/sudo/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/sudo/ChangeLog?rev=1.270&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/sudo/ChangeLog?rev=1.270&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/sudo/ChangeLog?r1=1.269&r2=1.270 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v |
21 |
retrieving revision 1.269 |
22 |
retrieving revision 1.270 |
23 |
diff -u -r1.269 -r1.270 |
24 |
--- ChangeLog 16 Apr 2011 12:00:38 -0000 1.269 |
25 |
+++ ChangeLog 18 May 2011 01:29:24 -0000 1.270 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for app-admin/sudo |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.269 2011/04/16 12:00:38 flameeyes Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.270 2011/05/18 01:29:24 flameeyes Exp $ |
31 |
+ |
32 |
+*sudo-1.8.1_p2 (18 May 2011) |
33 |
+ |
34 |
+ 18 May 2011; Diego E. Pettenò <flameeyes@g.o> -sudo-1.7.6_p1.ebuild, |
35 |
+ -sudo-1.8.1_p1.ebuild, +sudo-1.8.1_p2.ebuild: |
36 |
+ Version bump; remove old. |
37 |
|
38 |
*sudo-1.8.1_p1 (16 Apr 2011) |
39 |
*sudo-1.7.6_p1 (16 Apr 2011) |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-admin/sudo/sudo-1.8.1_p2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/sudo/sudo-1.8.1_p2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/sudo/sudo-1.8.1_p2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: sudo-1.8.1_p2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.8.1_p2.ebuild,v 1.1 2011/05/18 01:29:24 flameeyes Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
|
56 |
inherit eutils pam multilib libtool |
57 |
|
58 |
MY_P=${P/_/} |
59 |
MY_P=${MY_P/beta/b} |
60 |
|
61 |
case "${P}" in |
62 |
*_beta* | *_rc*) |
63 |
uri_prefix=beta/ |
64 |
;; |
65 |
*) |
66 |
uri_prefix="" |
67 |
;; |
68 |
esac |
69 |
|
70 |
DESCRIPTION="Allows users or groups to run commands as other users" |
71 |
HOMEPAGE="http://www.sudo.ws/" |
72 |
SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz |
73 |
ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz" |
74 |
|
75 |
# Basic license is ISC-style as-is, some files are released under |
76 |
# 3-clause BSD license |
77 |
LICENSE="as-is BSD" |
78 |
|
79 |
SLOT="0" |
80 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
81 |
IUSE="pam offensive ldap selinux skey" |
82 |
|
83 |
DEPEND="pam? ( virtual/pam ) |
84 |
ldap? ( |
85 |
>=net-nds/openldap-2.1.30-r1 |
86 |
dev-libs/cyrus-sasl |
87 |
) |
88 |
app-editors/gentoo-editor |
89 |
virtual/editor |
90 |
virtual/mta" |
91 |
RDEPEND="selinux? ( sec-policy/selinux-sudo ) |
92 |
ldap? ( dev-lang/perl ) |
93 |
pam? ( sys-auth/pambase ) |
94 |
${DEPEND}" |
95 |
DEPEND="${DEPEND} |
96 |
sys-devel/bison" |
97 |
|
98 |
S=${WORKDIR}/${MY_P} |
99 |
|
100 |
REQUIRED_USE="pam? ( !skey ) skey? ( !pam )" |
101 |
|
102 |
MAKEOPTS="${MAKEOPTS} SAMPLES=" |
103 |
|
104 |
src_prepare() { |
105 |
elibtoolize |
106 |
} |
107 |
|
108 |
src_configure() { |
109 |
local line ROOTPATH |
110 |
|
111 |
# FIXME: secure_path is a compile time setting. using ROOTPATH |
112 |
# is not perfect, env-update may invalidate this, but until it |
113 |
# is available as a sudoers setting this will have to do. |
114 |
einfo "Setting secure_path..." |
115 |
|
116 |
# why not use grep? variable might be expanded from other variables |
117 |
# declared in that file. cannot just source the file, would override |
118 |
# any variables already set. |
119 |
eval `PS4= bash -x /etc/profile.env 2>&1 | \ |
120 |
while read line; do |
121 |
case $line in |
122 |
ROOTPATH=*) echo $line; break;; |
123 |
*) continue;; |
124 |
esac |
125 |
done` && einfo " Found ROOTPATH..." || \ |
126 |
ewarn " Failed to find ROOTPATH, please report this." |
127 |
|
128 |
# remove duplicate path entries from $1 |
129 |
cleanpath() { |
130 |
local i=1 x n IFS=: |
131 |
local -a paths; paths=($1) |
132 |
|
133 |
for ((n=${#paths[*]}-1;i<=n;i++)); do |
134 |
for ((x=0;x<i;x++)); do |
135 |
test "${paths[i]}" == "${paths[x]}" && { |
136 |
einfo " Duplicate entry ${paths[i]} removed..." 1>&2 |
137 |
unset paths[i]; continue 2; } |
138 |
done; # einfo " Adding ${paths[i]}..." 1>&2 |
139 |
done; echo "${paths[*]}" |
140 |
} |
141 |
|
142 |
ROOTPATH=$(cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}}) |
143 |
|
144 |
# strip gcc path (bug #136027) |
145 |
rmpath() { |
146 |
declare e newpath oldpath=${!1} PATHvar=$1 thisp IFS=: |
147 |
shift |
148 |
for thisp in $oldpath; do |
149 |
for e; do [[ $thisp == $e ]] && continue 2; done |
150 |
newpath=$newpath:$thisp |
151 |
done |
152 |
eval $PATHvar='${newpath#:}' |
153 |
} |
154 |
|
155 |
rmpath ROOTPATH '*/gcc-bin/*' |
156 |
rmpath ROOTPATH '*/gnat-gcc-bin/*' |
157 |
rmpath ROOTPATH '*/gnat-gcc/*' |
158 |
|
159 |
einfo "...done." |
160 |
|
161 |
# audit: somebody got to explain me how I can test this before I |
162 |
# enable it.. — Diego |
163 |
econf --with-secure-path="${ROOTPATH}" \ |
164 |
--with-editor=/usr/libexec/gentoo-editor \ |
165 |
--with-env-editor \ |
166 |
$(use_with offensive insults) \ |
167 |
$(use_with offensive all-insults) \ |
168 |
$(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \ |
169 |
$(use_with ldap) \ |
170 |
$(use_with pam) \ |
171 |
$(use_with skey) \ |
172 |
--without-opie \ |
173 |
--without-linux-audit \ |
174 |
--with-timedir=/var/db/sudo \ |
175 |
--with-plugindir=/usr/$(get_libdir)/sudo \ |
176 |
--docdir=/usr/share/doc/${PF} |
177 |
} |
178 |
|
179 |
src_install() { |
180 |
emake DESTDIR="${D}" install || die |
181 |
|
182 |
if use ldap; then |
183 |
dodoc README.LDAP doc/schema.OpenLDAP |
184 |
dosbin plugins/sudoers/sudoers2ldif |
185 |
|
186 |
cat - > "${T}"/ldap.conf.sudo <<EOF |
187 |
# See ldap.conf(5) and README.LDAP for details\n" |
188 |
# This file should only be readable by root\n\n" |
189 |
# supported directives: host, port, ssl, ldap_version\n" |
190 |
# uri, binddn, bindpw, sudoers_base, sudoers_debug\n" |
191 |
# tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key |
192 |
EOF |
193 |
|
194 |
insinto /etc |
195 |
doins "${T}"/ldap.conf.sudo |
196 |
fperms 0440 /etc/ldap.conf.sudo |
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 |
|
205 |
pkg_postinst() { |
206 |
if use ldap; then |
207 |
ewarn |
208 |
ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration." |
209 |
ewarn |
210 |
if egrep -q '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf; then |
211 |
ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly" |
212 |
ewarn "configured in /etc/nsswitch.conf." |
213 |
ewarn |
214 |
ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:" |
215 |
ewarn " sudoers: ldap files" |
216 |
ewarn |
217 |
fi |
218 |
fi |
219 |
|
220 |
elog "To use the -A (askpass) option, you need to install a compatible" |
221 |
elog "password program from the following list. Starred packages will" |
222 |
elog "automatically register for the use with sudo (but will not force" |
223 |
elog "the -A option):" |
224 |
elog "" |
225 |
elog " [*] net-misc/ssh-askpass-fullscreen" |
226 |
elog " net-misc/x11-ssh-askpass" |
227 |
elog "" |
228 |
elog "You can override the choice by setting the SUDO_ASKPASS environmnent" |
229 |
elog "variable to the program you want to use." |
230 |
} |