Merge pull request #314687 from uninsane/pr-pam-formatting

pam: packaging cleanups
This commit is contained in:
Jan Tojnar
2024-07-23 21:06:12 +02:00
committed by GitHub
+2 -10
View File
@@ -18,10 +18,10 @@ stdenv.mkDerivation rec {
];
# Case-insensitivity workaround for https://github.com/linux-pam/linux-pam/issues/569
postPatch = if stdenv.buildPlatform.isDarwin && stdenv.buildPlatform != stdenv.hostPlatform then ''
postPatch = lib.optionalString (stdenv.buildPlatform.isDarwin && stdenv.buildPlatform != stdenv.hostPlatform) ''
rm CHANGELOG
touch ChangeLog
'' else null;
'';
outputs = [ "out" "doc" "man" /* "modules" */ ];
@@ -36,14 +36,6 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
preConfigure = lib.optionalString (stdenv.hostPlatform.libc == "musl") ''
# export ac_cv_search_crypt=no
# (taken from Alpine linux, apparently insecure but also doesn't build O:))
# disable insecure modules
# sed -e 's/pam_rhosts//g' -i modules/Makefile.am
sed -e 's/pam_rhosts//g' -i modules/Makefile.in
'';
configureFlags = [
"--includedir=${placeholder "out"}/include/security"
"--enable-sconfigdir=/etc/security"