This is Net-SNMP (previously known as "ucd-snmp").
Various tools relating to the Simple Network Management Protocol including:
An extensible agent
An SNMP library
tools to request or set information from SNMP agents
tools to generate and handle SNMP traps
a version of the Unix 'netstat' command using SNMP
a graphical Perl/Tk/SNMP based mib browser
===> The following configuration options are available for net-snmp-5.9.5.2,1:
AES=off: Build with Blumenthal AES support
AX_DISABLE_TRAP=off: Disable agentx subagent code in snmptrapd
AX_SOCKONLY=off: Disable UDP/TCP transports for agentx
DOCS=on: Build and/or install documentation
DUMMY=on: Enable dummy values as placeholders
MFD_REWRITES=off: Use new MFD rewrites of mib modules
MYSQL=off: MySQL database support
NEWSYSLOG=on: Automatically rotate snmpd.log via newsyslog
NOLIBPKG=off: Build without libpkg
PERL=on: Perl scripting language support
PERL_EMBEDDED=on: Build embedded perl
PYTHON=off: Python bindings or support
SCTP=off: Build with SCTP MIB support
SMUX=on: Build with SNMP multiplexing (SMUX) support
TKMIB=off: Install graphical MIB browser
TLS=off: Secure network connection support via TLS
UNPRIVILEGED=off: Allow unprivileged users to execute net-snmp
===> Use 'make config' to modify these settings
Reason:
The snmpd and snmptrapd daemons now drop privileges by default when started
using the rc scripts provided in the package. Make sure that snmpd
configuration in /usr/local/share/snmp is readable by the "snmpd" user. If
you have defined extension scripts in snmpd.conf, make sure that they can be
executed by an unprivileged user. To revert to the old behavior of always
running as root, set snmpd_sugid="NO" or snmptrapd_sugid="NO" in /etc/rc.conf.
See the snmpd rc script for a hint on how to debug any permission problems
that might arise as a result of this change.
Reason:
The net-snmp port's newsyslog(8) configuration has been updated such
that the snmpd log file will be owned by the snmpd user following log
rotation. This is done to make it easier to run snmpd as the snmpd
user rather than as root, using the snmpd_sugid rc.conf option.
For now snmpd still runs as root by default. This is expected to change
in the future.
all: drop support for FreeBSD 13, mips and risc64sf
Reviewed by: many (*)
Differential Revision: https://reviews.freebsd.org/D55624
Differential Revision: https://reviews.freebsd.org/D55642 (merged in from bofh)
many (*)
acm arrowd brooks cmt dch decke dinoex eduardo fluffy fuz gahr garga
jbeich joerg jrm kai kenrap martymac matthew mfechner michaelo mizhka
nobutaka pkubaj se tagattie thj
Anton Saietskii
GenericRikka
Gert Doering
Jan Bramkamp
Oleh Hushchenkov
Oleksandr Kryvulia
Ralf van der Enden
Yamagi
desktop kde python tcltk office
net-mgmt/net-snmp: Add option for more AES stuff
While here, pet portlint and move PORTEPOCH after PORTREVISION
My thanks to Mark Felder for finding this fix.
Approved by: maintainer via private communication
python.mk: rename PYTHON_EXT_SUFFIX to PYTHON_TAG, document, etc
EXT_SUFFIX, according to PEP 3149, refers to the full tag and
extension for compiled extension module objects, eg .cpython-311.so,
.cpython-313t.so, etc. We do not use the correct semantic meaning,
and this usage becomes ambiguous and confusing when tags do not
match between bytecode and compiled extension module objects.
Rename our PYTHON_EXT_SUFFIX to PYTHON_TAG to align with PEP 3147's
specification of a magic tag, which consists of implementation name
and shorthand version only. This is meant for bytecode and other
files containing this tag in their filename that do not depend on
a specific Python ABI for the same version. Chase all existing
consumers.
(Only the first 15 lines of the commit message are shown above )
net-mgmt/net-snmp: Add an upgrade message for running snmpd as non-root
Explain that snmpd now drops privileges by default, and describe how one
can configure snmpd to run without any root privileges at all.
Approved by: zi
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
net-mgmt/net-snmp: Make snmpd and snmptrapd drop privileges by default
Now that we have a better idea of what problems can arise with this
change, let's try again, this time providing better documentation and
some troubleshooting steps.
Approved by: zi
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
net-mgmt/net-snmp: Provide an option for snmptrapd to drop privs
As with snmpd, we can run snmptrapd with reduced privileges, which is
certainly desirable since snmptrapd's main function is to receive SNMP
traps and log them somewhere.
Approved by: zi
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
net-mgmt/net-snmp: Update ownership of snmpd.log
Otherwise snmpd isn't able to re-open its log file after rotation, when
configured to run as the snmpd user.
Approved by: zi
Sponsored by: Stormshield
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D45317
net-mgmt/net-snmp: Print a warning if config files aren't readable
Motivated by a bug report from dvl@. In his case, snmpd was able to
read the configuration file initially, but failed to reload it upon
receiving SIGHUP during log rotation.
Approved by: zi
Sponsored by: Stormshield
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D45343
net-mgmt/net-snmp: Avoid changing to the snmpd user for now
Switching the user might break existing configurations, for reasons that
are not fully clear yet. Avoid surprises by letting users opt-in to
that change, for now.
Also provide an rc.conf variable to make it easy to configure snmpd to
drop privileges if they so choose.
Reported by: dvl
Approved by: zi
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D45199
net-mgmt/net-snmp: Let snmpd run as a non-root user
- Compile without /dev/kmem access. This requires a small patch which
opens libkvm in a dummy mode which uses sysctls to implement most of
its interfaces rather than /dev/kmem access. This way we can drop the
dependency on /dev/kmem without rewriting existing code.
- Add a new snmpd user. Configure snmpd to drop privileges once it's
finished initialization.
- Remove the JAIL option. Now that snmpd avoids using /dev/kmem,
there's no need to have a special mode for running snmpd in jails.
The patch has been proposed upstream here:
https://sourceforge.net/p/net-snmp/mailman/net-snmp-coders/thread/ZjEwNV5BiTOQ-Adi%40nuc/#msg58766857
Approved by: zi
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D45031
net-mgmt/net-snmp: Fix the IPV6 MIB implementation
The implementations of var_tcp6() and var_udp6() on FreeBSD don't work
and fail to compile. var_tcp6() also makes uses of kmem access, which
I'm trying to disable in snmpd. Provide a patch to fix these problems.
This has been committed to the 5.9 branch upstream.
Readd mibII/ipv6 since it now compiles and works in my manual testing.
Also, simply remove the IPV6 option. It has no effect, as --enable-ipv6
is the default.
Approved by: zi
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D45030
net-mgmt/net-snmp: Fix freebsd15.h
It was copied from freebsd14.h without updating it.
Also remove some bogus copying in the port makefile. 5.9.4 provides
freebsdN.h for N up to 14, and we have a patch which adds freebsd15.h.
So, get rid of the copying too.
Approved by: zi
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D45029
framework: reintroduce the feature enabling code
For each feature (see in Mk/Features) users can now set these variables
in their make.conf. Using LTO as an example.
To enable globally:
WITH_LTO= yes
To disable globally (for example ssp is enabled by default):
WITHOUT_LTO= yes
To enable for a specific list of ports:
WITH_LTO_PORTS= lang/perl5.36
To disable for a specific list of ports:
WITHOUT_LTO_PORTS= lang/perl5.36
Differential Revision: https://reviews.freebsd.org/D44750
net-mgmt/net-snmp: Fix ports depending on this port under 15-CURRENT
Also add freebsd15.h to ${LOCALBASE}/include/net-snmp/system, missing
in 710a64c4471d. ${LOCALBASE}/include/net-snmp/system/freebsd15.h is
used by ports which depend on net-mgmt/net-snmp. Without this file
they also fail to build under 15-CURRENT.
Approved by: portmgr (blanket)
Fixes: 710a64c4471d
devel/py-setuptools: convert individual consumers to ${PY_SETUPTOOLS}
Currently a no-op, but in the future outputs the correct setuptools
port depending on whether USES_PYTHON=distutils is specified.
With hat: python
PR: 270510, 270358
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
net-mgmt/net-snmp: fix net-snmp-config on jail hosts
re https://github.com/net-snmp/net-snmp/issues/280
This patch allows 'net-snmp-config --create-snmpv3-user' to succeed
if run on a jail host and snmpd is also running in one of the jails.
Thhis patch limits the check to the host, ingnoring jails.
PR: 269791
net-mgmt/net-snmp: Fix build under 14-CURRENT > 1400066
IPFRAGTTL was removed in 81a34d374ed6e5a7b14f24583bc8e3abfdc66306
(1400067). Define the value in the port.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
net-mgmt/net-snmp: Update to 5.9.1
re https://net-snmp.sourceforge.io/about/ChangeLog.html
libnetsnmp:
- Fixed the mib-parsing-bug introduced shortly before 5.7
agent:
- fixed rounding errors for disk percentage calculations
openbsd:
- better support for recent openbsd releases
features:
- bug fixes with minimalist support after additional user feedback
Many other miscellaneous minor bug fixes
Approved by: maintainer (via private communication)
net-mgmt/net-snmp: fix for first byte of IF-MIB::ifPhysAddress is always 0
- netsnmp_arch_interface_container_load() writes terminating NUL
directly to the sdl_data *past* the length specified in sdl_nlen,
overwriting first byte of physadrr.
PR: 231996
Submitted by: Yuri Pankov <yuripv@yuripv.net>
Reviewed by: Bart Van Assche <bvanassche@acm.org> (upstream maintainer)
Approved by: zi (maintainer)
Obtained from: https://sourceforge.net/p/net-snmp/code/merge-requests/20/
- Real unbreak with openssl111 from ports
- Use ${OPENSSLBASE} instead of hardcode path
- Add more conditions to check for extra patch
- TLS option is fine now
PR: 228898
Submitted by: myself (this patch)
Approved by: maintainer timeout (>2 months after submission)
MFH: 2019Q3
Remove compatibility code for FreeBSD < 11.2 from all ports.
Simplify some ports where DragonFlyBSD no longer needs to be special-cased.
Submitted by: rene
Reviewed by: bapt, jbeich
Differential Revision: https://reviews.freebsd.org/D17724
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above )
Fixing net-snmpd after src revision r317061 (struct vmmeter changes),
I discovered that net-snmpd tries to read { CTL_VM, VM_TOTAL } mib into
'struct vmmeter' variable, instead of 'struct vmtotal'. Of course,
sysctl(3) fails, but net-snmpd doesn't check for errors. Basicly this
is broken for all supported FreeBSD versions, and I believe for all
unsupported as well. OIDs that report interruprs, context switches,
paging and swap in/out were returning garbage from the application
stack.
To patch that problem, provide dummy struct __vmmeter, which works
both on pre-r317061 and after, and add block of code that reads all
necessary stats one by one. To keep with the style of the file, do
not check for errors from sysctl(3).
Always pass MNT_NOWAIT to getfsstat() as documented in the manpage.
One of the four calls in net-snmp currently passes 0 which triggers an
EINVAL change after recent changes in HEAD and 11-stable to add stricter
argument checking for the flags passed to getsstat().
Bump PORTREVISION.
PR: 218011
Reported by: Slawa Olhovchenkov <slw@zxy.spb.ru>
Reviewed by: brooks
Approved by: maintainer (zi)
- Force use of base OpenSSL for now (libpkg links against this) to resolve build
failures under 10.3 i386
PR: 210299
Submitted by: Michael Osipov
Reported by: software@bertram-scharpf.de
Rename python setuptools ports to better match other python ports
Reviewed by: mat, sunpoet
With hat: portmgr
Differential Revision: https://reviews.freebsd.org/D9983
Rename all files containing a : in their filename.
While there, run make makepatch on affected ports, and rename patches
accordingly.
Sponsored by: Absolight
Fix usage of WITH_OPENSSL_BASE, WITH_OPENSSL_PORT and OPENSSL_PORT.
WITH_OPENSSL_* can't be set after bsd.port.pre.mk.
Fold all other usage into using SSL_DEFAULT == foo
PR: 210149
Submitted by: mat
Exp-run by: antoine
Sponsored by: The FreeBSD Foundation, Absolight
Differential Revision: https://reviews.freebsd.org/D6577
Fix net-snmp ipv6 option handling when other options are also used.
r381568 added CONFIGURE_ARGS+=--with-out-mib-modules="mibII/ipv6", but the
handling of other options can result in two different --with-out-mib-modules
arguments being passed to configure, and only the second one has
effect. That leads to build failures because it tries to build the old
mibII/ipv6 which is no longer supported on freebsd.
This change adds mibII/ipv6 to the list of excluded modules that gets turned
into the --with-out-mib-modules argument, so it plays nice with other option
handling.
PR: 199401
Approved by: mat(mentor)
Differential Revision: https://reviews.freebsd.org/D5329