mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-04 14:43:01 +02:00
Rudimentary support for setting login shell for new users. Currently
hard-coded from what's selected in the Buildroot config, if Bash is
available or not.
Follow-up to f5866ee
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_TARGET_FINALIZE_HOOKS += CONFD_INSTALL_EXTRA
|
|
|
|
$(eval $(autotools-package))
|