net-mgmt/net-snmp: sync with upstream

Taken from: FreeBSD
This commit is contained in:
Franco Fichtner 2024-07-22 14:40:11 +02:00
parent 71c7aa7c42
commit 0c4becca90
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -77,7 +77,10 @@ net_snmpd_precmd() {
done
# -c does not override the default config file.
check_conffile %%PREFIX%%/share/snmp/snmpd.conf
# 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