diff --git a/pkg.info b/pkg.info index 6d9b0cb..7f1965d 100644 --- a/pkg.info +++ b/pkg.info @@ -5,3 +5,4 @@ url: https://github.com/Duncaen/OpenDoas license: ISC-custom architecture: any type: source +keep: etc/doas.conf diff --git a/source-files/doas-pam b/source-files/doas-pam new file mode 100644 index 0000000..df8da94 --- /dev/null +++ b/source-files/doas-pam @@ -0,0 +1,4 @@ +auth include system-auth +account include system-account +session required pam_env.so +session include system-session diff --git a/source.sh b/source.sh index 2c2752f..142abc3 100644 --- a/source.sh +++ b/source.sh @@ -26,6 +26,7 @@ package() { mkdir -p "$BPM_OUTPUT"/etc cp ../doas.conf "$BPM_OUTPUT"/etc/doas.conf chmod -c 0400 "$BPM_OUTPUT"/etc/doas.conf + cp ../doas-pam "$BPM_OUTPUT"/etc/pam.d/doas mkdir -p "$BPM_OUTPUT"/usr/share/licenses/opendoas cp LICENSE "$BPM_OUTPUT"/usr/share/licenses/opendoas/LICENSE }