* net-snmp: enable Perl support.
svn path=/nixpkgs/trunk/; revision=34424
This commit is contained in:
parent
1697485678
commit
c9f95fa0c2
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, file, openssl }:
|
{ stdenv, fetchurl, file, openssl, perl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "net-snmp-5.7.1";
|
name = "net-snmp-5.7.1";
|
||||||
@ -8,6 +8,13 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "07qqdgs3flraqccwry4a4x23jcg6vfi0rqj7clsibdv51ijwjwbw";
|
sha256 = "07qqdgs3flraqccwry4a4x23jcg6vfi0rqj7clsibdv51ijwjwbw";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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"
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--with-default-snmp-version=3"
|
[ "--with-default-snmp-version=3"
|
||||||
"--with-sys-location=Unknown"
|
"--with-sys-location=Unknown"
|
||||||
@ -16,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
"--with-persistent-directory=/var/lib/net-snmp"
|
"--with-persistent-directory=/var/lib/net-snmp"
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ file openssl ];
|
buildInputs = [ file openssl perl ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user