Added PAM support

This commit is contained in:
CapCreeperGR
2024-07-06 20:38:28 +00:00
parent 2292b03270
commit ac3e5c4ade
17 changed files with 618 additions and 1 deletions
+6 -1
View File
@@ -37,8 +37,13 @@ build() {
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" exec_prefix=/usr install
make DESTDIR="$BPM_OUTPUT" exec_prefix=/usr pamdir= install
make -C man DESTDIR="$BPM_OUTPUT" install-man
mkdir -p "$BPM_OUTPUT"/etc/pam.d
for file in ../pam.d/*; do
cp "$file" "$BPM_OUTPUT"/etc/pam.d
done
cp ../login.defs "$BPM_OUTPUT"/etc/login.defs
mkdir -p "$BPM_OUTPUT"/usr/share/licenses/shadow
cp COPYING "$BPM_OUTPUT"/usr/share/licenses/shadow/COPYING
}