Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: app-admin/sudo/sudo-1.7.4_p4.ebuild

Issue 6463006: Change 'sudo' to use /var/lib instead of /var/db. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/chromiumos-overlay.git@master
Patch Set: Rev the ebuild to make sure the change is picked up Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | app-admin/sudo/sudo-1.7.4_p4-r1.ebuild » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 1999-2010 Gentoo Foundation 1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2 2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.7.4_p4.ebuild,v 1.6 201 0/10/24 15:20:02 armin76 Exp $ 3 # $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.7.4_p4.ebuild,v 1.6 201 0/10/24 15:20:02 armin76 Exp $
4 4
5 inherit eutils pam 5 inherit eutils pam
6 6
7 MY_P=${P/_/} 7 MY_P=${P/_/}
8 MY_P=${MY_P/beta/b} 8 MY_P=${MY_P/beta/b}
9 9
10 case "${P}" in 10 case "${P}" in
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 # audit: somebody got to explain me how I can test this before I 168 # audit: somebody got to explain me how I can test this before I
169 # enable it.. — Diego 169 # enable it.. — Diego
170 econf --with-secure-path="${ROOTPATH}" \ 170 econf --with-secure-path="${ROOTPATH}" \
171 --with-editor=/usr/libexec/gentoo-editor \ 171 --with-editor=/usr/libexec/gentoo-editor \
172 --with-env-editor \ 172 --with-env-editor \
173 $(use_with offensive insults) \ 173 $(use_with offensive insults) \
174 $(use_with offensive all-insults) \ 174 $(use_with offensive all-insults) \
175 $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \ 175 $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \
176 $(use_with ldap) \ 176 $(use_with ldap) \
177 --without-linux-audit \ 177 --without-linux-audit \
178 » » --with-timedir=/var/db/sudo \ 178 » » --with-timedir=/var/lib/sudo \
179 --docdir=/usr/share/doc/${PF} \ 179 --docdir=/usr/share/doc/${PF} \
180 ${myconf} 180 ${myconf}
181 181
182 emake || die 182 emake || die
183 } 183 }
184 184
185 src_install() { 185 src_install() {
186 emake DESTDIR="${D}" install || die 186 emake DESTDIR="${D}" install || die
187 187
188 if use ldap; then 188 if use ldap; then
(...skipping 12 matching lines...) Expand all
201 doins "${T}"/ldap.conf.sudo 201 doins "${T}"/ldap.conf.sudo
202 fperms 0440 /etc/ldap.conf.sudo 202 fperms 0440 /etc/ldap.conf.sudo
203 fi 203 fi
204 204
205 pamd_mimic system-auth sudo auth account session 205 pamd_mimic system-auth sudo auth account session
206 206
207 insinto /etc 207 insinto /etc
208 doins "${S}"/sudoers 208 doins "${S}"/sudoers
209 fperms 0440 /etc/sudoers 209 fperms 0440 /etc/sudoers
210 210
211 » keepdir /var/db/sudo 211 » keepdir /var/lib/sudo
212 » fperms 0700 /var/db/sudo 212 » fperms 0700 /var/lib/sudo
213 } 213 }
214 214
215 pkg_postinst() { 215 pkg_postinst() {
216 if use ldap; then 216 if use ldap; then
217 ewarn 217 ewarn
218 ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configura tion." 218 ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configura tion."
219 ewarn 219 ewarn
220 if egrep -q '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf; then 220 if egrep -q '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf; then
221 ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly" 221 ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
222 ewarn "configured in /etc/nsswitch.conf." 222 ewarn "configured in /etc/nsswitch.conf."
223 ewarn 223 ewarn
224 ewarn "To make use of LDAP, add this line to your /etc/n sswitch.conf:" 224 ewarn "To make use of LDAP, add this line to your /etc/n sswitch.conf:"
225 ewarn " sudoers: ldap files" 225 ewarn " sudoers: ldap files"
226 ewarn 226 ewarn
227 fi 227 fi
228 fi 228 fi
229 229
230 elog "To use the -A (askpass) option, you need to install a compatible" 230 elog "To use the -A (askpass) option, you need to install a compatible"
231 elog "password program from the following list. Starred packages will" 231 elog "password program from the following list. Starred packages will"
232 elog "automatically register for the use with sudo (but will not force" 232 elog "automatically register for the use with sudo (but will not force"
233 elog "the -A option):" 233 elog "the -A option):"
234 elog "" 234 elog ""
235 elog " [*] net-misc/ssh-askpass-fullscreen" 235 elog " [*] net-misc/ssh-askpass-fullscreen"
236 elog " net-misc/x11-ssh-askpass" 236 elog " net-misc/x11-ssh-askpass"
237 elog "" 237 elog ""
238 elog "You can override the choice by setting the SUDO_ASKPASS environmne nt" 238 elog "You can override the choice by setting the SUDO_ASKPASS environmne nt"
239 elog "variable to the program you want to use." 239 elog "variable to the program you want to use."
240 } 240 }
OLDNEW
« no previous file with comments | « no previous file | app-admin/sudo/sudo-1.7.4_p4-r1.ebuild » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698