[meta-networking,2/2] net-snmp: split net-snmp-config to package net-snmp-dev

Submitted by Hongxu Jia on June 4, 2019, 7:31 a.m. | Patch ID: 161949

Details

Message ID 1559633465-4558-2-git-send-email-hongxu.jia@windriver.com
State Accepted
Commit 7a07c5480cc2a031235a0c0b987d6d4a097b2389
Headers show

Commit Message

Hongxu Jia June 4, 2019, 7:31 a.m.
Move net-snmp-config in which contains build path from
package net-snmp to net-snmp-dev.

It refers ubuntu, here are we got from Ubuntu 18.04
$ dpkg -c /var/cache/apt/archives/libsnmp-dev_5.7.3+dfsg-1.8ubuntu3.1_amd64.deb
drwxr-xr-x root/root         0 2018-10-15 22:16 ./usr/bin/
-rwxr-xr-x root/root     43797 2018-10-15 22:16 ./usr/bin/mib2c
-rwxr-xr-x root/root      8780 2018-10-15 22:16 ./usr/bin/mib2c-update
-rwxr-xr-x root/root     29427 2018-10-15 22:16 ./usr/bin/net-snmp-config
-rwxr-xr-x root/root      3688 2018-10-15 22:16 ./usr/bin/net-snmp-create-v3-user

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

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 673142b..f0acaa8 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
@@ -214,7 +214,11 @@  FILES_${PN}-lib-trapd = "${libdir}/libnetsnmptrapd${SOLIBS}"
 FILES_${PN} = ""
 FILES_${PN}-client = "${bindir}/* ${datadir}/snmp/"
 FILES_${PN}-dbg += "${libdir}/.debug/ ${sbindir}/.debug/ ${bindir}/.debug/"
-FILES_${PN}-dev += "${bindir}/mib2c ${bindir}/mib2c-update"
+FILES_${PN}-dev += "${bindir}/mib2c \
+                    ${bindir}/mib2c-update \
+                    ${bindir}/net-snmp-config \
+                    ${bindir}/net-snmp-create-v3-user \
+"
 
 CONFFILES_${PN}-server-snmpd = "${sysconfdir}/snmp/snmpd.conf"
 CONFFILES_${PN}-server-snmptrapd = "${sysconfdir}/snmp/snmptrapd.conf"