doas: enable timestamp by default and set pamdir
* `--with-timestamp` enables the usage of the `persist` setting in `doas.conf`. It is possible some people might not want this, so the flag `withTimestamp` was added to control this. * `--pamdir` copies the PAM files to `$out/etc/pam.d`. This may or may not have a use in the future, but it removes a some errors from the build (when it tries to copy these files to /etc/pam.d).
This commit is contained in:
parent
01b645e872
commit
0f8e972f01
@ -3,6 +3,8 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, bison
|
, bison
|
||||||
, pam
|
, pam
|
||||||
|
|
||||||
|
, withTimestamp ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -19,6 +21,11 @@ stdenv.mkDerivation rec {
|
|||||||
# otherwise confuses ./configure
|
# otherwise confuses ./configure
|
||||||
dontDisableStatic = true;
|
dontDisableStatic = true;
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
(lib.optionalString withTimestamp "--with-timestamp") # to allow the "persist" setting
|
||||||
|
"--pamdir=${placeholder "out"}/etc/pam.d"
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i '/\(chown\|chmod\)/d' bsd.prog.mk
|
sed -i '/\(chown\|chmod\)/d' bsd.prog.mk
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user