2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2011-03-31 11:10:00 +00:00
|
|
|
|
2021-08-01 18:11:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vlan";
|
|
|
|
version = "1.9";
|
2011-03-31 11:10:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-09-28 18:54:54 +00:00
|
|
|
url = "https://www.candelatech.com/~greear/${pname}/${pname}.${version}.tar.gz";
|
2011-03-31 11:10:00 +00:00
|
|
|
sha256 = "1jjc5f26hj7bk8nkjxsa8znfxcf8pgry2ipnwmj2fr6ky0dhm3rv";
|
|
|
|
};
|
|
|
|
|
2016-08-04 09:03:28 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2011-03-31 11:10:00 +00:00
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
# Ouch, the tarball contains pre-compiled binaries.
|
|
|
|
make clean
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/sbin
|
|
|
|
cp vconfig $out/sbin/
|
2016-08-04 09:03:28 +00:00
|
|
|
|
2011-03-31 11:10:00 +00:00
|
|
|
mkdir -p $out/share/man/man8
|
|
|
|
cp vconfig.8 $out/share/man/man8/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2011-03-31 11:10:00 +00:00
|
|
|
description = "User mode programs to enable VLANs on Ethernet devices";
|
2018-09-10 19:52:21 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2Plus;
|
2011-03-31 11:10:00 +00:00
|
|
|
};
|
|
|
|
}
|