2015-04-22 13:11:31 -07:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "suid-chroot-${version}";
|
2016-01-24 11:31:44 -08:00
|
|
|
version = "1.0.2";
|
2009-07-12 01:10:51 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-04-22 13:11:31 -07:00
|
|
|
sha256 = "1a9xqhck0ikn8kfjk338h9v1yjn113gd83q0c50k78xa68xrnxjx";
|
|
|
|
url = "http://myweb.tiscali.co.uk/scottrix/linux/download/${name}.tar.bz2";
|
2009-07-12 01:10:51 -07:00
|
|
|
};
|
|
|
|
|
2015-04-22 13:11:31 -07:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace /usr $out
|
2017-06-28 07:58:36 -07:00
|
|
|
sed -i -e '/chmod u+s/d' Makefile
|
2015-04-22 13:11:31 -07:00
|
|
|
'';
|
2009-07-12 01:10:51 -07:00
|
|
|
|
2015-04-22 13:11:31 -07:00
|
|
|
meta = with stdenv.lib; {
|
2009-07-12 01:10:51 -07:00
|
|
|
description = "Setuid-safe wrapper for chroot";
|
2015-05-28 10:20:29 -07:00
|
|
|
license = licenses.gpl2Plus;
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = with platforms; unix;
|
2009-07-12 01:10:51 -07:00
|
|
|
};
|
|
|
|
}
|