2012-06-11 09:16:11 +02:00
|
|
|
{ stdenv, fetchurl, pam }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "vlock-2.2.2";
|
|
|
|
src = fetchurl
|
|
|
|
{
|
|
|
|
url = mirror://debian/pool/main/v/vlock/vlock_2.2.2.orig.tar.gz;
|
|
|
|
sha256 = "1b9gv7hmlb8swda5bn40lp1yki8b8wv29vdnhcjqfl6ir98551za";
|
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
2017-06-22 04:01:27 +02:00
|
|
|
sed -i -e '/INSTALL/ {
|
|
|
|
s/-[og] [^ ]*//g; s/4711/755/
|
|
|
|
}' Makefile modules/Makefile
|
2012-06-11 09:16:11 +02:00
|
|
|
'';
|
|
|
|
|
2017-03-03 20:08:23 +01:00
|
|
|
patches = [ ./eintr.patch ];
|
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "VLOCK_GROUP=root" "ROOT_GROUP=root" ];
|
2012-06-11 09:16:11 +02:00
|
|
|
|
|
|
|
buildInputs = [ pam ];
|
|
|
|
|
2014-05-21 16:12:03 +02:00
|
|
|
meta = with stdenv.lib; {
|
2012-06-11 09:16:11 +02:00
|
|
|
description = "Virtual console locking program";
|
2014-05-21 16:12:03 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.lethalman ];
|
|
|
|
platforms = platforms.linux;
|
2012-06-11 09:16:11 +02:00
|
|
|
};
|
|
|
|
}
|