Lines 3-9
Link Here
|
3 |
# $Id$ |
3 |
# $Id$ |
4 |
|
4 |
|
5 |
EAPI=5 |
5 |
EAPI=5 |
6 |
inherit autotools eutils user |
6 |
inherit autotools eutils user prefix |
7 |
|
7 |
|
8 |
DESCRIPTION="An authentication service for creating and validating credentials" |
8 |
DESCRIPTION="An authentication service for creating and validating credentials" |
9 |
HOMEPAGE="https://github.com/dun/munge" |
9 |
HOMEPAGE="https://github.com/dun/munge" |
Lines 30-41
src_prepare() {
Link Here
|
30 |
# Accepted upstream, https://github.com/dun/munge/pull/40 |
30 |
# Accepted upstream, https://github.com/dun/munge/pull/40 |
31 |
epatch "${FILESDIR}"/fixed-recursive-use-of-make-in-makefiles.patch |
31 |
epatch "${FILESDIR}"/fixed-recursive-use-of-make-in-makefiles.patch |
32 |
|
32 |
|
|
|
33 |
hprefixify config/x_ac_path_openssl.m4 |
34 |
|
33 |
eautoreconf |
35 |
eautoreconf |
34 |
} |
36 |
} |
35 |
|
37 |
|
36 |
src_configure() { |
38 |
src_configure() { |
37 |
econf \ |
39 |
econf \ |
38 |
--localstatedir=/var \ |
40 |
--localstatedir="${EPREFIX}"/var \ |
39 |
--with-crypto-lib=$(usex gcrypt libgcrypt openssl) |
41 |
--with-crypto-lib=$(usex gcrypt libgcrypt openssl) |
40 |
} |
42 |
} |
41 |
|
43 |
|
Lines 45-63
src_install() {
Link Here
|
45 |
default |
47 |
default |
46 |
|
48 |
|
47 |
# 450830 |
49 |
# 450830 |
48 |
if [ -d "${D}"/var/run ]; then |
50 |
if [ -d "${ED}"/var/run ]; then |
49 |
rm -rf "${D}"/var/run || die |
51 |
rm -rf "${ED}"/var/run || die |
50 |
fi |
52 |
fi |
51 |
|
53 |
|
52 |
diropts -o munge -g munge -m700 |
54 |
[[ EUID == 0 ]] && diropts -o munge -g munge -m700 |
53 |
dodir /etc/munge |
55 |
dodir /etc/munge |
54 |
|
56 |
|
55 |
for d in "init.d" "default" "sysconfig"; do |
57 |
for d in "init.d" "default" "sysconfig"; do |
56 |
if [ -d "${D}"/etc/${d} ]; then |
58 |
if [ -d "${ED}"/etc/${d} ]; then |
57 |
rm -r "${D}"/etc/${d} || die |
59 |
rm -r "${ED}"/etc/${d} || die |
58 |
fi |
60 |
fi |
59 |
done |
61 |
done |
60 |
|
62 |
|
61 |
newconfd "${FILESDIR}"/${PN}d.confd ${PN}d |
63 |
newconfd "$(prefixify_ro "${FILESDIR}"/${PN}d.confd)" ${PN}d |
62 |
newinitd "${FILESDIR}"/${PN}d.initd ${PN}d |
64 |
newinitd "$(prefixify_ro "${FILESDIR}"/${PN}d.initd)" ${PN}d |
63 |
} |
65 |
} |