Skip to contentSkip to conversation

keepalived: Move the sample configuration files to a separate package

PATCH Applied Jordan Crouse 2 participants 2 messages Jan 2, 2024 – Jan 8, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 keepalived: Move the sample configuration files to a separate package

By default keepalived installs a bunch of sample configurations to /etc/keepalived/samples. These are good demonstrations but will almost certainly not apply to any real world situation.

Move the sample files to a separate package.

---
 .../recipes-daemons/keepalived/keepalived_2.2.8.bb            | 4 ++++
 1 file changed, 4 insertions(+)
meta-networking/recipes-daemons/keepalived/keepalived_2.2.8.bb +4 -0
index dd193b12f..85f4a6aa5 100644
@@ -41,7 +41,11 @@ do_install:append() {
     fi
 }
 
+PACKAGE_BEFORE_PN = "${PN}-samples"
+
 FILES:${PN} += "${datadir}/snmp/mibs/KEEPALIVED-MIB.txt"
 
+FILES:${PN}-samples = "${sysconfdir}/keepalived/samples ${sysconfdir}/keepalived/keepalived.conf.sample"
+
 SYSTEMD_SERVICE:${PN} = "keepalived.service"
 SYSTEMD_AUTO_ENABLE ?= "disable"
Signature · 1 line
2.40.1
Applied
#1 lore raw
Quoted 8 lines · Jordan Crouse

By default keepalived installs a bunch of sample configurations to /etc/keepalived/samples. These are good demonstrations but will almost certainly not apply to any real world situation.

Move the sample files to a separate package.

[...]

Applied, thanks!

[1/1] keepalived: Move the sample configuration files to a separate package

      commit: 231c8bd2642ccbbcff799660a6bc8d455730494c

Best regards,

Signature · 1 line
Khem Raj <[email protected]>