talimat 812 B

123456789101112131415161718192021222324252627282930313233
  1. # Description: Pluggable Authentication Modules to choose how applications authenticate users.
  2. # URL: http://www.kernel.org/pub/libs/pam
  3. # Packager: tnut at nutyx dot org
  4. name=pam
  5. version=1.2.1
  6. release=1
  7. source=(http://linux-pam.org/library/Linux-PAM-$version.tar.bz2)
  8. build() {
  9. if [ "`uname -m`" == "x86_64" ]; then
  10. LIB=lib64
  11. else
  12. LIB=lib
  13. fi
  14. mkdir -p $PKG/etc/pam.d
  15. cd Linux-PAM-$version
  16. ./configure --prefix=/usr --sysconfdir=/etc \
  17. --enable-securedir=/$LIB/security \
  18. --docdir=/usr/share/doc/Linux-PAM-$version \
  19. --disable-nis --libdir=/usr/lib
  20. make
  21. make DESTDIR=$PKG install
  22. chmod -v 4755 $PKG/sbin/unix_chkpwd
  23. for file in pam pam_misc pamc
  24. do
  25. mv -v $PKG/usr/lib/lib${file}.so.* $PKG/$LIB &&
  26. ln -sfv ../../$LIB/$(readlink $PKG/usr/lib/lib${file}.so) $PKG/usr/lib/lib${file}.so
  27. done
  28. }