2014-03-26 12:04:35 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, file, openssl, perl, unzip }:
|
2012-06-10 01:28:07 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-03-26 12:04:35 +01:00
|
|
|
name = "net-snmp-5.7.2.1";
|
2012-06-10 01:28:07 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-03-26 12:04:35 +01:00
|
|
|
url = "mirror://sourceforge/net-snmp/${name}.zip";
|
|
|
|
sha256 = "1nj3b2x4fhsh82nra99128vqp2lfw5wx91ka8nqwzxvik59hb4dc";
|
2012-06-10 01:28:07 +02:00
|
|
|
};
|
|
|
|
|
2012-06-10 19:06:35 +02:00
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
perlversion=$(perl -e 'use Config; print $Config{version};')
|
|
|
|
perlarchname=$(perl -e 'use Config; print $Config{archname};')
|
|
|
|
installFlags="INSTALLSITEARCH=$out/lib/perl5/site_perl/$perlversion/$perlarchname INSTALLSITEMAN3DIR=$out/share/man/man3"
|
2013-02-23 19:15:14 +01:00
|
|
|
|
|
|
|
# http://comments.gmane.org/gmane.network.net-snmp.user/32434
|
|
|
|
substituteInPlace "man/Makefile.in" --replace 'grep -vE' '@EGREP@ -v'
|
2012-06-10 19:06:35 +02:00
|
|
|
'';
|
|
|
|
|
2012-06-10 01:28:07 +02:00
|
|
|
configureFlags =
|
|
|
|
[ "--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"
|
|
|
|
];
|
|
|
|
|
2014-03-26 12:04:35 +01:00
|
|
|
buildInputs = [ autoreconfHook file openssl perl unzip ];
|
2012-06-10 01:28:07 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Clients and server for the SNMP network monitoring protocol";
|
|
|
|
homepage = http://net-snmp.sourceforge.net/;
|
|
|
|
license = "bsd";
|
|
|
|
};
|
|
|
|
}
|