Added setuid-ready chroot utility.
svn path=/nixpkgs/trunk/; revision=16331
This commit is contained in:
parent
dab4dc0de1
commit
b69be987c0
@ -19,5 +19,8 @@ rec {
|
|||||||
name = "${abort "Specify name"}-" + version;
|
name = "${abort "Specify name"}-" + version;
|
||||||
meta = {
|
meta = {
|
||||||
description = "${abort "Specify description"}";
|
description = "${abort "Specify description"}";
|
||||||
|
maintainers = [
|
||||||
|
a.lib.maintainers.(abort "Specify maintainer")
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
34
pkgs/tools/system/suid-chroot/default.nix
Normal file
34
pkgs/tools/system/suid-chroot/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
a :
|
||||||
|
let
|
||||||
|
fetchurl = a.fetchurl;
|
||||||
|
|
||||||
|
version = a.lib.attrByPath ["version"] "1.0.1" a;
|
||||||
|
buildInputs = with a; [
|
||||||
|
|
||||||
|
];
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://myweb.tiscali.co.uk/scottrix/linux/download/suid-chroot-${version}.tar.bz2";
|
||||||
|
sha256 = "15gs09md4lyym47ipzffm1ws8jkg028x0cgwxxs9qkdqbl5zb777";
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit buildInputs;
|
||||||
|
configureFlags = [];
|
||||||
|
|
||||||
|
/* doConfigure should be removed if not needed */
|
||||||
|
phaseNames = ["replacePaths" "doMakeInstall"];
|
||||||
|
|
||||||
|
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";
|
||||||
|
maintainers = [
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
@ -1321,6 +1321,9 @@ let
|
|||||||
inherit fetchurl stdenv coreutils pam groff;
|
inherit fetchurl stdenv coreutils pam groff;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
suidChroot = builderDefsPackage (import ../tools/system/suid-chroot) {
|
||||||
|
};
|
||||||
|
|
||||||
superkaramba = import ../desktops/superkaramba {
|
superkaramba = import ../desktops/superkaramba {
|
||||||
inherit stdenv fetchurl kdebase kdelibs zlib libjpeg
|
inherit stdenv fetchurl kdebase kdelibs zlib libjpeg
|
||||||
perl qt3 python libpng freetype expat;
|
perl qt3 python libpng freetype expat;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user