diff options
| -rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb index 779e5cd2df..a32d09d775 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | |||
| @@ -168,17 +168,21 @@ net_snmp_sysroot_preprocess () { | |||
| 168 | fi | 168 | fi |
| 169 | } | 169 | } |
| 170 | 170 | ||
| 171 | PACKAGES += "${PN}-libs ${PN}-mibs ${PN}-server ${PN}-client ${PN}-server-snmpd ${PN}-server-snmptrapd" | 171 | PACKAGES += "${PN}-libs ${PN}-mibs ${PN}-server ${PN}-client \ |
| 172 | ${PN}-server-snmpd ${PN}-server-snmptrapd \ | ||
| 173 | ${PN}-lib-netsnmp ${PN}-lib-agent ${PN}-lib-helpers \ | ||
| 174 | ${PN}-lib-mibs ${PN}-lib-trapd" | ||
| 172 | 175 | ||
| 173 | # perl module | 176 | # perl module |
| 174 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'perl', '${PN}-perl-modules', '', d)}" | 177 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'perl', '${PN}-perl-modules', '', d)}" |
| 175 | 178 | ||
| 176 | ALLOW_EMPTY_${PN} = "1" | 179 | ALLOW_EMPTY_${PN} = "1" |
| 177 | ALLOW_EMPTY_${PN}-server = "1" | 180 | ALLOW_EMPTY_${PN}-server = "1" |
| 181 | ALLOW_EMPTY_${PN}-libs = "1" | ||
| 178 | 182 | ||
| 179 | FILES_${PN}-perl-modules = "${libdir}/perl/*" | 183 | FILES_${PN}-perl-modules = "${libdir}/perl/*" |
| 180 | 184 | ||
| 181 | FILES_${PN}-libs = "${libdir}/lib*${SOLIBS}" | 185 | FILES_${PN}-libs = "" |
| 182 | FILES_${PN}-mibs = "${datadir}/snmp/mibs" | 186 | FILES_${PN}-mibs = "${datadir}/snmp/mibs" |
| 183 | FILES_${PN}-server-snmpd = "${sbindir}/snmpd \ | 187 | FILES_${PN}-server-snmpd = "${sbindir}/snmpd \ |
| 184 | ${sysconfdir}/snmp/snmpd.conf \ | 188 | ${sysconfdir}/snmp/snmpd.conf \ |
| @@ -191,6 +195,12 @@ FILES_${PN}-server-snmptrapd = "${sbindir}/snmptrapd \ | |||
| 191 | ${systemd_unitdir}/system/snmptrapd.service \ | 195 | ${systemd_unitdir}/system/snmptrapd.service \ |
| 192 | " | 196 | " |
| 193 | 197 | ||
| 198 | FILES_${PN}-lib-netsnmp = "${libdir}/libnetsnmp${SOLIBS}" | ||
| 199 | FILES_${PN}-lib-agent = "${libdir}/libnetsnmpagent${SOLIBS}" | ||
| 200 | FILES_${PN}-lib-helpers = "${libdir}/libnetsnmphelpers${SOLIBS}" | ||
| 201 | FILES_${PN}-lib-mibs = "${libdir}/libnetsnmpmibs${SOLIBS}" | ||
| 202 | FILES_${PN}-lib-trapd = "${libdir}/libnetsnmptrapd${SOLIBS}" | ||
| 203 | |||
| 194 | FILES_${PN} = "" | 204 | FILES_${PN} = "" |
| 195 | FILES_${PN}-client = "${bindir}/* ${datadir}/snmp/" | 205 | FILES_${PN}-client = "${bindir}/* ${datadir}/snmp/" |
| 196 | FILES_${PN}-dbg += "${libdir}/.debug/ ${sbindir}/.debug/ ${bindir}/.debug/" | 206 | FILES_${PN}-dbg += "${libdir}/.debug/ ${sbindir}/.debug/ ${bindir}/.debug/" |
| @@ -214,10 +224,15 @@ SYSTEMD_SERVICE_${PN}-server-snmptrapd = "snmptrapd.service" | |||
| 214 | RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'perl', 'net-snmp-perl-modules', '', d)}" | 224 | RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'perl', 'net-snmp-perl-modules', '', d)}" |
| 215 | RDEPENDS_${PN} += "net-snmp-client" | 225 | RDEPENDS_${PN} += "net-snmp-client" |
| 216 | RDEPENDS_${PN}-server-snmpd += "net-snmp-mibs" | 226 | RDEPENDS_${PN}-server-snmpd += "net-snmp-mibs" |
| 217 | RDEPENDS_${PN}-server-snmptrapd += "net-snmp-server-snmpd" | 227 | RDEPENDS_${PN}-server-snmptrapd += "net-snmp-server-snmpd ${PN}-lib-trapd" |
| 218 | RDEPENDS_${PN}-server += "net-snmp-server-snmpd net-snmp-server-snmptrapd" | 228 | RDEPENDS_${PN}-server += "net-snmp-server-snmpd net-snmp-server-snmptrapd" |
| 219 | RDEPENDS_${PN}-client += "net-snmp-mibs net-snmp-libs" | 229 | RDEPENDS_${PN}-client += "net-snmp-mibs net-snmp-libs" |
| 220 | RDEPENDS_${PN}-libs += "libpci" | 230 | RDEPENDS_${PN}-libs += "libpci \ |
| 231 | ${PN}-lib-netsnmp \ | ||
| 232 | ${PN}-lib-agent \ | ||
| 233 | ${PN}-lib-helpers \ | ||
| 234 | ${PN}-lib-mibs \ | ||
| 235 | " | ||
| 221 | RDEPENDS_${PN}-ptest += "perl \ | 236 | RDEPENDS_${PN}-ptest += "perl \ |
| 222 | perl-module-test \ | 237 | perl-module-test \ |
| 223 | perl-module-file-basename \ | 238 | perl-module-file-basename \ |
