2007-06-27 00:46:43 -04:00
|
|
|
# Description: Linux-PAM (Pluggable Authentication Modules for Linux)
|
2013-11-23 19:01:59 +09:00
|
|
|
# URL: http://www.kernel.org/pub/linux/libs/pam/
|
2007-06-27 00:46:43 -04:00
|
|
|
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
|
|
|
|
|
|
name=linux-pam
|
2013-11-23 19:01:59 +09:00
|
|
|
version=1.1.8
|
2013-12-06 09:14:18 +09:00
|
|
|
release=2
|
2013-11-23 19:01:59 +09:00
|
|
|
source=(
|
|
|
|
http://www.linux-pam.org/library/Linux-PAM-$version.tar.bz2
|
|
|
|
other
|
|
|
|
system-auth
|
|
|
|
)
|
2007-06-27 00:46:43 -04:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd Linux-PAM-$version
|
2009-10-27 20:54:45 +09:00
|
|
|
|
2013-11-23 19:01:59 +09:00
|
|
|
# pam_userdb needs the dbm api of libdb.
|
|
|
|
# if the api isn't there, we disable the module
|
|
|
|
db="$(grep -q __db_ndbm_open /usr/lib/libdb.* || echo --disable-db)"
|
2012-12-20 17:43:24 +09:00
|
|
|
|
|
|
|
./configure \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--prefix=/usr \
|
2013-11-23 19:01:59 +09:00
|
|
|
--libdir=/lib \
|
2012-12-20 17:43:24 +09:00
|
|
|
--mandir=/usr/man \
|
2013-11-23 19:01:59 +09:00
|
|
|
--disable-nls \
|
|
|
|
"$db"
|
|
|
|
|
2007-06-27 00:46:43 -04:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2013-11-23 19:01:59 +09:00
|
|
|
|
|
|
|
rm -rf $PKG/usr/share $PKG/lib/security/*.la
|
2013-12-06 09:14:18 +09:00
|
|
|
mkdir -m 755 $PKG/etc/pam.d
|
2013-11-23 19:01:59 +09:00
|
|
|
install -D -m 644 -o root -g root $SRC/other $PKG/etc/pam.d/other
|
|
|
|
install -D -m 644 -o root -g root $SRC/system-auth $PKG/etc/pam.d/system-auth
|
|
|
|
|
|
|
|
# the unix_chkpwd helper need the setuid bit
|
|
|
|
chmod u+s $PKG/sbin/unix_chkpwd
|
2007-06-27 00:46:43 -04:00
|
|
|
}
|