package/frr: install systemd service files

The FRR package currently only installs systemv services files. The
upstream package also provides a systemd service file and a service
template file. Install those when systemd is selected as an init
manager.

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
This commit is contained in:
Alexis Lothoré
2026-04-22 12:35:54 +02:00
committed by Marcus Hoffmann
parent 6cd936b8e7
commit 5af981a672

View File

@@ -131,5 +131,12 @@ define FRR_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S50frr
endef
define FRR_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 $(@D)/tools/frr.service \
$(TARGET_DIR)/usr/lib/systemd/system/frr.service
$(INSTALL) -D -m 644 $(@D)/tools/frr@.service \
$(TARGET_DIR)/usr/lib/systemd/system/frr@.service
endef
$(eval $(autotools-package))
$(eval $(host-autotools-package))