net-mgmt/net-snmp: Fix scenario where a user does not have a config in the default location
PR: 280284 Reported by: gebhart@secnetix.de
This commit is contained in:
parent
5e2c397a9b
commit
9364edfdf0
@ -1,7 +1,7 @@
|
||||
PORTNAME= snmp
|
||||
PORTVERSION= 5.9.4
|
||||
PORTEPOCH= 1
|
||||
PORTREVISION= 5
|
||||
PORTREVISION= 6
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION} \
|
||||
ZI
|
||||
|
||||
@ -77,7 +77,10 @@ net_snmpd_precmd() {
|
||||
done
|
||||
|
||||
# -c does not override the default config file.
|
||||
# if it exists, sanity check
|
||||
if [ -f %%PREFIX%%/share/snmp/snmpd.conf ]; then
|
||||
check_conffile %%PREFIX%%/share/snmp/snmpd.conf
|
||||
fi
|
||||
for conffile in ${snmpd_conffile}; do
|
||||
check_conffile ${conffile}
|
||||
if [ -f "${conffile}" -a -s "${conffile}" ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user