2021-04-04 16:06:23 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, texinfo }:
|
2014-11-19 03:12:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "macchanger";
|
2016-03-07 18:02:02 +00:00
|
|
|
version = "1.7.0";
|
2015-03-26 22:04:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alobbs";
|
|
|
|
repo = "macchanger";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1hypx6sxhd2b1nsxj314hpkhj7q4x9p2kfaaf20rjkkkig0nck9r";
|
2014-11-19 03:12:02 +00:00
|
|
|
};
|
|
|
|
|
2021-04-04 16:06:23 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/02-fix_usage_message.patch";
|
|
|
|
sha256 = "0pxljmq0l0znylbhms09i19qwil74gm8gx3xx2ffx00dajaizj18";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/06-update_OUI_list.patch";
|
|
|
|
sha256 = "04kbd784z9nwkjva5ckkvb0yb3pim9valb1viywn1yyh577d0y7w";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/08-fix_random_MAC_choice.patch";
|
|
|
|
sha256 = "1vz3appxxsdf1imzrn57amazfwlbrvx6g78b6n88aqgwzy5dm34d";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/check-random-device-read-errors.patch";
|
|
|
|
sha256 = "0pra6qnk39crjlidspg3l6hpaqiw43cypahx793l59mqn956cngc";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/verify-changed-MAC.patch";
|
|
|
|
sha256 = "0vjhf2fnj1hlghjl821p6idrfc8hmd4lgps5lf1l68ylqvwjw0zj";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-03-07 18:02:02 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook texinfo ];
|
|
|
|
|
|
|
|
outputs = [ "out" "info" ];
|
2015-03-26 22:04:44 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-11-19 03:12:02 +00:00
|
|
|
description = "A utility for viewing/manipulating the MAC address of network interfaces";
|
2021-04-04 16:06:23 +00:00
|
|
|
maintainers = with maintainers; [ joachifm ma27 dotlambda ];
|
2016-03-07 18:02:02 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-04-04 16:06:23 +00:00
|
|
|
homepage = "https://github.com/alobbs/macchanger";
|
2016-03-07 18:02:02 +00:00
|
|
|
platforms = platforms.linux;
|
2014-11-19 03:12:02 +00:00
|
|
|
};
|
|
|
|
}
|