summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2015-01-16 14:14:00 +0800
committerJoe MacDonald <joe_macdonald@mentor.com>2015-03-11 19:18:08 -0400
commit356c792b1bf70141bd75e11353d8f3b146aaee52 (patch)
tree8298ee0c69e529aae04e45f50686519e9105b71c /meta-networking
parent88a9836158c6406ee8dd21bb5d4d04025e193251 (diff)
downloadmeta-openembedded-356c792b1bf70141bd75e11353d8f3b146aaee52.tar.gz
net-snmp: move persistent dir to /var/lib/net-snmp
Move persistent dir to /var/lib/net-snmp and fix security contexts for them. Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking')
-rwxr-xr-xmeta-networking/recipes-protocols/net-snmp/files/init2
-rw-r--r--meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb1
2 files changed, 3 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/files/init b/meta-networking/recipes-protocols/net-snmp/files/init
index 434b2fa3f..6b02570c6 100755
--- a/meta-networking/recipes-protocols/net-snmp/files/init
+++ b/meta-networking/recipes-protocols/net-snmp/files/init
@@ -28,6 +28,8 @@ case "$1" in
28 echo -n " snmptrapd" 28 echo -n " snmptrapd"
29 fi 29 fi
30 echo "." 30 echo "."
31
32 test ! -x /sbin/restorecon || /sbin/restorecon -FR /var/lib/net-snmp
31 ;; 33 ;;
32 stop) 34 stop)
33 echo -n "Stopping network management services:" 35 echo -n "Stopping network management services:"
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb
index 16d733cb1..bf67216a4 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.1.bb
@@ -38,6 +38,7 @@ EXTRA_OECONF = "--disable-embedded-perl \
38 --enable-shared \ 38 --enable-shared \
39 --disable-manuals \ 39 --disable-manuals \
40 --with-defaults \ 40 --with-defaults \
41 --with-persistent-directory=${localstatedir}/lib/net-snmp \
41 ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}" 42 ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
42 43
43# net-snmp needs to have mib-modules=smux enabled to enable quagga to support snmp 44# net-snmp needs to have mib-modules=smux enabled to enable quagga to support snmp