forked from mirrors/nixpkgs
b5da9e1d55
systems: the makefile determines whether to build with PAM support by doing PAM_CAP ?= $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi) svn path=/nixpkgs/trunk/; revision=11285
19 lines
436 B
Nix
19 lines
436 B
Nix
{stdenv, fetchurl, attr}:
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "libcap-2.07";
|
|
|
|
src = fetchurl {
|
|
url = mirror://kernel/linux/libs/security/linux-privs/kernel-2.6/libcap-2.07.tar.gz;
|
|
sha256 = "1zz8nyqzb15lf31akwyzzfdhyhf9xvl9rqih90m9kypmcmc4yz5q";
|
|
};
|
|
|
|
buildInputs = [attr];
|
|
|
|
preBuild = ''
|
|
makeFlagsArray=(LIBDIR=$out/lib INCDIR=$out/include SBINDIR=$out/sbin MANDIR=$out/man PAM_CAP=no)
|
|
'';
|
|
}
|