137 Commits

Author SHA1 Message Date
sthen
a98e0e6666 remove rcs IDs in ports that I maintain 2022-03-07 21:36:41 +00:00
sthen
b3d92205cd fix typo in #include filename 2021-07-30 20:07:40 +00:00
sthen
2612319603 net-snmp -Wl,-no-undefined issue: switch to diff committed upstream 2020-09-07 10:18:14 +00:00
sthen
64100be9ec net-snmp: expand the comment explaining why the -Wl,-no-undefined autoconf
check is neutered. (when -no-undefined is used, build fails with missing
libc symbols when trying to link net-snmp's shared library).
2020-09-04 20:06:11 +00:00
sthen
2cf8671f90 update to net-snmp 5.9 2020-09-04 19:46:15 +00:00
sthen
6cc9779250 switch my maintainer email addresses to my own domain 2020-07-11 22:54:35 +00:00
sthen
4012b0b648 sync net/net-snmp with upstream autoconf patches (10823f019, d63e35a3a, #72) 2020-02-22 22:45:58 +00:00
sthen
8e2105b026 update to Net-SNMP 5.8.1.pre2, bring back --enable-blumenthal-aes with an
patch to autoconf files to add the libm linkage to libnetsnmp.
2020-02-21 15:14:57 +00:00
sthen
905bee84a9 disable --enable-blumenthal-aes again, it uses ceil(3) and a combination of
bogus autoconf tests and missing pieces result in libnetsnmp.so not being linked
to libm, causing breakage that is most noticable in collectd/cups-libs ports
when linking with ld.bfd. bump major due to removed functions and add comments
to Makefile with more info.
2020-02-13 21:48:25 +00:00
sthen
89c7c18191 Update to net-snmp 5.8.1pre1.
Enable installing snmpps/snmptop, they have been around for a while but were
just segfaulting in tests before - turns out this was actually only when
pointed at OpenBSD snmpd which doesn't handle hrSWRunPerfMem/hrSWRunPerfCPU
and was OK pointed at net-snmp snmpd - so patch to fix the segfault.
2020-01-03 22:34:35 +00:00
sthen
672aea714e fix typos in DESCR, one from florian@ plus one I spotted on the next line ;) 2019-12-16 12:25:22 +00:00
sthen
e84a64345a add a debug package for net-snmp -main 2019-11-24 16:28:05 +00:00
sthen
7016bd0c30 net-snmp tweaks:
- enable pre-RFC AES192/256 support ("--enable-blumenthal-aes"),
diff from martijn@ (adds symbols so I added a library minor bump for
this).

- disable hidden dep on lpstat from cups; if present this resulted in
adding a function to libnetsnmpmibs so a major bump is needed for this.

- recognize openbsd 7.x
2019-10-29 14:49:19 +00:00
sthen
6ff3e55398 bump REVISION in a bunch of ports known or likely to use struct kinfo_proc,
there may be some missing as my unpacked ports source is a little out of date
but this should catch the main things people might run into

the struct was reordered a second time in sysctl.h r1.192 to improve
compatibility but amd64 snapshot packages made it out before that happened
so the bumps are still needed
2019-06-25 20:25:20 +00:00
sthen
9c6e9626b9 s/PERMIT_PACKAGE_CDROM/PERMIT_PACKAGE/ and some light whitespace tidying
in ports which I maintain
2019-06-03 16:06:50 +00:00
sthen
f9fd904aca add patch, 'Avoid off-by-one error when logging "" to a file'
from net-snmp upstream via Fabian Raetz
2019-05-20 08:45:11 +00:00
sthen
b7a5d0eda9 Since libelf was added to base, net-snmp started picking it up (it thought
it was useful for getting nlist). Poison CONFIGURE_ENV to disable this.
2019-02-15 20:15:17 +00:00
sthen
56bcd9d0b7 update to net-snmp 5.8 final release 2018-07-17 13:53:25 +00:00
sthen
f5b754b7bb update to net-snmp-5.8.rc4 2018-06-29 18:40:26 +00:00
sthen
1eff4ce515 update to net-snmp 5.8rc3 to get some wider testing (hoping the release isn't
too far off, and I'm fed up with this mega-diff sitting in my tree gathering
C's :)

add a flavour "readonly" which uses --enable-read-only, this disables all code
handling SETs.
2018-06-02 20:53:37 +00:00
sthen
0e6836b0e3 bump (CPUSTATES/etc), out of the main set because I have to juggle patches for this one 2018-06-01 15:35:50 +00:00
sthen
041aac843f Add backported patch from upstream to fix CVE-2015-5621, dup'd
in CVE-2018-1000116
2018-04-26 14:18:22 +00:00
rpe
9a8b5ccd06 Change the shebang line from /bin/sh to /bin/ksh in all ports rc.d
daemon scripts and bump subpackages that contain the *.rc scripts.

discussed with and OK aja@
OK tb
2018-01-11 19:27:01 +00:00
sthen
31ab6ccf63 Fix previous; avoid possible strdup segfault if netsnmp_ds_get_string
returned NULL. From Andrea Biscuola at Zabbix.
2017-10-18 13:13:43 +00:00
sthen
374dee5d10 Fix a crash in libnetsnmp client, occurring in some circumstances where
a local IP address is set. Cause is a use-after-free, OpenBSD's malloc
helpfully often picks these up early (with relatively low impact on
performance), often turning what would be a hidden bug into a likely
crash.

Reported and analysis from Andrea Biscuola of Zabbix,
https://support.zabbix.com/browse/ZBX-12726
https://sourceforge.net/p/net-snmp/bugs/2803/

Diff from me. I was going to wait for confirmation from Andrea that it
fixes the issue, but having read more of the code I'm confident that this
change or something like it is needed, so committing now to make it pre 6.2.
ok naddy
2017-09-29 22:49:41 +00:00
sthen
9959a05a25 add patches to net-snmp, from upstream via afresh1, that will be needed for perl 5.24+ 2016-10-12 10:50:33 +00:00
sthen
26816dc330 Use the -r flag in net-snmp's rc.d script, as figured out by
Theodore Wynnychenko. This tells it not to exit when it can't open
/dev/kmem etc. Fixes startup now that this access is disabled by
default in OpenBSD.

Some MIBs won't work, but in general these should be rewritten
to use sysctl interfaces.
2016-10-11 20:47:43 +00:00
sthen
3df3bb2138 bump ports that might pick up IP_SENDSRCADDR 2016-08-17 20:58:19 +00:00
sthen
bc11f5c3af missed bump, spotted by naddy 2016-07-09 08:25:14 +00:00
sthen
e7cb613eaf sync WANTLIB 2016-07-08 16:48:21 +00:00
sthen
fa88dde259 untangle net-snmp to stop using openbsd{4,5}.h etc. 2016-05-12 22:00:14 +00:00
naddy
071c34fd6f remove SHARED_ONLY from ports that use only the gnu module 2016-03-16 21:19:37 +00:00
naddy
ce859edcb4 garbage collect CONFIGURE_SHARED 2016-03-11 20:28:21 +00:00
sthen
d148dd7700 Set pexp="${daemon}.*" for net-snmp; avoids a long delay at boot if the
user has set a command-line arguments containing '+' (not totally uncommon).
Otherwise rc_check() now waits for pexp to match, which fails due to
the + being handled as part of a regular expression.
2016-01-07 12:35:53 +00:00
jca
f739190e22 Unbreak: stop using if_var.h/struct ifnet to retrieve ipv6 data.
"looks fine to me" jasper@, ok sthen@
2015-12-08 16:50:40 +00:00
sthen
7cee0b72d8 Run net-snmp as _netsnmp instead of root, doing this currently requires
disabling the ipv6 mib - this is done in the rc script so it can be
overridden with netsnmpd_flags if required (but just run snmpd from base,
really ....)

Reported by Pierre Kim.

Drop unnecessary patch while there, the problem it was meant to fix was
already fixed in 5.7.3.
2015-11-05 23:43:46 +00:00
sthen
fd5416f946 install net-snmp's sample snmpd.conf with mode 600, it may contain secrets.
reported by Pierre Kim.
2015-11-05 21:44:04 +00:00
sthen
691c83f9b2 Bump some ports which reference if_msghdr in their source, so that package
updates are triggered. This is following the struct if_data ABI change a few
days ago; if_msghdr has an embedded if_data.  Some may be unnecessary, but
some are definitely needed and bumps are cheaper than debugging.
Problem reported with wpa_supplicant by Mikolaj Kucharski.
2015-10-08 21:19:21 +00:00
sthen
1c94df2da7 handle ifmedia64
interface_openbsd.c seems unused but patch there as well anyway in case
anything else uses it later..
2015-09-11 16:33:05 +00:00
sthen
40854d3325 SECURITY fix, use calloc instead of malloc to zero the netsnmp_variable_list
struct, to avoid issues when processing malicious PDUs.

Reported by Qinghao Tang on oss-sec.
http://www.openwall.com/lists/oss-security/2015/04/13/1
2015-04-13 08:41:36 +00:00
sthen
a25d8226b4 update to Net-SNMP 5.7.3
- roll -perl subpackage into -main, this greatly simplifies PLIST handling
for package updates. bumps to dependent ports to follow after this commit.
2014-12-09 15:20:06 +00:00
sthen
26b647a798 @comment zero-byte perl .bs files in all packages which don't have p5-* PKGNAMEs
and bump
2014-06-14 10:34:44 +00:00
sthen
29c50acf14 disable tcp wrappers 2014-03-23 22:04:23 +00:00
sthen
b02b53695e fix pod errors 2014-03-20 12:46:15 +00:00
sthen
89fb74cf84 Update to Net-SNMP 5.7.2.1 and merge PLISTs (perl is shared arch only,
so no need to split to PFRAG.shared-perl.

5.7.2.1 fixes a security issue on Linux (in ICMP-MIB), but is basically
a noop update for us.
2014-03-12 23:52:14 +00:00
krw
11e2317fb5 Apply tedu@'s Christmas Miracle cure for TAILQ_PREV vs kvm_read()
while traversing inpt_queue. Fix botch in previous commit by
initializing next and prev once each, rather than prev twice and next
not at all. Eliminate 'skip:' and use 'continue' instead, since code
after 'skip:' was pointless. Nuke now unused variable 'head'.
2013-12-27 23:08:02 +00:00
krw
aca9fb9511 Adapt to change of inpt_queue to TAILQ from CIRCLEQ.
ok sthen@
2013-12-20 02:20:00 +00:00
naddy
792c32ed74 remove some gcc2 workarounds 2013-08-07 16:49:36 +00:00
espie
4b11dac8e5 net-snmp now builds on vax! but the perl packages do not build at all,
not surprisingly
2013-07-03 04:15:42 +00:00
espie
3456ffe6f5 fix the one 'declaration after statement' that prevents vax from building this. 2013-07-01 16:29:29 +00:00