munge: keep dirs
This commit is contained in:
parent
be2ae15f60
commit
2a66475c79
|
@ -32,19 +32,24 @@ src_configure() {
|
||||||
econf ${conf} --localstatedir=/var
|
econf ${conf} --localstatedir=/var
|
||||||
}
|
}
|
||||||
|
|
||||||
remove() {
|
munge_remove() {
|
||||||
dir="${IMAGE}/$1"
|
dir="${IMAGE}/$1"
|
||||||
[ -e "${dir}" ] && edo rm -rf "${dir}"
|
[ -e "${dir}" ] && edo rm -rf "${dir}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
exdirectory --allow /run
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
emake DESTDIR="${IMAGE}" install
|
emake DESTDIR="${IMAGE}" install
|
||||||
|
|
||||||
remove /var/run
|
keepdir /run/munge
|
||||||
remove /var/log
|
keepdir /var/log/munge
|
||||||
remove /etc/init.d
|
munge_remove /var/run
|
||||||
remove /etc/default
|
munge_remove /etc/init.d
|
||||||
remove /etc/sysconfig
|
munge_remove /etc/default
|
||||||
|
munge_remove /etc/sysconfig
|
||||||
|
|
||||||
keepdir /var/lib/munge
|
keepdir /var/lib/munge
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue