From: Nils Gillmann <ng0@n0.is>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: 32268@debbugs.gnu.org
Subject: [bug#32268] [PATCH] gnu: Add net-snmp.
Date: Wed, 25 Jul 2018 11:56:13 +0000 [thread overview]
Message-ID: <20180725115613.4aukzb72uwz6gwl2@abyayala> (raw)
In-Reply-To: <20180725114434.21463-1-go.wigust@gmail.com>
Oleg Pykhalov transcribed 3.7K bytes:
> * gnu/packages/networking.scm (net-snmp): New variable.
> ---
> gnu/packages/networking.scm | 76 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 76 insertions(+)
>
> diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
> index 90967b9b1..a77452d6a 100644
> --- a/gnu/packages/networking.scm
> +++ b/gnu/packages/networking.scm
> @@ -66,6 +66,7 @@
> #:use-module (gnu packages databases)
> #:use-module (gnu packages dejagnu)
> #:use-module (gnu packages documentation)
> + #:use-module (gnu packages file)
> #:use-module (gnu packages flex)
> #:use-module (gnu packages gettext)
> #:use-module (gnu packages glib)
> @@ -1965,3 +1966,78 @@ Features:
> @item Destination IP blacklist
> @end itemize")
> (license license:asl2.0))))
> +
> +(define-public net-snmp
> + (package
> + (name "net-snmp")
> + (version "5.7.3")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (string-append "mirror://sourceforge/net-snmp/net-snmp/" version
> + "/net-snmp-" version ".tar.gz"))
> + (sha256
> + (base32
> + "1w5l9w0sgi1zkzq8ww6kc6fzq7ljq59z2d9ks6bdq1vp7ihqkvqj"))
> + (patches
> + (map (lambda (file hash)
> + (origin
> + (method url-fetch)
> + (uri (string-append
> + "https://git.alpinelinux.org\
> +/cgit/aports/plain/main/net-snmp/"
> + file "?id=f25d3fb08341b60b6ccef424399f060dfcf3f1a5"))
Can you please make the 3 lines above look more aligned? like:
> + (uri (string-append "https://git.alpinelinux.org"
"/cgit/aports/plain/main/net-snmp/"
file
"?id=f25d3fb08341b60b6ccef424399f060dfcf3f1a5"))
> + (sha256
> + (base32
> + hash))))
> + '("CVE-2015-5621.patch"
> + "fix-Makefile-PL.patch"
> + "fix-includes.patch"
> + "netsnmp-swinst-crash.patch"
> + "remove-U64-typedef.patch")
> + '("0mg2mlfb45fnv7m1k9wckrqjfizipyvrl1q4dn1r0zc774mm7zjc"
> + "1pd85sy04n76q1ri3l33f0zpnnw76nd5mcny2j39ilzp76bjfik5"
> + "0zpkbb6k366qpq4dax5wknwprhwnhighcp402mlm7950d39zfa3m"
> + "0gh164wy6zfiwiszh58fsvr25k0ns14r3099664qykgpmickkqid"
> + "0jcpcpgx4z9k1w0x6km0132n67qc29mz6cialwfjm02l76q2yk5n")))))
> + (build-system gnu-build-system)
> + (native-inputs
> + `(("autoconf" ,autoconf)
> + ("automake" ,automake)
> + ("libtool" ,libtool)))
> + (inputs
> + `(("file" ,file)
> + ("perl" ,perl)
> + ("openssl" ,openssl)))
> + (arguments
> + `(#:tests? #f
> + #:configure-flags
> + (list "--with-default-snmp-version=3"
> + "--with-sys-location=Unknown"
> + "--with-sys-contact=root@unknown"
Would root@localhost make more sense? Why @unknown?
> + "--with-logfile=/var/log/net-snmpd.log"
> + "--with-persistent-directory=/var/lib/net-snmp"
> + (string-append "--with-openssl="
> + (assoc-ref %build-inputs "openssl"))
> + "--with-mnttab=/proc/mounts")
> + #:make-flags
> + (let ((out (assoc-ref %outputs "out")))
> + (list (string-append "INSTALLSITEARCH=" out
> + "/lib/perl5/site_perl/" ,(package-version perl)
> + "/x86_64-linux-thread-multi")
> + (string-append"INSTALLSITEMAN3DIR=" out "/share/man/man3")))
> +
> + #:phases
> + (modify-phases %standard-phases
> + (add-before 'configure 'autoreconf
> + (lambda _
> + (invoke "autoreconf" "-vfi"))))))
What I recently discovered, or it might be false memory, is that we
have a phase for this which runs autoreconf -vfi automatically. Or am
I wrong about this?
> + (home-page "http://net-snmp.sourceforge.net/")
> + (synopsis "Clients and server for the SNMP network monitoring protocol")
> + (description "The Simple Network Management Protocol (SNMP) provides a
> +framework for the exchange of management information between agents (servers)
> +and clients.
> +
> +The Net-SNMP applications are a collection of command line clients for issuing
> +SNMP requests to agents.")
> + (license license:bsd-3)))
> --
> 2.18.0
No further comments. As I didn't compile it I can't conclude with 'LGTM'.
next prev parent reply other threads:[~2018-07-25 11:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-25 11:44 [bug#32268] [PATCH] gnu: Add net-snmp Oleg Pykhalov
2018-07-25 11:50 ` Oleg Pykhalov
2018-07-25 11:56 ` Nils Gillmann [this message]
2018-07-29 13:54 ` Ludovic Courtès
2018-07-29 22:03 ` Marius Bakke
2018-07-30 17:08 ` Oleg Pykhalov
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=20180725115613.4aukzb72uwz6gwl2@abyayala \
--to=ng0@n0.is \
--cc=32268@debbugs.gnu.org \
--cc=go.wigust@gmail.com \
/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).