2011-03-31 13:10:00 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vlan-1.9";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://gentoo/distfiles/vlan.1.9.tar.gz;
|
|
|
|
sha256 = "1jjc5f26hj7bk8nkjxsa8znfxcf8pgry2ipnwmj2fr6ky0dhm3rv";
|
|
|
|
};
|
|
|
|
|
2016-08-04 11:03:28 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2011-03-31 13:10:00 +02:00
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
# Ouch, the tarball contains pre-compiled binaries.
|
|
|
|
make clean
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/sbin
|
|
|
|
cp vconfig $out/sbin/
|
2016-08-04 11:03:28 +02:00
|
|
|
|
2011-03-31 13:10:00 +02:00
|
|
|
mkdir -p $out/share/man/man8
|
|
|
|
cp vconfig.8 $out/share/man/man8/
|
|
|
|
'';
|
|
|
|
|
2016-08-04 11:03:28 +02:00
|
|
|
meta = {
|
2011-03-31 13:10:00 +02:00
|
|
|
description = "User mode programs to enable VLANs on Ethernet devices";
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-03-31 13:10:00 +02:00
|
|
|
};
|
|
|
|
}
|