summaryrefslogtreecommitdiff
path: root/data/pam/make.sh
blob: 419822b8d177a8656bae8f40d0ff7d5d28a0100f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 ac_cv_c_bigendian=no

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