# Add kerberos libs to the library search path
if ! grep -q '^/usr/kerberos/lib$' etc/ld.so.conf ; then
  echo "/usr/kerberos/lib" >> etc/ld.so.conf
fi
( cd usr/kerberos/lib ; rm -rf libkrb5.so )
( cd usr/kerberos/lib ; ln -sf libkrb5.so.3.3 libkrb5.so )
( cd usr/kerberos/lib ; rm -rf libverto.so )
( cd usr/kerberos/lib ; ln -sf libverto.so.0.0 libverto.so )
( cd usr/kerberos/lib ; rm -rf libkadm5clnt.so )
( cd usr/kerberos/lib ; ln -sf libkadm5clnt_mit.so libkadm5clnt.so )
( cd usr/kerberos/lib ; rm -rf libcom_err.so.3 )
( cd usr/kerberos/lib ; ln -sf libcom_err.so.3.0 libcom_err.so.3 )
( cd usr/kerberos/lib ; rm -rf libkadm5srv_mit.so )
( cd usr/kerberos/lib ; ln -sf libkadm5srv_mit.so.8.0 libkadm5srv_mit.so )
( cd usr/kerberos/lib ; rm -rf libkadm5clnt_mit.so )
( cd usr/kerberos/lib ; ln -sf libkadm5clnt_mit.so.8.0 libkadm5clnt_mit.so )
( cd usr/kerberos/lib ; rm -rf libkdb_ldap.so )
( cd usr/kerberos/lib ; ln -sf libkdb_ldap.so.1.0 libkdb_ldap.so )
( cd usr/kerberos/lib ; rm -rf libkrb5.so.3 )
( cd usr/kerberos/lib ; ln -sf libkrb5.so.3.3 libkrb5.so.3 )
( cd usr/kerberos/lib ; rm -rf libkrb5support.so.0 )
( cd usr/kerberos/lib ; ln -sf libkrb5support.so.0.1 libkrb5support.so.0 )
( cd usr/kerberos/lib ; rm -rf libgssapi_krb5.so )
( cd usr/kerberos/lib ; ln -sf libgssapi_krb5.so.2.2 libgssapi_krb5.so )
( cd usr/kerberos/lib ; rm -rf libgssrpc.so )
( cd usr/kerberos/lib ; ln -sf libgssrpc.so.4.1 libgssrpc.so )
( cd usr/kerberos/lib ; rm -rf libkadm5srv_mit.so.8 )
( cd usr/kerberos/lib ; ln -sf libkadm5srv_mit.so.8.0 libkadm5srv_mit.so.8 )
( cd usr/kerberos/lib ; rm -rf libkadm5srv.so )
( cd usr/kerberos/lib ; ln -sf libkadm5srv_mit.so libkadm5srv.so )
( cd usr/kerberos/lib ; rm -rf libk5crypto.so.3 )
( cd usr/kerberos/lib ; ln -sf libk5crypto.so.3.1 libk5crypto.so.3 )
( cd usr/kerberos/lib ; rm -rf libkdb5.so )
( cd usr/kerberos/lib ; ln -sf libkdb5.so.7.0 libkdb5.so )
( cd usr/kerberos/lib ; rm -rf libgssapi_krb5.so.2 )
( cd usr/kerberos/lib ; ln -sf libgssapi_krb5.so.2.2 libgssapi_krb5.so.2 )
( cd usr/kerberos/lib ; rm -rf libk5crypto.so )
( cd usr/kerberos/lib ; ln -sf libk5crypto.so.3.1 libk5crypto.so )
( cd usr/kerberos/lib ; rm -rf libkadm5clnt_mit.so.8 )
( cd usr/kerberos/lib ; ln -sf libkadm5clnt_mit.so.8.0 libkadm5clnt_mit.so.8 )
( cd usr/kerberos/lib ; rm -rf libgssrpc.so.4 )
( cd usr/kerberos/lib ; ln -sf libgssrpc.so.4.1 libgssrpc.so.4 )
( cd usr/kerberos/lib ; rm -rf libkrb5support.so )
( cd usr/kerberos/lib ; ln -sf libkrb5support.so.0.1 libkrb5support.so )
( cd usr/kerberos/lib ; rm -rf libkdb_ldap.so.1 )
( cd usr/kerberos/lib ; ln -sf libkdb_ldap.so.1.0 libkdb_ldap.so.1 )
( cd usr/kerberos/lib ; rm -rf libverto.so.0 )
( cd usr/kerberos/lib ; ln -sf libverto.so.0.0 libverto.so.0 )
( cd usr/kerberos/lib ; rm -rf libkdb5.so.7 )
( cd usr/kerberos/lib ; ln -sf libkdb5.so.7.0 libkdb5.so.7 )
( cd usr/kerberos/lib ; rm -rf libcom_err.so )
( cd usr/kerberos/lib ; ln -sf libcom_err.so.3.0 libcom_err.so )
