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