mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
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
2 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
PORTNAME= snmp
|
PORTNAME= snmp
|
||||||
PORTVERSION= 5.9.4
|
PORTVERSION= 5.9.4
|
||||||
PORTEPOCH= 1
|
PORTEPOCH= 1
|
||||||
PORTREVISION= 5
|
PORTREVISION= 6
|
||||||
CATEGORIES= net-mgmt
|
CATEGORIES= net-mgmt
|
||||||
MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION} \
|
MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION} \
|
||||||
ZI
|
ZI
|
||||||
|
|
|
@ -77,7 +77,10 @@ net_snmpd_precmd() {
|
||||||
done
|
done
|
||||||
|
|
||||||
# -c does not override the default config file.
|
# -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
|
check_conffile %%PREFIX%%/share/snmp/snmpd.conf
|
||||||
|
fi
|
||||||
for conffile in ${snmpd_conffile}; do
|
for conffile in ${snmpd_conffile}; do
|
||||||
check_conffile ${conffile}
|
check_conffile ${conffile}
|
||||||
if [ -f "${conffile}" -a -s "${conffile}" ]; then
|
if [ -f "${conffile}" -a -s "${conffile}" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue