1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- # Description: Kerberos ağ kimlik doğrulama sistemi
- # URL: http://web.mit.edu/kerberos/
- # Packager: milisarge
- # Depends on:
- name=kerberos
- version=1.14
- release=1
- source=(http://web.mit.edu/$name/dist/krb5/1.14/krb5-$version.tar.gz)
- build() {
- cd krb5-$version
- cd src
- sed -e "s@python2.5/Python.h@& python2.7/Python.h@g" \
- -e "s@-lpython2.5]@&,\n AC_CHECK_LIB(python2.7,main,[PYTHON_LIB=-lpython2.7])@g" \
- -i configure.in
- sed -e 's@\^u}@^u cols 300}@' \
- -i tests/dejagnu/config/default.exp
- autoconf
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var/lib \
- --with-system-et \
- --with-system-ss \
- --with-system-verto=no \
- --enable-dns-for-realm
- make
- make DESTDIR=$PKG install
- for LIBRARY in gssapi_krb5 gssrpc k5crypto kadm5clnt_mit kadm5srv_mit kdb5 krb5 krb5support verto; do
- chmod -v 755 $PKG/usr/lib/lib$LIBRARY.so.*.*
- done
- unset LIBRARY
- mkdir -p $PKG/{bin,lib}
- mv -v $PKG/usr/lib/libkrb5.so.3* $PKG/lib
- mv -v $PKG/usr/lib/libk5crypto.so.3* $PKG/lib
- mv -v $PKG/usr/lib/libkrb5support.so.0* $PKG/lib
- ln -v -sf ../../lib/libkrb5.so.3.3 $PKG/usr/lib/libkrb5.so
- ln -v -sf ../../lib/libk5crypto.so.3.1 $PKG/usr/lib/libk5crypto.so
- ln -v -sf ../../lib/libkrb5support.so.0.1 $PKG/usr/lib/libkrb5support.so
- mv -v $PKG/usr/bin/ksu $PKG/bin
- chmod -v 755 $PKG/bin/ksu
- install -v -dm755 $PKG/usr/share/doc/krb5-$version
- cp -vfr ../doc/* $PKG/usr/share/doc/krb5-$version
- }
|