sys-fs/lvm2: Minor ebuild improvements.

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
Lars Wendler
2018-12-12 11:03:50 +01:00
parent 063024b3f9
commit 78da4d4e35

View File

@@ -197,12 +197,12 @@ src_compile() {
}
src_install() {
local inst
INSTALL_TARGETS="install install_tmpfiles_configuration"
local inst INSTALL_TARGETS
INSTALL_TARGETS=( install install_tmpfiles_configuration )
# install systemd related files only when requested, bug #522430
use systemd && INSTALL_TARGETS="${INSTALL_TARGETS} install_systemd_units install_systemd_generators"
use device-mapper-only && INSTALL_TARGETS="install_device-mapper"
for inst in ${INSTALL_TARGETS}; do
use systemd && INSTALL_TARGETS+=( install_systemd_units install_systemd_generators )
use device-mapper-only && INSTALL_TARGETS=( install_device-mapper )
for inst in ${INSTALL_TARGETS[@]}; do
emake DESTDIR="${D}" ${inst}
done