diff mbox series

[meta-networking] keepalived: Move the sample configuration files to a separate package

Message ID 20240102173256.46404-1-jorcrous@amazon.com
State Accepted
Headers show
Series [meta-networking] keepalived: Move the sample configuration files to a separate package | expand

Commit Message

Jordan Crouse Jan. 2, 2024, 5:32 p.m. UTC
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.

Signed-off-by: Jordan Crouse <jorcrous@amazon.com>
---
 .../recipes-daemons/keepalived/keepalived_2.2.8.bb            | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Khem Raj Jan. 8, 2024, 2:47 a.m. UTC | #1
On Tue, 02 Jan 2024 17:32:56 +0000, Jordan Crouse wrote:
> 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,
diff mbox series

Patch

diff --git a/meta-networking/recipes-daemons/keepalived/keepalived_2.2.8.bb b/meta-networking/recipes-daemons/keepalived/keepalived_2.2.8.bb
index dd193b12f..85f4a6aa5 100644
--- a/meta-networking/recipes-daemons/keepalived/keepalived_2.2.8.bb
+++ b/meta-networking/recipes-daemons/keepalived/keepalived_2.2.8.bb
@@ -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"