net-mgmt/net-snmp: Fix missing datarootdir, Bump PORTREVISION

This commit is contained in:
Ryan Steinmetz 2022-12-03 08:32:11 -05:00
parent 54722a2979
commit 043827049d
No known key found for this signature in database
GPG Key ID: D2C3D2B2FEF36DD7
2 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= snmp
PORTVERSION= 5.9.1
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION} \

View File

@ -0,0 +1,10 @@
--- net-snmp-create-v3-user.in.orig 2022-12-03 13:29:45 UTC
+++ net-snmp-create-v3-user.in
@@ -135,6 +135,7 @@ if test ! -d "$outfile"; then
fi
echo "$line" >> "$outfile"
# Avoid that configure complains that this script ignores @datarootdir@
+datarootdir="@datarootdir@"
echo "@datarootdir@" >/dev/null
outfile="@datadir@/snmp/snmpd.conf"
line="$token $user"