mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +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:
parent
85f9265034
commit
451f0ad9aa
7
Makefile
7
Makefile
@ -49,6 +49,11 @@ README.html: README.md
|
||||
install_libs: lib
|
||||
install -Dm644 lib/libcrucible.so $(DESTDIR)$(USRLIB_PREFIX)/libcrucible.so
|
||||
|
||||
install_tools: ## Install support tools + libs
|
||||
install_tools: install_libs src
|
||||
install -Dm755 bin/fiemap $(DESTDIR)$(USR_PREFIX)/bin/fiemap
|
||||
install -Dm755 bin/fiewalk $(DESTDIR)$(USR_PREFIX)/sbin/fiewalk
|
||||
|
||||
install_bees: ## Install bees + libs
|
||||
install_bees: install_libs src $(RUN_INSTALL_TESTS)
|
||||
install -Dm755 bin/bees $(DESTDIR)$(LIBEXEC_PREFIX)/bees
|
||||
@ -60,7 +65,7 @@ install_scripts: scripts
|
||||
install -Dm644 scripts/beesd@.service $(DESTDIR)$(SYSTEMD_LIB_PREFIX)/system/beesd@.service
|
||||
|
||||
install: ## Install distribution
|
||||
install: install_bees install_scripts
|
||||
install: install_bees install_scripts $(OPTIONAL_INSTALL_TARGETS)
|
||||
|
||||
help: ## Show help
|
||||
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/\t/'
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user