mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
For release note since 0.52.1, see: https://github.com/OpenRC/openrc/blob/0.56/NEWS.md Other changes: - Update 0007-allow-setting-rc_libexecdir-path.patch to apply cleanly - Remove the split-usr logic, as it was removed in version 0.54. This logic is now handled by passing the following to meson during the configure stage: --bindir /bin --libdir /lib64 --libexecdir /lib --sbindir /sbin - libcap is now a dependency - The audit package must be explicity set as disabled if not available. If not, configuration errors occure if audit is not found. ./support/testing/run-tests tests.init.test_openrc 11:45:44 TestInitSystemOpenrcRwFull Starting 11:45:57 TestInitSystemOpenrcRwFull Cleaning up 11:45:57 TestInitSystemOpenrcRoFull Starting 11:46:10 TestInitSystemOpenrcRoFull Cleaning up 11:46:10 TestInitSystemOpenrcMergedUsrFull Starting 11:46:10 TestInitSystemOpenrcMergedUsrFull Building 11:51:59 TestInitSystemOpenrcMergedUsrFull Building done 11:52:12 TestInitSystemOpenrcMergedUsrFull Cleaning up ---------------------------------------------------------------------- Ran 3 tests in 388.180s OK Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com> [Julien: add link to release notes] Signed-off-by: Julien Olivain <ju.o@free.fr>
104 lines
3.0 KiB
Makefile
104 lines
3.0 KiB
Makefile
################################################################################
|
|
#
|
|
# openrc
|
|
#
|
|
################################################################################
|
|
|
|
OPENRC_VERSION = 0.56
|
|
OPENRC_SITE = $(call github,OpenRC,openrc,$(OPENRC_VERSION))
|
|
OPENRC_LICENSE = BSD-2-Clause
|
|
OPENRC_LICENSE_FILES = LICENSE
|
|
OPENRC_CPE_ID_VALID = YES
|
|
|
|
OPENRC_DEPENDENCIES = libcap ncurses
|
|
|
|
OPENRC_CONF_OPTS = \
|
|
-Dos=Linux \
|
|
-Dlibrcdir=/usr/libexec/rc \
|
|
-Dpkgconfig=false \
|
|
-Dsysvinit=true \
|
|
-Dbranding="\"Buildroot $(BR2_VERSION_FULL)\""
|
|
|
|
ifeq ($(BR2_PACKAGE_AUDIT),y)
|
|
OPENRC_CONF_OPTS += -Daudit=enabled
|
|
OPENRC_DEPENDENCIES += audit
|
|
else
|
|
OPENRC_CONF_OPTS += -Daudit=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
|
|
OPENRC_CONF_OPTS += -Dbash-completions=true
|
|
else
|
|
OPENRC_CONF_OPTS += -Dbash-completions=false
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
OPENRC_CONF_OPTS += -Dselinux=enabled
|
|
OPENRC_DEPENDENCIES += libselinux
|
|
else
|
|
OPENRC_CONF_OPTS += -Dselinux=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
|
|
OPENRC_DEPENDENCIES += libxcrypt
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
|
OPENRC_CONF_OPTS += -Dpam=true
|
|
OPENRC_DEPENDENCIES += linux-pam
|
|
else
|
|
OPENRC_CONF_OPTS += -Dpam=false
|
|
endif
|
|
|
|
define OPENRC_INSTALL_SYSV_RCS_SCRIPT
|
|
$(INSTALL) -D -m 0755 $(OPENRC_PKGDIR)/sysv-rcs \
|
|
$(TARGET_DIR)/etc/init.d/sysv-rcs
|
|
endef
|
|
OPENRC_POST_INSTALL_TARGET_HOOKS += OPENRC_INSTALL_SYSV_RCS_SCRIPT
|
|
|
|
ifeq ($(BR2_PACKAGE_KBD),)
|
|
# keymaps and save-keymaps require kbd_mode and dumpkeys, respectively, so
|
|
# remove them if the kbd package is not selected (e.g. devices with serial
|
|
# console, only).
|
|
define OPENRC_NO_KBD
|
|
$(RM) $(TARGET_DIR)/etc/runlevels/boot/{keymaps,save-keymaps}
|
|
$(RM) $(TARGET_DIR)/etc/init.d/{keymaps,save-keymaps}
|
|
$(RM) $(TARGET_DIR)/etc/conf.d/keymaps
|
|
endef
|
|
OPENRC_POST_INSTALL_TARGET_HOOKS += OPENRC_NO_KBD
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_NETIFRC),y)
|
|
# netifrc replaces network, staticroute and loopback services which are
|
|
# installed by openrc
|
|
define OPENRC_NO_NET
|
|
$(RM) $(TARGET_DIR)/etc/runlevels/boot/{network,staticroute,loopback}
|
|
$(RM) $(TARGET_DIR)/etc/init.d/{network,staticroute,loopback}
|
|
$(RM) $(TARGET_DIR)/etc/conf.d/{network,staticroute,loopback}
|
|
endef
|
|
OPENRC_POST_INSTALL_TARGET_HOOKS += OPENRC_NO_NET
|
|
endif
|
|
|
|
define OPENRC_REMOVE_UNNEEDED
|
|
$(RM) -r $(TARGET_DIR)/usr/share/openrc
|
|
endef
|
|
OPENRC_TARGET_FINALIZE_HOOKS += OPENRC_REMOVE_UNNEEDED
|
|
|
|
ifeq ($(BR2_TARGET_GENERIC_GETTY),y)
|
|
OPENRC_GETTY_SVCNAME = agetty.$(SYSTEM_GETTY_PORT)
|
|
OPENRC_GETTY_CONF_D = $(TARGET_DIR)/etc/conf.d/$(OPENRC_GETTY_SVCNAME)
|
|
define OPENRC_SET_GETTY
|
|
{ \
|
|
echo "baud=\"$(SYSTEM_GETTY_BAUDRATE)\""; \
|
|
echo "term_type=\"$(SYSTEM_GETTY_TERM)\"" ; \
|
|
echo "agetty_options=\"-L $(SYSTEM_GETTY_OPTIONS)\""; \
|
|
} > $(OPENRC_GETTY_CONF_D)
|
|
ln -sf agetty $(TARGET_DIR)/etc/init.d/$(OPENRC_GETTY_SVCNAME)
|
|
ln -sf /etc/init.d/$(OPENRC_GETTY_SVCNAME) \
|
|
$(TARGET_DIR)/etc/runlevels/default/$(OPENRC_GETTY_SVCNAME)
|
|
endef
|
|
OPENRC_TARGET_FINALIZE_HOOKS += OPENRC_SET_GETTY
|
|
endif # BR2_TARGET_GENERIC_GETTY
|
|
|
|
$(eval $(meson-package))
|