forked from mirrors/nixpkgs
Use tcpdump mirror scheme.
svn path=/nixpkgs/trunk/; revision=12780
This commit is contained in:
parent
df4363229d
commit
d22149a3b7
|
@ -1,9 +1,12 @@
|
|||
{stdenv, fetchurl, flex, bison}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libpcap-0.9.8";
|
||||
src = fetchurl {
|
||||
url = [ http://www.tcpdump.org/release/libpcap-0.9.8.tar.gz http://www.sfr-fresh.com/unix/misc/libpcap-0.9.8.tar.gz ];
|
||||
url = [
|
||||
"mirror://tcpdump/release/${name}.tar.gz"
|
||||
"http://www.sfr-fresh.com/unix/misc/${name}.tar.gz"
|
||||
];
|
||||
sha256 = "1yb2hg8jd1bzq3lbrff1sps4757krvj2c9pm2ixn44a4vsc865f4";
|
||||
};
|
||||
buildInputs = [flex bison];
|
||||
|
|
|
@ -1,10 +1,18 @@
|
|||
{stdenv, fetchurl, libpcap}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
name = "tcpdump-3.9.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.tcpdump.org/release/tcpdump-3.9.8.tar.gz;
|
||||
url = "mirror://tcpdump/release/${name}.tar.gz";
|
||||
sha256 = "16fjm1ih56mwqniffp63adbxwfj5n10x1a7l22j3cx683pmwh293";
|
||||
};
|
||||
|
||||
buildInputs = [libpcap];
|
||||
|
||||
meta = {
|
||||
description = "tcpdump, a famous network sniffer";
|
||||
homepage = http://www.tcpdump.org/;
|
||||
license = "BSD-style";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue