2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pam }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vlock";
|
|
|
|
version = "2.2.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://debian/pool/main/v/vlock/vlock_${version}.orig.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1b9gv7hmlb8swda5bn40lp1yki8b8wv29vdnhcjqfl6ir98551za";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i -e '/INSTALL/ {
|
|
|
|
s/-[og] [^ ]*//g; s/4711/755/
|
|
|
|
}' Makefile modules/Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [ ./eintr.patch ];
|
|
|
|
|
|
|
|
configureFlags = [ "VLOCK_GROUP=root" "ROOT_GROUP=root" ];
|
|
|
|
|
|
|
|
buildInputs = [ pam ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Virtual console locking program";
|
|
|
|
license = licenses.gpl2;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|