Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 442034 Details for
Bug 590106
sys-auth/munge: Prefix support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
munge-prefix.patch
munge-prefix.patch (text/plain), 1.49 KB, created by
Benda Xu
on 2016-07-31 03:46:04 UTC
(
hide
)
Description:
munge-prefix.patch
Filename:
MIME Type:
Creator:
Benda Xu
Created:
2016-07-31 03:46:04 UTC
Size:
1.49 KB
patch
obsolete
>diff --git a/sys-auth/munge/munge-0.5.11.ebuild b/sys-auth/munge/munge-0.5.11.ebuild >index 64bc557..caeee3a 100644 >--- a/sys-auth/munge/munge-0.5.11.ebuild >+++ b/sys-auth/munge/munge-0.5.11.ebuild >@@ -3,7 +3,7 @@ > # $Id$ > > EAPI=5 >-inherit autotools eutils user >+inherit autotools eutils user prefix > > DESCRIPTION="An authentication service for creating and validating credentials" > HOMEPAGE="https://github.com/dun/munge" >@@ -30,12 +30,14 @@ src_prepare() { > # Accepted upstream, https://github.com/dun/munge/pull/40 > epatch "${FILESDIR}"/fixed-recursive-use-of-make-in-makefiles.patch > >+ hprefixify config/x_ac_path_openssl.m4 >+ > eautoreconf > } > > src_configure() { > econf \ >- --localstatedir=/var \ >+ --localstatedir="${EPREFIX}"/var \ > --with-crypto-lib=$(usex gcrypt libgcrypt openssl) > } > >@@ -45,19 +47,19 @@ src_install() { > default > > # 450830 >- if [ -d "${D}"/var/run ]; then >- rm -rf "${D}"/var/run || die >+ if [ -d "${ED}"/var/run ]; then >+ rm -rf "${ED}"/var/run || die > fi > >- diropts -o munge -g munge -m700 >+ [[ EUID == 0 ]] && diropts -o munge -g munge -m700 > dodir /etc/munge > > for d in "init.d" "default" "sysconfig"; do >- if [ -d "${D}"/etc/${d} ]; then >- rm -r "${D}"/etc/${d} || die >+ if [ -d "${ED}"/etc/${d} ]; then >+ rm -r "${ED}"/etc/${d} || die > fi > done > >- newconfd "${FILESDIR}"/${PN}d.confd ${PN}d >- newinitd "${FILESDIR}"/${PN}d.initd ${PN}d >+ newconfd "$(prefixify_ro "${FILESDIR}"/${PN}d.confd)" ${PN}d >+ newinitd "$(prefixify_ro "${FILESDIR}"/${PN}d.initd)" ${PN}d > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 590106
: 442034