3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/vlan/default.nix
Eelco Dolstra 02b20395d5 * Added vlan, which provides the vconfig command.
svn path=/nixpkgs/branches/modular-python/; revision=26624
2011-03-31 11:10:00 +00:00

30 lines
585 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "vlan-1.9";
src = fetchurl {
url = mirror://gentoo/distfiles/vlan.1.9.tar.gz;
sha256 = "1jjc5f26hj7bk8nkjxsa8znfxcf8pgry2ipnwmj2fr6ky0dhm3rv";
};
preBuild =
''
# Ouch, the tarball contains pre-compiled binaries.
make clean
'';
installPhase =
''
mkdir -p $out/sbin
cp vconfig $out/sbin/
mkdir -p $out/share/man/man8
cp vconfig.8 $out/share/man/man8/
'';
meta = {
description = "User mode programs to enable VLANs on Ethernet devices";
};
}