CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
util-linux: updated to 2.38.1
[ports/core-arm64.git] / linux-pam / Pkgfile
CommitLineData
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
6name=linux-pam
52d80e42 7version=1.5.2
99e82171 8release=3
34e6a37d
VM
9source=(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
13build() {
3ed3468e 14 cd Linux-PAM-$version
9e0c7898
VM
15 CONFIG_SHELL=/bin/bash ./configure \
16 --prefix=/usr \
17 --libdir=/lib \
18 --disable-nis \
19 --disable-nls \
20 --disable-prelude \
21 --enable-db=no
22
3ed3468e
VM
23 make
24 make DESTDIR=$PKG install
34e6a37d 25
9e0c7898
VM
26 mv $PKG/lib/pkgconfig $PKG/usr/lib
27
3ed3468e
VM
28 # unix_chkpwd needs to be setuid root
29 chmod u+s $PKG/sbin/unix_chkpwd
34e6a37d 30
3ed3468e
VM
31 mkdir -p $PKG/etc/pam.d
32 install -o root -g root -m 0644 \
33 $SRC/{common-*,other} \
34 $PKG/etc/pam.d/
34e6a37d 35
9e0c7898 36 rm -r $PKG/usr/{lib/systemd,share/doc}
34e6a37d 37}