talimat 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Description: Kerberos ağ kimlik doğrulama sistemi
  2. # URL: http://web.mit.edu/kerberos/
  3. # Packager: milisarge
  4. # Depends on:
  5. name=kerberos
  6. version=1.14
  7. release=1
  8. source=(http://web.mit.edu/$name/dist/krb5/1.14/krb5-$version.tar.gz)
  9. build() {
  10. cd krb5-$version
  11. cd src
  12. sed -e "s@python2.5/Python.h@& python2.7/Python.h@g" \
  13. -e "s@-lpython2.5]@&,\n AC_CHECK_LIB(python2.7,main,[PYTHON_LIB=-lpython2.7])@g" \
  14. -i configure.in
  15. sed -e 's@\^u}@^u cols 300}@' \
  16. -i tests/dejagnu/config/default.exp
  17. autoconf
  18. ./configure --prefix=/usr \
  19. --sysconfdir=/etc \
  20. --localstatedir=/var/lib \
  21. --with-system-et \
  22. --with-system-ss \
  23. --with-system-verto=no \
  24. --enable-dns-for-realm
  25. make
  26. make DESTDIR=$PKG install
  27. for LIBRARY in gssapi_krb5 gssrpc k5crypto kadm5clnt_mit kadm5srv_mit kdb5 krb5 krb5support verto; do
  28. chmod -v 755 $PKG/usr/lib/lib$LIBRARY.so.*.*
  29. done
  30. unset LIBRARY
  31. mkdir -p $PKG/{bin,lib}
  32. mv -v $PKG/usr/lib/libkrb5.so.3* $PKG/lib
  33. mv -v $PKG/usr/lib/libk5crypto.so.3* $PKG/lib
  34. mv -v $PKG/usr/lib/libkrb5support.so.0* $PKG/lib
  35. ln -v -sf ../../lib/libkrb5.so.3.3 $PKG/usr/lib/libkrb5.so
  36. ln -v -sf ../../lib/libk5crypto.so.3.1 $PKG/usr/lib/libk5crypto.so
  37. ln -v -sf ../../lib/libkrb5support.so.0.1 $PKG/usr/lib/libkrb5support.so
  38. mv -v $PKG/usr/bin/ksu $PKG/bin
  39. chmod -v 755 $PKG/bin/ksu
  40. install -v -dm755 $PKG/usr/share/doc/krb5-$version
  41. cp -vfr ../doc/* $PKG/usr/share/doc/krb5-$version
  42. }