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