From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiIF4-0006OU-AG for guix-patches@gnu.org; Wed, 25 Jul 2018 07:46:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiIF1-0005ku-A3 for guix-patches@gnu.org; Wed, 25 Jul 2018 07:46:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51246) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fiIF0-0005k6-Sc for guix-patches@gnu.org; Wed, 25 Jul 2018 07:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fiIF0-00021H-Hp for guix-patches@gnu.org; Wed, 25 Jul 2018 07:46:02 -0400 Subject: [bug#32268] [PATCH] gnu: Add net-snmp. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiIE0-0005a8-Kl for guix-patches@gnu.org; Wed, 25 Jul 2018 07:45:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiIDx-00041t-M8 for guix-patches@gnu.org; Wed, 25 Jul 2018 07:45:00 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:44483) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fiIDx-00040U-DS for guix-patches@gnu.org; Wed, 25 Jul 2018 07:44:57 -0400 Received: by mail-lf1-x12c.google.com with SMTP id g6-v6so5204960lfb.11 for ; Wed, 25 Jul 2018 04:44:57 -0700 (PDT) From: Oleg Pykhalov Date: Wed, 25 Jul 2018 14:44:34 +0300 Message-Id: <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: 32268@debbugs.gnu.org * 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")) + (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" + "--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")))))) + (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