From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiIOl-0001ss-0V for guix-patches@gnu.org; Wed, 25 Jul 2018 07:56:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiIOi-00039K-2q for guix-patches@gnu.org; Wed, 25 Jul 2018 07:56:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51284) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fiIOh-00038f-Ti for guix-patches@gnu.org; Wed, 25 Jul 2018 07:56:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fiIOf-0002HS-Vb for guix-patches@gnu.org; Wed, 25 Jul 2018 07:56:03 -0400 Subject: [bug#32268] [PATCH] gnu: Add net-snmp. Resent-Message-ID: Date: Wed, 25 Jul 2018 11:56:13 +0000 From: Nils Gillmann Message-ID: <20180725115613.4aukzb72uwz6gwl2@abyayala> References: <20180725114434.21463-1-go.wigust@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180725114434.21463-1-go.wigust@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Oleg Pykhalov Cc: 32268@debbugs.gnu.org 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'.