pam: don't split modules

libpam seems to need a reference to the modules anyway.
This commit is contained in:
Vladimír Čunát 2015-04-26 22:06:53 +02:00
parent 3b9ef2c71b
commit 5d26d83df2

View file

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
patches = [ ./CVE-2014-2583.patch ];
outputs = [ "out" "doc" "man" "modules" ];
outputs = [ "out" "doc" "man" /* "modules" */ ];
nativeBuildInputs = [ flex ];
@ -36,12 +36,14 @@ stdenv.mkDerivation rec {
postInstall = ''
mv -v $out/sbin/unix_chkpwd{,.orig}
ln -sv /var/setuid-wrappers/unix_chkpwd $out/sbin/unix_chkpwd
''; /*
rm -rf $out/etc
mkdir -p $modules/lib
mv $out/lib/security $modules/lib/
'';
'';*/
# don't move modules, because libpam needs to (be able to) find them,
# which is done by dlopening $out/lib/security/pam_foo.so
# $out/etc was also missed: pam_env(login:session): Unable to open config file
preConfigure = ''
configureFlags="$configureFlags --includedir=$out/include/security"