mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-07 07:53:18 +02:00
When calling `make foo-rebuild` one expects all the registered hooks in the foo package to have been called by Buildroot. The Buildroot manual has this to say about the target-finalize hook: > These hooks are run after all packages are built, but > before the filesystem images are generated. They are > seldom used, and your package probably do not need them. The correct hook to use for target packages is POST_INSTALL_TARGET_HOOK. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
32 lines
1.0 KiB
Makefile
32 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# confd
|
|
#
|
|
################################################################################
|
|
|
|
CONFD_VERSION = 1.0
|
|
CONFD_LICENSE = BSD-3-Clause
|
|
CONFD_SITE_METHOD = local
|
|
CONFD_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/confd
|
|
CONFD_DEPENDENCIES = augeas jansson libite sysrepo
|
|
CONFD_AUTORECONF = YES
|
|
|
|
ifeq ($(BR2_SYSTEM_BIN_SH_BASH),y)
|
|
CONFD_CONF_OPTS += --with-login-shell=/bin/bash
|
|
else
|
|
CONFD_CONF_OPTS += --with-login-shell=/bin/sh
|
|
endif
|
|
|
|
define CONFD_INSTALL_EXTRA
|
|
cp $(CONFD_PKGDIR)/sysrepo.conf $(FINIT_D)/available/
|
|
ln -sf ../available/sysrepo.conf $(FINIT_D)/enabled/sysrepo.conf
|
|
cp $(CONFD_PKGDIR)/tmpfiles.conf $(TARGET_DIR)/etc/tmpfiles.d/confd.conf
|
|
mkdir -p $(TARGET_DIR)/usr/share/factory/cfg
|
|
cp $(CONFD_PKGDIR)/factory-config.cfg $(TARGET_DIR)/usr/share/factory/cfg/startup-config.cfg
|
|
mkdir -p $(TARGET_DIR)/lib/infix
|
|
cp $(CONFD_PKGDIR)/clean-etc $(TARGET_DIR)/lib/infix/
|
|
endef
|
|
CONFD_POST_INSTALL_TARGET_HOOKS += CONFD_INSTALL_EXTRA
|
|
|
|
$(eval $(autotools-package))
|