From: Jackie Huang Date: Wed, 29 Apr 2020 01:49:45 +0000 (+0800) Subject: net-snmp: inherit useradd to add user and group X-Git-Tag: bronze-rc0~54 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=b6b0a85392f8013903d89e1d258f3df596297f89;p=pti%2Frtp.git net-snmp: inherit useradd to add user and group inherit useradd bbclass to add user and group 'snmpd' which is required by stx 3.0 Issue-ID: INF-56 Signed-off-by: Jackie Huang Change-Id: I0c390a178951544c781fde0e89d11f26434550ec --- diff --git a/meta-stx/recipes-networking/net-snmp/net-snmp_%.bbappend b/meta-stx/recipes-networking/net-snmp/net-snmp_%.bbappend new file mode 100644 index 0000000..6ef67f5 --- /dev/null +++ b/meta-stx/recipes-networking/net-snmp/net-snmp_%.bbappend @@ -0,0 +1,20 @@ +# +## Copyright (C) 2019 Wind River Systems, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +inherit useradd + +USERADD_PACKAGES = "net-snmp-server-snmpd" +USERADD_PARAM_net-snmp-server-snmpd = "-r -g snmpd -u 169 -d /usr/share/snmp -s /sbin/nologin -c 'net-snmp' snmpd" +GROUPADD_PARAM_net-snmp-server-snmpd = "-r -g 169 snmpd"