summaryrefslogtreecommitdiffstats
path: root/package/netsnmp
Commit message (Collapse)AuthorAgeFilesLines
* netsnmp: add OK/FAIL output in init scriptuniverse II2016-07-011-14/+21
| | | | | | | | | | This commit reworks the output of the start(), stop() and reload() functions. The return values of start-stop-daemon are now checked and a OK or FAIL message is printed out. Signed-off-by: Andreas Ehmanns <universeII@gmx.de> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* netsnmp: add missing reload of snmptrapd in init scriptuniverse II2016-07-011-0/+5
| | | | | | | | In case of a reload command the snmpdtrapd wasn't restarted. Signed-off-by: Andreas Ehmanns <universeII@gmx.de> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* netsnmp: remove 'set -e' from init scriptuniverse II2016-07-011-2/+1
| | | | | | | | | | This patch removes 'set -e' from the netsnmp init script since it causes the init script to terminate if an error occurs. This prevents the script to create an "FAIL" printout in case of an error. Signed-off-by: Andreas Ehmanns <universeII@gmx.de> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* netsnmp: adjust init script by creating start(), stop(), reload()universe II2016-07-011-34/+37
| | | | | | | | | | Change the init script to get rid of double code. Start, stop and reload code has been put into separate functions and 'restart' will just call stop() and start() with a delay in between. Signed-off-by: Andreas Ehmanns <universeII@gmx.de> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* netsnmp: ensure lm-sensors is available if enabledPeter Korsgaard2016-04-181-0/+5
| | | | | | | | | | | The ucd-snmp/lmsensorsMib module uses lm-sensors, so ensure netsnmp is built after lm-sensors if enabled. As the list of mib modules to built is configured using a string option in Kconfig, we cannot easily select lm-sensors from the netsnmp package - But we can at least ensure it gets built before hand if enabled. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* netsnmp: add explicit support for pciutilsGustavo Zacarias2015-12-151-0/+5
| | | | | | | As pointed by Lonnie Abelbeck via email. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* netsnmp: enable tsm + DTLSUDP/TLSTCP with opensslGustavo Zacarias2015-12-121-1/+3
| | | | | | | | | | | | | | Otherwise the openssl support is basically unused. net-snmp provides a stripped-down openssl implementation that can be used to enable tsm/DTLSUDP/TLSTCP but given it's security track record it's best to rely on the external one, it also saves space. usm is the user validation module, it's default on, however when passing --with-security-modules we must keep it otherwise it won't be. Signed-off-by: Gustavo Zacarias <gustavo.zacarias@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: Replace 'echo -n' by 'printf'Maxime Hadjinlian2015-10-041-11/+11
| | | | | | | | | | | | 'echo -n' is not a POSIX construct (no flag support), we shoud use 'printf', especially in init script. This patch was generated by the following command line: git grep -l 'echo -n' -- `git ls-files | grep -v 'patch'` | xargs sed -i 's/echo -n/printf/' Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* netsnmp: fix static buildBaruch Siach2015-07-211-1/+2
| | | | | | | | | | | | Exclude the ucd-snmp/dlmod MIB module when building statically. Fixes: http://autobuild.buildroot.net/results/782/7829e74f83c3c4a1f45e049ec9f9d6b00e002c1c/ http://autobuild.buildroot.net/results/5df/5df28482dfa3d7c54d1e4ae3e1d373bd8e9a2265/ http://autobuild.buildroot.net/results/4b7/4b7f3c15a4f4c4f4457e78767f5526c044d6dc1d/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: remove non-IPv6 dependencies and tweaksGustavo Zacarias2015-04-221-10/+1
| | | | | | | | Now that IPv6 is mandatory remove package dependencies and conditionals for it. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: indentation cleanupJerzy Grzegorek2015-03-311-16/+16
| | | | | | | This commit doesn't touch infra packages. Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Merge branch 'next'Peter Korsgaard2015-03-022-0/+35
|\ | | | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * netsnmp: Add option for using minimal internal SSL codeStefan Sørensen2015-02-192-0/+9
| | | | | | | | | | | | | | | | | | | | | | Add option for enabling a minimal internal copy of OpenSSL usable for USM security. It will not enable the usage of SNMP over (D)TLS. [Thomas: use 'else ifeq' to avoid having another nested ifeq ... endif block.] Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| * netsnmp: Make server and client installation optionalStefan Sørensen2015-02-192-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | The netsnmp package consists of both a server and a number of client tools, this makes the installation of both parts optional. [Thomas: - Add explicit --enable-{agent,applications}, and use positive logic. - Remove "net-snmp" from the new Config.in option prompts, since they are already visible under the netsnmp package option.] Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* | netsnmp: Set ac_cv_NETSNMP_CAN_USE_SYSCTL to noStefan Sørensen2015-02-191-1/+1
|/ | | | | | | | | | | | | | | | | | | NETSNMP_CAN_USE_SYSCTL is for BSD systems, setting it to yes on Linux systems breaks compilation when the mibII mib is enabled. Prior to commit 30bb1bdca49a1dcb71d477e546a40840af865ce2 ("netsnmp: bump version") from November 2008, this variable was already set to no, and was changed to yes by the commit, with no explanation. And the previous code indeed had a comment saying: # We set CAN_USE_SYSCTL to no and use /proc since the sysctl code # in this thing is apparently intended for freebsd or some such # thing... [Thomas: improved commit log.] Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: indentation cleanupJerzy Grzegorek2014-12-241-13/+21
| | | | | Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Rename BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBSThomas Petazzoni2014-12-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Since a while, the semantic of BR2_PREFER_STATIC_LIB has been changed from "prefer static libraries when possible" to "use only static libraries". The former semantic didn't make much sense, since the user had absolutely no control/idea of which package would use static libraries, and which packages would not. Therefore, for quite some time, we have been starting to enforce that BR2_PREFER_STATIC_LIB should really build everything with static libraries. As a consequence, this patch renames BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBS, and adjust the Config.in option accordingly. This also helps preparing the addition of other options to select shared, shared+static or just static. Note that we have verified that this commit can be reproduced by simply doing a global rename of BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBS plus adding BR2_PREFER_STATIC_LIB to Config.in.legacy. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* netsnmp: bump to version 5.7.3Gustavo Zacarias2014-12-103-32/+5
| | | | | | | | | | Security patch now upstream so remove. Add hash file. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: rename FOO_CONF_OPT into FOO_CONF_OPTSThomas De Schampheleire2014-10-041-8/+8
| | | | | | | | | | | | To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_CONF_OPT. Sed command used: find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: rename FOO_INSTALL_STAGING_OPT into FOO_INSTALL_STAGING_OPTSThomas De Schampheleire2014-10-041-1/+1
| | | | | | | | | | | | To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_INSTALL_STAGING_OPT. Sed command used: find * -type f | xargs sed -i 's#_INSTALL_STAGING_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: rename FOO_INSTALL_TARGET_OPT into FOO_INSTALL_TARGET_OPTSThomas De Schampheleire2014-10-041-1/+1
| | | | | | | | | | | | To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_INSTALL_TARGET_OPT. Sed command used: find * -type f | xargs sed -i 's#_INSTALL_TARGET_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* netsnmp: cleanup configure flags handlingPeter Korsgaard2014-05-161-8/+4
| | | | | | | | | No functional change, but cleaner. Remove the double --disable-manuals and move the debug handling together with the other optional configure flags. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* netsnmp: Remove ldconfig callsBernd Kuhls2014-05-161-6/+13
| | | | | | | | | | | | ldconfig breaks links created by gpu-viv-bin-mx6q. fixes http://autobuild.buildroot.net/results/ab5/ab57dd3729d529366808cbfc802f49360b2ec2b9/ [Peter: use NETSNMP_INSTALL_*_OPT, only install initscript for sysv init] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* netsnmp: fix tab/space formatting in init.d scriptDanomi Manchego2014-03-281-15/+12
| | | | | | | | | | The S59snmpd script has a strange mix of tabs and spaces. Replace tabs with spaces, and also remove unnecessary line continuations from the start-stop-daemon lines, as none of them go beyond 80 columns. Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* netsnmp: security bump to version 5.7.2.1Gustavo Zacarias2014-03-112-1/+32
| | | | | | | Fixes CVE-2014-2284 but not CVE-2014-2285 so add a patch for that one. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* netsnmp: fix static linking with opensslPeter Korsgaard2014-02-151-0/+4
| | | | | | Fixes http://autobuild.buildroot.net/results/084/0845bde5d234bd00d23c7a1b7e18746882dcdde4/ Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: remove support for documentation on targetThomas De Schampheleire2014-02-081-4/+3
| | | | | | | | This patch removes deprecated symbol BR2_HAVE_DOCUMENTATION and all its usage. Additionally, it removes the now unused BR2_DEPRECATED_SINCE_2012_11. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* netsnmp: do not force --disable-staticuniverse II2013-12-251-1/+1
| | | | | | | | | | The following patch enables the generation of static libraries additionally to the shared ones for the netsnmp package. [Thomas: fixed commit log.] Signed-off-by: Andreas Ehmanns <universeii@gmx.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Config.in files: use if/endif instead of 'depends on' for main symbolThomas De Schampheleire2013-12-251-4/+4
| | | | | | | | | | | | | | | | | | | | | | | In the Config.in file of package foo, it often happens that there are other symbols besides BR2_PACKAGE_FOO. Typically, these symbols only make sense when foo itself is enabled. There are two ways to express this: with depends on BR2_PACKAGE_FOO in each extra symbol, or with if BR2_PACKAGE_FOO ... endif around the entire set of extra symbols. The if/endif approach avoids the repetition of 'depends on' statements on multiple symbols, so this is clearly preferred. But even when there is only one extra symbol, if/endif is a more logical choice: - it is future-proof for when extra symbols are added - it allows to have just one strategy instead of two (less confusion) This patch modifies the Config.in files accordingly. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: remove uninstall commandsThomas De Schampheleire2013-12-061-7/+0
| | | | | Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* net-snmp: needs mmuGustavo Zacarias2013-10-091-0/+1
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Normalize separator size to 80Alexandre Belloni2013-06-061-2/+2
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* netsnmp: handle net-snmp-config scriptThomas Petazzoni2013-05-111-3/+3
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* netsnmp: enable agentx support by defaultGustavo Zacarias2013-04-171-1/+1
| | | | | | | | Enable agentx support by default, it's required for newer versions of quagga. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* netsnmp: configurable MIB modulesprzemyslaw2013-03-242-2/+16
| | | | | | | | | | Make the MIB modules, which are included/excluded in the build, to be configurable instead of being hard coded. [Peter: drop menuconfig] Signed-off-by: przemyslaw <przemyslaw.wrzos@calyptech.com> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* netsnmp: bump to version 5.7.2Gustavo Zacarias2012-10-203-54/+1
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* remove rest of the BR2_SOURCEFORGE_MIRROR referencesStefan Fröberg2012-08-281-1/+1
| | | | | Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* netsnmp: add fix for CVE-2012-2141Gustavo Zacarias2012-08-221-0/+36
| | | | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Luca Ceresoli <luca@lucaceresoli.net> Tested-by: Luca Ceresoli <luca@lucaceresoli.net>
* all packages: rename XXXTARGETS to xxx-packageArnout Vandecappelle (Essensium/Mind)2012-07-171-1/+1
| | | | | | | | | | | | | Also remove the redundant $(call ...). This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS))/$(eval $(generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS))/$(eval $(autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS))/$(eval $(cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* netsnmp: define licenseLuca Ceresoli2012-07-171-0/+2
| | | | | Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* netsnmp: fix build with high BR2_JLEVEL settingsPeter Korsgaard2012-05-271-0/+1
| | | | | | | | The netsnmp build system is not robust against parallel builds. Fixes http://autobuild.buildroot.net/results/5bb827425ed07617a47a0c0d942a3c6c423fc02f Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* netsnmp: add option to enable debugging codeLuca Ceresoli2012-03-182-1/+14
| | | | | | Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* netsnmp: bump to 5.7.1 LTSLuca Ceresoli2011-12-072-1/+18
| | | | | | Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Revert "netsnmp: bump to 5.7.1 LTS"Peter Korsgaard2011-12-061-1/+1
| | | | | | Gustavoz reported that 5.7 series segfault on powerpc. This reverts commit 60859a1e1ac717aafc3543f92adeccba9ed33b29.
* netsnmp: bump to 5.7.1 LTSLuca Ceresoli2011-12-061-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: remove useless arguments from AUTOTARGETSThomas Petazzoni2011-09-291-1/+1
| | | | | | | | | | Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* netsnmp: allow to disable MIB files installation and MIB loading codeLuca Ceresoli2011-09-112-0/+13
| | | | | | Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* netsnmp: fix stop and restart actions in init scriptLuca Ceresoli2011-09-111-1/+0
| | | | | | | | | | | | | | | | | /etc/init.d/S59snmpd stop (and restart) currently fail if either snmpd or snmptrapd are not running. This is because start-stop-daemon -K returns nonzero if the process to be killed is not running, and this causes the whole script to fail because it runs under 'set -e'. This may not be noticed if only the last start-stop-daemon fails, but this is in general wrong. It would also cause a failure in other scripts that execute S59snmpd and check the return value. Adding the --oknodo (-o) option to start-stop-daemon fixes this. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* netsnmp: bump to version 5.6.1.1Gustavo Zacarias2011-09-111-1/+1
| | | | | | | Bump netsnmp to version 5.6.1.1 which contains minor fixes. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* net-snmp: fixup paths in net-snmp-configGustavo Zacarias2011-05-021-0/+10
| | | | | | | | | | Exposed by commit 7e3e8ec040b06d6e2fb69e55c004f1ebc02c76d0 net-snmp-config goes for -L/usr/lib thus things break since this wins over the sysroot if we have a host net-snmp library around when we build packages that link against net-snmp. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
OpenPOWER on IntegriCloud