2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, pam }:
|
2012-06-11 07:16:11 +00:00
|
|
|
|
2021-08-12 21:00:21 +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";
|
2012-06-11 07:16:11 +00:00
|
|
|
sha256 = "1b9gv7hmlb8swda5bn40lp1yki8b8wv29vdnhcjqfl6ir98551za";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
2017-06-22 02:01:27 +00:00
|
|
|
sed -i -e '/INSTALL/ {
|
|
|
|
s/-[og] [^ ]*//g; s/4711/755/
|
|
|
|
}' Makefile modules/Makefile
|
2012-06-11 07:16:11 +00:00
|
|
|
'';
|
|
|
|
|
2017-03-03 19:08:23 +00:00
|
|
|
patches = [ ./eintr.patch ];
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "VLOCK_GROUP=root" "ROOT_GROUP=root" ];
|
2012-06-11 07:16:11 +00:00
|
|
|
|
|
|
|
buildInputs = [ pam ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2012-06-11 07:16:11 +00:00
|
|
|
description = "Virtual console locking program";
|
2014-05-21 14:12:03 +00:00
|
|
|
license = licenses.gpl2;
|
2021-05-07 13:35:21 +00:00
|
|
|
maintainers = [ ];
|
2014-05-21 14:12:03 +00:00
|
|
|
platforms = platforms.linux;
|
2023-08-22 09:56:20 +00:00
|
|
|
mainProgram = "vlock";
|
2012-06-11 07:16:11 +00:00
|
|
|
};
|
|
|
|
}
|