suid-chroot 1.0.1 -> 1.0.2 (and refactor)
More of a conversion excercise than anything, but here you go.
This commit is contained in:
parent
1adb482638
commit
b7135f496e
@ -1,34 +1,22 @@
|
|||||||
a :
|
{ stdenv, fetchurl }:
|
||||||
let
|
|
||||||
fetchurl = a.fetchurl;
|
|
||||||
|
|
||||||
version = a.lib.attrByPath ["version"] "1.0.1" a;
|
let version = "1.0.2"; in
|
||||||
buildInputs = with a; [
|
stdenv.mkDerivation rec {
|
||||||
|
name = "suid-chroot-${version}";
|
||||||
|
|
||||||
];
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://myweb.tiscali.co.uk/scottrix/linux/download/suid-chroot-${version}.tar.bz2";
|
sha256 = "1a9xqhck0ikn8kfjk338h9v1yjn113gd83q0c50k78xa68xrnxjx";
|
||||||
sha256 = "15gs09md4lyym47ipzffm1ws8jkg028x0cgwxxs9qkdqbl5zb777";
|
url = "http://myweb.tiscali.co.uk/scottrix/linux/download/${name}.tar.bz2";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit buildInputs;
|
postPatch = ''
|
||||||
configureFlags = [];
|
substituteInPlace Makefile --replace /usr $out
|
||||||
|
'';
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
meta = with stdenv.lib; {
|
||||||
phaseNames = ["replacePaths" "doMakeInstall"];
|
inherit version;
|
||||||
|
|
||||||
installFlags = "PREFIX=$out";
|
|
||||||
|
|
||||||
replacePaths = a.fullDepEntry (''
|
|
||||||
sed -e "s@/usr/@$out/@g" -i Makefile
|
|
||||||
'') ["minInit" "doUnpack"];
|
|
||||||
|
|
||||||
name = "suid-chroot-" + version;
|
|
||||||
meta = {
|
|
||||||
description = "Setuid-safe wrapper for chroot";
|
description = "Setuid-safe wrapper for chroot";
|
||||||
maintainers = [
|
license = with licenses; gpl2Plus;
|
||||||
];
|
maintainers = with maintainers; [ nckx ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2769,7 +2769,7 @@ let
|
|||||||
|
|
||||||
sudo = callPackage ../tools/security/sudo { };
|
sudo = callPackage ../tools/security/sudo { };
|
||||||
|
|
||||||
suidChroot = builderDefsPackage (import ../tools/system/suid-chroot) { };
|
suidChroot = callPackage ../tools/system/suid-chroot { };
|
||||||
|
|
||||||
super = callPackage ../tools/security/super { };
|
super = callPackage ../tools/security/super { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user