blob: 4e4d0f31077727a92f81c4f8fd4afec58be97689 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
SUMMARY = "Sila SNMP agent for OpenBMC"
DESCRIPTION = "The project provides a snmp subagent and configuration manager."
HOMEPAGE = "http://git.sila.ru/openbmc/obmc-sila-snmp.git/"
PR = "r1"
PV = "1.0+git${SRCPV}"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
SRC_URI = "git://git@git.sila.ru/srv/pub/scm/git/openbmc/obmc-sila-snmp.git;branch=master;protocol=ssh"
SRCREV = "a7db2279b461f7aa6659e262962fc50ca98eb901"
inherit autotools pkgconfig python3native
inherit obmc-phosphor-dbus-service
S = "${WORKDIR}/git"
DEPENDS += " autoconf-archive-native"
DEPENDS += " net-snmp"
DEPENDS += " systemd"
DEPENDS += " sdbusplus"
DEPENDS += " sdeventplus"
DEPENDS += " ${PYTHON_PN}-sdbus++-native"
DEPENDS += " phosphor-logging"
DEPENDS += " phosphor-dbus-interfaces"
# Package configuration
SNMP_PACKAGES = " \
${PN}-agent \
${PN}-cfg-manager \
"
ALLOW_EMPTY_${PN} = "1"
PACKAGE_BEFORE_PN += "${SNMP_PACKAGES}"
PACKAGECONFIG ?= "agent cfg-manager"
SYSTEMD_PACKAGES = "${PN}-agent"
DBUS_PACKAGES = "${PN}-cfg-manager"
RDEPENDS:${PN}-dev = "${PN}-agent ${PN}-cfg-manager"
# --------------------------------------
# ${PN}-agent specific configuration:
# --------------------------------------
PACKAGECONFIG[agent] = "--enable-agent,--disable-agent,,"
RDEPENDS_${PN}-agent += " sdbusplus net-snmp-libs net-snmp-server-snmpd"
FILES:${PN}-agent = " \
${bindir}/sila-snmp-agent \
${datadir}/snmp/mibs/SILA-MIB.txt \
"
SYSTEMD_SERVICE:${PN}-agent += "sila-snmp-agent.service"
# --------------------------------------
# ${PN}-cfg-manager specific configuration
PACKAGECONFIG[cfg-manager] = "--enable-cfg-manager,--disable-cfg-manager,,"
RDEPENDS:${PN}-cfg-manager += " sdbusplus"
FILES:${PN}-cfg-manager = "${bindir}/sila-snmpcfg"
DBUS_SERVICE:${PN}-cfg-manager += "sila-snmp-cfg-manager.service"
# Makes the MIB-file available over https by bmcweb
FILES:${PN}-agent += " ${datadir}/www/mibs/SILA-MIB.txt "
do_install:append () {
mkdir -p ${D}${datadir}/www/mibs
ln -s ${datadir}/snmp/mibs/SILA-MIB.txt ${D}${datadir}/www/mibs/SILA-MIB.txt
}
|