22648abc69
* remove the bbappend since net-snmp-config
is removed from config-files repo:
``````````````````````````````````````````````
commit 35160afbdada2efe0ff567dd94ca1419903c87ad
Author: Nicolas Alvarez <nicolas.alvarez@windriver.com>
Date: Tue Dec 8 17:26:18 2020 -0300
Disable SNMP Host-Based from config-files repo.
Due to SNMP is going to be containerized, we disable
it from starlingx/config-files repo.
Story: 2008132
Task: 41381
Depends-On: https://review.opendev.org/765381
Signed-off-by: Nicolas Alvarez <nicolas.alvarez@windriver.com>
``````````````````````````````````````````````
* remove net-snmp from the RDEPENDS in packagegroup-stx
and fm-mgr since it's not required to be installed.
* move the useradd/groupadd into EXTRA_USERS_PARAMS_CONFIG
in poky-stx.conf.
Story: 2008952
Task: 42576
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I200e1cee7a70e643e6db449667929b44b721c299
38 lines
1.1 KiB
BlitzBasic
38 lines
1.1 KiB
BlitzBasic
inherit systemd
|
|
require fault-common.inc
|
|
|
|
SRC_URI += "file://0001-fm-mgr-Fix-install-target.patch"
|
|
|
|
SUBPATH0 = "fm-mgr/sources"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
|
|
|
DEPENDS += "fm-common"
|
|
|
|
EXTRA_OEMAKE = 'LDFLAGS="${LDFLAGS} -L${S}/fm-common/sources" \
|
|
CCFLAGS="${CXXFLAGS}" \
|
|
INCLUDES="-I. -I${S}/fm-common/sources" \
|
|
BINDIR="${bindir}" \
|
|
LIBDIR="${libdir}" \
|
|
UNITDIR="${systemd_system_unitdir}" \
|
|
DESTDIR="${D}" \
|
|
'
|
|
do_install () {
|
|
oe_runmake install
|
|
# fix the path for init scripts
|
|
sed -i -e 's|rc.d/||' ${D}/${systemd_system_unitdir}/*.service
|
|
|
|
# fix the path for binaries
|
|
sed -i -e 's|/usr/local/bin/|${bindir}/|' ${D}${sysconfdir}/init.d/fminit
|
|
}
|
|
|
|
SYSTEMD_PACKAGES = "${PN}"
|
|
SYSTEMD_SERVICE_${PN} = "fminit.service"
|
|
SYSTEMD_AUTO_ENABLE_${PN} = "disable"
|
|
DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit"
|
|
|
|
inherit useradd
|
|
|
|
USERADD_PACKAGES = "fm-mgr"
|
|
USERADD_PARAM_fm-mgr = "-r -g fm -u 195 -d /var/lib/fm -s /sbin/nologin -c 'fm-mgr' fm"
|
|
GROUPADD_PARAM_fm-mgr = "-r -g 195 fm"
|