2011-11-10 17:16:40 +01:00
|
|
|
# Description: Network Authentication Protocol
|
2021-02-16 14:09:45 +01:00
|
|
|
# URL: https://web.mit.edu/kerberos
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
# Depends on: e2fsprogs openssl
|
2023-06-07 17:58:03 +02:00
|
|
|
# Optional: keyutils openldap
|
2011-11-10 17:16:40 +01:00
|
|
|
|
|
|
|
name=krb5
|
2023-08-16 10:23:48 +02:00
|
|
|
version=1.21.2
|
2015-03-18 18:07:31 +01:00
|
|
|
release=1
|
2020-02-15 13:39:38 +01:00
|
|
|
source=(https://kerberos.org/dist/$name/${version::4}/$name-$version.tar.gz
|
2021-02-16 14:09:45 +01:00
|
|
|
krb5)
|
2011-11-10 17:16:40 +01:00
|
|
|
|
|
|
|
build() {
|
2018-09-14 14:35:57 +02:00
|
|
|
cd $name-$version/src
|
2011-11-10 17:16:40 +01:00
|
|
|
|
2023-06-07 17:58:03 +02:00
|
|
|
sed -i "/KRB5ROOT=/s/\/local//" util/ac_check_krb5.m4
|
|
|
|
|
|
|
|
prt-get isinst openldap && PKGMK_KRB5+=' --with-ldap'
|
|
|
|
prt-get isinst keyutils || PKGMK_KRB5+=' --without-keyutils'
|
|
|
|
|
|
|
|
./configure $PKGMK_KRB5 \
|
2018-09-14 14:35:57 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--localstatedir=/var \
|
2023-06-07 17:58:03 +02:00
|
|
|
--runstatedir=/run \
|
2019-01-08 11:26:22 +01:00
|
|
|
--enable-shared \
|
2018-09-14 14:35:57 +02:00
|
|
|
--disable-rpath \
|
|
|
|
--disable-nls \
|
|
|
|
--without-tcl \
|
|
|
|
--with-system-et \
|
|
|
|
--with-system-ss \
|
|
|
|
--without-system-verto \
|
|
|
|
--enable-dns-for-realm
|
2012-08-01 12:51:24 +02:00
|
|
|
|
2018-09-14 14:35:57 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2013-10-29 10:55:51 +01:00
|
|
|
|
2018-09-14 14:35:57 +02:00
|
|
|
# move essential libs and the ksu binary to /lib resp. /bin
|
|
|
|
install -d $PKG/{bin,lib}
|
|
|
|
|
|
|
|
mv $PKG/usr/bin/ksu $PKG/bin
|
|
|
|
|
|
|
|
mv $PKG/usr/lib/libkrb5.so.3* $PKG/lib
|
|
|
|
mv $PKG/usr/lib/libk5crypto.so.3* $PKG/lib
|
|
|
|
mv $PKG/usr/lib/libkrb5support.so.0* $PKG/lib
|
|
|
|
|
|
|
|
ln -sf ../../lib/$(readlink $PKG/usr/lib/libkrb5.so) $PKG/usr/lib/libkrb5.so
|
|
|
|
ln -sf ../../lib/$(readlink $PKG/usr/lib/libk5crypto.so) $PKG/usr/lib/libk5crypto.so
|
|
|
|
ln -sf ../../lib/$(readlink $PKG/usr/lib/libkrb5support.so) $PKG/usr/lib/libkrb5support.so
|
|
|
|
|
2023-06-07 17:58:03 +02:00
|
|
|
install -Dm 644 util/ac_check_krb5.m4 -t $PKG/usr/share/aclocal
|
|
|
|
|
2018-09-14 14:35:57 +02:00
|
|
|
# cleanup
|
|
|
|
rm -r $PKG/usr/share/{examples,man/cat*}
|
2023-06-07 17:58:03 +02:00
|
|
|
rm -r $PKG/run
|
2011-11-10 17:16:40 +01:00
|
|
|
|
2018-09-14 14:35:57 +02:00
|
|
|
# start script
|
|
|
|
install -D -m 0755 $SRC/krb5 $PKG/etc/rc.d/krb5
|
2011-11-10 17:16:40 +01:00
|
|
|
}
|