-
Notifications
You must be signed in to change notification settings - Fork 3.8k
net-snmp: refactor Makefile for optional variant with openssl and logging #25444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
063324f to
91c1e21
Compare
8bda243 to
9be48e9
Compare
|
@stintel : I updated the Makefile in a way that it is possible to compile snmp with or without openssl. |
d921a24 to
da99ac5
Compare
|
@stintel : Did you find time to look into the changes? |
Sorry, a bit busy with life. Might be a while. Without reviewing the code the following question comes to mind: can the user still do |
|
I understand that and I didn't have in mind to pressure you. |
|
Hello @stintel , |
stintel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please add example sections in net/net-snmp/files/snmpd.conf for both SNMPv3 and logging.
|
Build test on qoriq shows a bunch of conflicts. I ran |
|
Thank you for your review! EDIT: Also added v3 and logging options to snmpd.conf. |
6561ab5 to
95be69b
Compare
|
@stintel : Are these changes what you had in mind? |
|
The config examples should be in the commit that adds that specific config option. Also, I noticed you added meta packages net-snmp-ssl and net-snmp-nossl, these should go in a separate commit also. And finally, I'm now getting these errors during make oldconfig: |
d9c06bb to
b327507
Compare
Following commits will introduce a new variant ssl that provides ssl encryption possibility needed by SNMP V3. So this commit tags the basic variant nossl and encapsulates needed packages in the same logic. Signed-off-by: Christian Korber <[email protected]>
This commit introduces the new ssl variant of net-snmp. It also integrates a differentiation between the now two variants and compiles them conditionally. Signed-off-by: Christian Korber <[email protected]>
In this commit, the init script is adapted to enable SNMP V3 and a default config is provided. Signed-off-by: Christian Korber <[email protected]>
|
@stintel : I resolved the error log reason. Again, thank you for your review! |
Maintainer: @stintel
Compile tested: x86_64, Openwrt 24.10
Run tested: x86_64, Openwrt 24.10
Description:
Openssl is needed to implement encryption and authentification for SNMPv3.
As discussed in PR #25178 , I added a variant for net-snmp that compiles libnetsnmp
with libopenssl (for SNMPv3). The default compilation is with the former variant.
The features for SNMPv3 are added to snmpd.init file and the possibility
to log messages to syslog or a log file..