From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: 32333@debbugs.gnu.org
Cc: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Subject: [bug#32333] [PATCH 1/4] gnu: Add net-snmp.
Date: Tue, 31 Jul 2018 14:40:44 +0200 [thread overview]
Message-ID: <20180731124047.17586-1-ricardo.wurmus@mdc-berlin.de> (raw)
In-Reply-To: <87effjshvr.fsf@elephly.net>
* gnu/packages/networking.scm (net-snmp): New variable.
---
gnu/packages/networking.scm | 71 ++++++++++++++++++++++++++++++++++++-
1 file changed, 70 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 90967b9b1..57055a92e 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
-;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2015, 2016, 2017 Stefan Reichör <stefan@xsteve.at>
;;; Copyright © 2016 Raimon Grau <raimonster@gmail.com>
@@ -1965,3 +1965,72 @@ Features:
@item Destination IP blacklist
@end itemize")
(license license:asl2.0))))
+
+(define-public net-snmp
+ (package
+ (name "net-snmp")
+ (version "5.8")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/"
+ version "/net-snmp-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1pvajzj9gmj56dmwix0ywmkmy2pglh6nny646hkm7ghfhh03bz5j"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:parallel-build? #f ; Not supported.
+ #:test-target "test"
+ #:configure-flags
+ (list (string-append "LDFLAGS=-Wl,-rpath="
+ (assoc-ref %outputs "out")
+ "/lib"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-tests
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "testing/fulltests/support/simple_TESTCONF.sh"
+ (("NETSTAT=\"\"")
+ (string-append "NETSTAT=\"" (which "netstat") "\"")))
+ (substitute* "testing/fulltests/default/T065agentextend_simple"
+ (("/usr/bin/env") (which "env")))
+ (substitute* "testing/fulltests/default/T065agentextend_sh_simple"
+ (("/bin/sh") (which "sh")))
+ (substitute* "testing/fulltests/default/T115agentxperl_simple"
+ (("/usr/bin/env") (which "env")))
+ ;; FIXME: These tests fail for unknown reasons.
+ (for-each delete-file
+ '("testing/fulltests/default/T026snmpv3getSHAAES_simple"
+ "testing/fulltests/default/T027snmpv3Defaults_simple"
+ "testing/fulltests/default/T030snmpv3usercreation_simple"
+ "testing/fulltests/default/T049snmpv3informpriv_simple"
+ "testing/fulltests/default/T050snmpv3trap_simple"
+ "testing/fulltests/default/T070com2sec_simple"
+ "testing/fulltests/default/T071com2sec6_simple"))
+ #t))
+ (add-after 'unpack 'patch-Makefile.PL
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "Makefile.in"
+ (("Makefile.PL -NET")
+ (string-append "Makefile.PL PREFIX="
+ (assoc-ref outputs "out")
+ " INSTALLDIRS=site" " NO_PERLLOCAL=1"
+ " -NET")))
+ #t)))))
+ (inputs
+ `(("perl" ,perl)))
+ (native-inputs
+ `(("net-tools" ,net-tools)
+ ("coreutils" ,coreutils)
+ ("grep" ,grep)))
+ (home-page "http://www.net-snmp.org/")
+ (synopsis "Simple Network Management Protocol library and tools")
+ (description "The @dfn{Simple Network Management Protocol} (SNMP) is a
+widely used protocol for monitoring the health and welfare of network
+equipment (e.g. routers), computer equipment and even devices like UPSs.
+Net-SNMP is a suite of applications used to implement SNMP v1, SNMP v2c and
+SNMP v3 using both IPv4 and IPv6.")
+ (license (list license:bsd-3
+ (license:non-copyleft
+ "http://www.net-snmp.org/about/license.html"
+ "CMU/UCD copyright notice")))))
--
2.18.0
next prev parent reply other threads:[~2018-07-31 12:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-31 12:35 [bug#32333] Add LDAP server (389-ds-base) Ricardo Wurmus
2018-07-31 12:40 ` Ricardo Wurmus [this message]
2018-07-31 12:40 ` [bug#32333] [PATCH 2/4] gnu: Add python-argparse-manpage Ricardo Wurmus
2018-07-31 12:40 ` [bug#32333] [PATCH 3/4] gnu: Add python-ldap Ricardo Wurmus
2018-07-31 12:40 ` [bug#32333] [PATCH 4/4] gnu: Add 389-ds-base Ricardo Wurmus
2018-08-16 15:09 ` bug#32333: " Ricardo Wurmus
2018-07-31 20:19 ` [bug#32333] [PATCH 1/4] gnu: Add net-snmp Oleg Pykhalov
2018-08-01 9:31 ` Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180731124047.17586-1-ricardo.wurmus@mdc-berlin.de \
--to=ricardo.wurmus@mdc-berlin.de \
--cc=32333@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).