2008-07-24 15:48:23 +02:00
|
|
|
{stdenv, fetchurl, ncurses ? null}:
|
2004-02-16 11:40:45 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2006-10-30 16:14:15 +01:00
|
|
|
name = "util-linux-2.13-pre7";
|
|
|
|
|
2004-02-16 11:40:45 +01:00
|
|
|
src = fetchurl {
|
2007-08-27 15:59:40 +02:00
|
|
|
url = mirror://kernel/linux/utils/util-linux/testing/util-linux-2.13-pre7.tar.bz2;
|
2006-10-30 16:14:15 +01:00
|
|
|
md5 = "13cdf4b76533e8421dc49de188f85291";
|
2004-02-16 11:40:45 +01:00
|
|
|
};
|
2008-07-24 15:48:23 +02:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix for a local root exploit via mount/umount
|
|
|
|
# (http://www.gentoo.org/security/en/glsa/glsa-200710-18.xml).
|
|
|
|
(fetchurl {
|
|
|
|
url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/sys-apps/util-linux/files/util-linux-2.13-setuid-checks.patch?rev=1.1";
|
|
|
|
sha256 = "02ky7ljzqpx8ii3dfmjydw8nnhshpw2inwh6w1vqllz8mhn81jdf";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2006-10-30 16:14:15 +01:00
|
|
|
configureFlags = "--disable-use-tty-group";
|
|
|
|
|
2008-07-24 15:48:23 +02:00
|
|
|
buildInputs = stdenv.lib.optional (ncurses != null) ncurses;
|
2007-12-06 20:36:43 +01:00
|
|
|
|
2008-07-24 15:48:23 +02:00
|
|
|
preBuild = ''
|
2006-10-30 16:14:15 +01:00
|
|
|
makeFlagsArray=(usrbinexecdir=$out/bin usrsbinexecdir=$out/sbin datadir=$out/share exampledir=$out/share/getopt)
|
2008-07-24 15:48:23 +02:00
|
|
|
'';
|
2006-10-31 17:21:24 +01:00
|
|
|
|
|
|
|
# Hack to get static builds to work.
|
|
|
|
NIX_CFLAGS_COMPILE = "-DHAVE___PROGNAME=1";
|
2004-02-16 11:40:45 +01:00
|
|
|
}
|