2012-06-10 19:06:35 +02:00
|
|
|
{ stdenv, fetchurl, file, openssl, perl }:
|
2012-06-10 01:28:07 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "net-snmp-5.7.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/net-snmp/${name}.tar.gz";
|
|
|
|
sha256 = "07qqdgs3flraqccwry4a4x23jcg6vfi0rqj7clsibdv51ijwjwbw";
|
|
|
|
};
|
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2012-06-10 19:06:35 +02:00
|
|
|
buildInputs = [ file openssl perl ];
|
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";
|
|
|
|
};
|
|
|
|
}
|