Commit | Line | Data |
---|---|---|
34e6a37d VM |
1 | # Description: Pluggable Authentication Modules (PAM) for Linux |
2 | # URL: http://www.linux-pam.org/ | |
3 | # Maintainer: CRUX System Team, core-ports at crux dot nu | |
3ed3468e | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
34e6a37d VM |
5 | |
6 | name=linux-pam | |
8f39acb6 | 7 | version=1.5.1 |
34e6a37d VM |
8 | release=1 |
9 | source=(https://github.com/$name/$name/releases/download/v${version}/Linux-PAM-$version.tar.xz \ | |
10 | common-account common-auth common-password common-session \ | |
11 | other) | |
12 | ||
13 | build() { | |
3ed3468e VM |
14 | cd Linux-PAM-$version |
15 | CONFIG_SHELL=/bin/bash ./configure --prefix=/usr \ | |
16 | --libdir=/lib \ | |
17 | --disable-nis \ | |
18 | --disable-nls \ | |
19 | --disable-prelude \ | |
20 | --enable-db=no | |
21 | make | |
22 | make DESTDIR=$PKG install | |
34e6a37d | 23 | |
3ed3468e VM |
24 | # unix_chkpwd needs to be setuid root |
25 | chmod u+s $PKG/sbin/unix_chkpwd | |
34e6a37d | 26 | |
3ed3468e VM |
27 | mkdir -p $PKG/etc/pam.d |
28 | install -o root -g root -m 0644 \ | |
29 | $SRC/{common-*,other} \ | |
30 | $PKG/etc/pam.d/ | |
34e6a37d | 31 | |
3ed3468e | 32 | rm -r $PKG/usr/{lib,share/doc} |
34e6a37d | 33 | } |