talimat 653 B

12345678910111213141516171819202122232425262728293031
  1. # Tanım: POSIX 1003.1e capabilities library
  2. # URL: http://www.kernel.org/pub/linux/libs/security/linux-privs/
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. isim=libcap
  6. surum=2.25
  7. devir=1
  8. kaynak=( https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$surum.tar.xz)
  9. derle() {
  10. cd libcap-$surum
  11. sed -i 's:LIBDIR:PAM_&:g' pam_cap/Makefile
  12. sed -i '/install.*STALIBNAME/d' libcap/Makefile
  13. make
  14. make RAISE_SETFCAP=no \
  15. prefix=/usr \
  16. LIBDIR=/usr/lib \
  17. SBINDIR=/sbin \
  18. PAM_LIBDIR=/lib \
  19. DESTDIR=$PKG install
  20. mkdir -p $PKG/lib
  21. _lib=""
  22. mv -v $PKG/usr/lib${_lib}/libcap.so.* \
  23. $PKG/lib
  24. ln -sfv ../../lib/libcap.so.2 $PKG/usr/lib${_lib}/libcap.so
  25. }