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.

Signed-off-by: Jordan Crouse <jorcrous@amazon.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Jordan Crouse 2024-01-02 17:32:56 +00:00 committed by Khem Raj
parent efa0a0af25
commit 231c8bd264
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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"