milis/talimatname/temel/pam/talimat

35 lines
808 B
Plaintext
Raw Normal View History

2017-10-27 21:56:50 +02:00
# Tanım: Pluggable Authentication Modules to choose how applications authenticate users.
2016-02-24 01:27:23 +01:00
# URL: http://www.kernel.org/pub/libs/pam
2017-10-27 21:56:50 +02:00
# Paketçi: milisarge
# Gerekler:
2016-02-24 01:27:23 +01:00
name=pam
version=1.2.1
release=1
source=(http://linux-pam.org/library/Linux-PAM-$version.tar.bz2)
build() {
if [ "`uname -m`" == "x86_64" ]; then
LIB=lib64
else
LIB=lib
fi
mkdir -p $PKG/etc/pam.d
cd Linux-PAM-$version
./configure --prefix=/usr --sysconfdir=/etc \
--enable-securedir=/$LIB/security \
--docdir=/usr/share/doc/Linux-PAM-$version \
--disable-nis --libdir=/usr/lib
make
make DESTDIR=$PKG install
chmod -v 4755 $PKG/sbin/unix_chkpwd
for file in pam pam_misc pamc
do
mv -v $PKG/usr/lib/lib${file}.so.* $PKG/$LIB &&
ln -sfv ../../$LIB/$(readlink $PKG/usr/lib/lib${file}.so) $PKG/usr/lib/lib${file}.so
done
}