1 |
flameeyes 12/02/29 16:25:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sudo-1.8.4_p2.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.303 app-admin/sudo/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/sudo/ChangeLog?rev=1.303&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/sudo/ChangeLog?rev=1.303&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/sudo/ChangeLog?r1=1.302&r2=1.303 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v |
20 |
retrieving revision 1.302 |
21 |
retrieving revision 1.303 |
22 |
diff -u -r1.302 -r1.303 |
23 |
--- ChangeLog 21 Feb 2012 20:23:33 -0000 1.302 |
24 |
+++ ChangeLog 29 Feb 2012 16:25:35 -0000 1.303 |
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.302 2012/02/21 20:23:33 flameeyes Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.303 2012/02/29 16:25:35 flameeyes Exp $ |
30 |
+ |
31 |
+*sudo-1.8.4_p2 (29 Feb 2012) |
32 |
+ |
33 |
+ 29 Feb 2012; Diego E. Pettenò <flameeyes@g.o> +sudo-1.8.4_p2.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*sudo-1.8.4_p1 (21 Feb 2012) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 app-admin/sudo/sudo-1.8.4_p2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/sudo/sudo-1.8.4_p2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/sudo/sudo-1.8.4_p2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: sudo-1.8.4_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.4_p2.ebuild,v 1.1 2012/02/29 16:25:35 flameeyes 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="ldap nls pam offensive 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 |
sys-libs/zlib" |
83 |
RDEPEND="${DEPEND} |
84 |
selinux? ( sec-policy/selinux-sudo ) |
85 |
ldap? ( dev-lang/perl ) |
86 |
pam? ( sys-auth/pambase ) |
87 |
>=app-misc/editor-wrapper-3 |
88 |
virtual/editor |
89 |
virtual/mta" |
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 |
elibtoolize |
101 |
} |
102 |
|
103 |
set_rootpath() { |
104 |
# FIXME: secure_path is a compile time setting. using ROOTPATH |
105 |
# is not perfect, env-update may invalidate this, but until it |
106 |
# is available as a sudoers setting this will have to do. |
107 |
einfo "Setting secure_path ..." |
108 |
|
109 |
# first extract the default ROOTPATH from build env |
110 |
ROOTPATH=$(unset ROOTPATH; . /etc/profile.env; echo "${ROOTPATH}") |
111 |
if [[ -z ${ROOTPATH} ]] ; then |
112 |
ewarn " Failed to find ROOTPATH, please report this" |
113 |
fi |
114 |
|
115 |
# then remove duplicate path entries |
116 |
cleanpath() { |
117 |
local newpath thisp IFS=: |
118 |
for thisp in $1 ; do |
119 |
if [[ :${newpath}: != *:${thisp}:* ]] ; then |
120 |
newpath+=:$thisp |
121 |
else |
122 |
einfo " Duplicate entry ${thisp} removed..." |
123 |
fi |
124 |
done |
125 |
ROOTPATH=${newpath#:} |
126 |
} |
127 |
cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}} |
128 |
|
129 |
# finally, strip gcc paths #136027 |
130 |
rmpath() { |
131 |
local e newpath thisp IFS=: |
132 |
for thisp in ${ROOTPATH} ; do |
133 |
for e ; do [[ $thisp == $e ]] && continue 2 ; done |
134 |
newpath+=:$thisp |
135 |
done |
136 |
ROOTPATH=${newpath#:} |
137 |
} |
138 |
rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*' |
139 |
|
140 |
einfo "... done" |
141 |
} |
142 |
|
143 |
src_configure() { |
144 |
local ROOTPATH |
145 |
set_rootpath |
146 |
|
147 |
# audit: somebody got to explain me how I can test this before I |
148 |
# enable it.. - Diego |
149 |
# plugindir: autoconf code is crappy and does not delay evaluation |
150 |
# until `make` time, so we have to use a full path here rather than |
151 |
# basing off other values. |
152 |
econf \ |
153 |
--enable-zlib=system \ |
154 |
--with-secure-path="${ROOTPATH}" \ |
155 |
--with-editor=/usr/libexec/editor \ |
156 |
--with-env-editor \ |
157 |
$(use_with offensive insults) \ |
158 |
$(use_with offensive all-insults) \ |
159 |
$(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \ |
160 |
$(use_with ldap) \ |
161 |
$(use_enable nls) \ |
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 |
} |