net-snmp: avoid init scripts being removed

sm looks for the init script to manage snmpd, so
remove sysvinit from DISTRO_FEATURES_BACKFILL_CONSIDERED
to avoid init scripts being removed.

And the init script snmpd should be packaged in
PN-server-snmpd, so fix the FILE definition as well.

Partial-Bug: 1897685

Change-Id: I612e6eda0e1a4f942d11e90bec1307db1fd64f60
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
This commit is contained in:
Jackie Huang 2020-09-29 16:07:37 +08:00
parent df722d1ccb
commit 614c47a407

View File

@ -48,4 +48,6 @@ do_install_append () {
chmod 640 ${D}/${sysconfdir}/snmp/snmptrapd.conf
}
FILES_${PN}_append = " ${sysconfdir}/rc.d/init.d/snmpd"
DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit"
FILES_${PN}-server-snmpd_append = " ${sysconfdir}/rc.d/init.d/snmpd"