summaryrefslogtreecommitdiff
path: root/data/pam-modules/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/pam-modules/make.sh')
-rw-r--r--data/pam-modules/make.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/data/pam-modules/make.sh b/data/pam-modules/make.sh
new file mode 100644
index 000000000..18bd58e50
--- /dev/null
+++ b/data/pam-modules/make.sh
@@ -0,0 +1,9 @@
+pkg:setup
+
+pkg: mkdir -p /usr/lib/pam
+
+for module in launchd unix uwtmp; do
+ echo "${module}"
+ "${PKG_TARG}-gcc" -shared -o "pam_${module}.so" "pam_${module}"/*.c -lpam -I"${PKG_DATA}" || true
+ pkg: cp -a "pam_${module}.so" /usr/lib/pam
+done