1
0
mirror of https://github.com/Zygo/bees.git synced 2025-06-16 17:46:16 +02:00

Makefile: Allow installation of fiemap/fiewalk support tools

There's now a new make target called "install_tools" which would not run
by default on installation.

One can add "OPTIONAL_INSTALL_TARGETS=install_tools" into localconf to
install these by default.

fiewalk would be installed to sbin, as only root can run it, the other
goes to bin.

Gentoo can use this to optionally install these tools as a package
feature.

Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
Kai Krakow
2018-01-19 22:11:34 +01:00
parent 85f9265034
commit 451f0ad9aa
2 changed files with 12 additions and 2 deletions

View File

@ -22,7 +22,7 @@ PATCHES="
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE=""
IUSE="tools"
COMMON_DEPEND="
>=sys-apps/util-linux-2.30.2
@ -41,4 +41,9 @@ HTML_DOCS="README.html"
src_prepare() {
default
echo LIBDIR=$(get_libdir) >>${S}/localconf
localconf=${S}/localconf
if use tools; then
einfo "Building with support tools fiemap and fiewalk."
echo OPTIONAL_INSTALL_TARGETS=install_tools >>${localconf} || die
fi
}