2006-12-22 20:22:57 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
2007-05-16 16:54:28 +02:00
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
2006-12-22 20:22:57 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libcap-1.10";
|
|
|
|
src = fetchurl {
|
2007-08-27 15:59:40 +02:00
|
|
|
url = mirror://kernel/linux/libs/security/linux-privs/kernel-2.4/libcap-1.10.tar.bz2;
|
2006-12-22 20:22:57 +01:00
|
|
|
md5 = "4426a413128142cab89eb2e6f13d8571";
|
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = "
|
2006-12-27 18:23:34 +01:00
|
|
|
substituteInPlace libcap/Makefile --replace /usr/include ${stdenv.glibc}/include
|
2006-12-27 18:30:40 +01:00
|
|
|
makeFlags=\"LIBDIR=$out/lib INCDIR=$out/include SBINDIR=$out/sbin MANDIR=$out/man\"
|
2006-12-22 20:22:57 +01:00
|
|
|
";
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Borrowed from http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libcap/files/libcap-1.10-syscall.patch?rev=1.2&view=log.
|
|
|
|
./syscall.patch
|
|
|
|
];
|
|
|
|
}
|