summaryrefslogtreecommitdiffstats
path: root/linux-pam/Pkgfile
blob: 7b147a239b3e7db4f2b333893f1bfe3a79a21096 (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
29
30
31
32
33
34
35
36
37
38
# Description: Permet à l'administateur locale de choisir comment les applications identifie les utilisateurs
# URL: http://www.kernel.org/pub/libs/pam
# Maintainer: NuTyX core team 
# Packager: thierryn1 at hispeed dot ch
# Depends on:
# Run on:

name=linux-pam
version=1.1.5
release=4
source=(https://fedorahosted.org/releases/l/i/linux-pam/Linux-PAM-$version.tar.bz2
	pam-glibc-2.16.patch)

build() {
	mkdir -p $PKG/etc/pam.d
	cd Linux-PAM-$version
	patch -Np1 -i ../pam-glibc-2.16.patch
	./configure --sysconfdir=/etc \
		--libdir=/usr/lib \
		--sbindir=/lib/security \
		--enable-securedir=/lib/security \
		--docdir=/usr/share/doc/Linux-PAM-$version \
		--enable-read-both-confs \
		--with-xauth=/usr/X11R6/bin/xauth \
		--disable-nis
	make
	make DESTDIR=$PKG install
	chmod -v 4755 $PKG/lib/security/unix_chkpwd
	mkdir -p $PKG/{sbin,usr/lib}
	mv -v $PKG/lib/security/pam_tally $PKG/sbin

	# fix some missing symlinks from old pam for compatibility
	cd $PKG/lib/security
	ln -s pam_unix.so pam_unix_acct.so
	ln -s pam_unix.so pam_unix_auth.so
	ln -s pam_unix.so pam_unix_passwd.so
	ln -s pam_unix.so pam_unix_session.so
}