summaryrefslogtreecommitdiff
path: root/data/pam/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/pam/make.sh')
-rw-r--r--data/pam/make.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/data/pam/make.sh b/data/pam/make.sh
new file mode 100644
index 000000000..a9df17501
--- /dev/null
+++ b/data/pam/make.sh
@@ -0,0 +1,28 @@
+pkg:setup
+
+pkg: mkdir -p /etc/pam.d
+for pam in pam.d/!(*.serverinstall); do
+ echo ${pam}
+ # XXX: fix pam_launchd
+ sed -re '/^#|.*pam_(deny|nologin|permit|rootok|securetty|unix|uwtmp|wheel).so/ ! s/^/#/; ' "${pam}" >"${PKG_DEST}/etc/${pam}"
+done
+
+cd pam
+autoconf
+pkg:configure --enable-fakeroot="${PKG_DEST}" --enable-read-both-confs --enable-sconfigdir=/etc/pam --enable-securedir=/usr/lib/pam --enable-giant-libpam --disable-libcrack
+
+CPATH=$(pwd):$CPATH
+make CC="${PKG_TARG}-gcc" AR="${PKG_TARG}-ar" LD="${PKG_TARG}-ld" RANLIB="${PKG_TARG}-ranlib"
+pkg:install
+
+pkg: mv /usr/lib/libpam.1.0.dylib /usr/lib/libpam.1.dylib
+pkg: ln -s libpam.1.dylib /usr/lib/libpam.1.0.dylib
+pkg: ln -s libpam.1.dylib /usr/lib/libpam.dylib
+
+pkg: ln -s libpam.1.dylib /usr/lib/libpam_misc.dylib
+pkg: ln -s libpam.1.dylib /usr/lib/libpam_misc.1.dylib
+
+pkg: ln -s libpam.1.dylib /usr/lib/libpamc.dylib
+pkg: ln -s libpam.1.dylib /usr/lib/libpamc.1.dylib
+
+pkg: cp -a libpam/include/pam/pam_modules.h /usr/include/pam