blob: 2055e1ecee1dcfa5a68666a957c825d5c2932da6 (
plain)
1 # Description: Network Authentication Protocol
2 # URL: https://web.mit.edu/kerberos
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: e2fsprogs openssl
5
6 name=krb5
7 version=1.17
8 release=1
9 source=(https://kerberos.org/dist/krb5/1.17/krb5-$version.tar.gz
10 krb5)
11
12 build() {
13 cd $name-$version/src
14
15 ./configure \
16 --prefix=/usr \
17 --localstatedir=/var \
18 --runstatedir=/var/run \
19 --enable-shared \
20 --disable-rpath \
21 --disable-nls \
22 --without-tcl \
23 --with-system-et \
24 --with-system-ss \
25 --without-system-verto \
26 --enable-dns-for-realm
27
28 make
29 make DESTDIR=$PKG install
30
31
32 # move essential libs and the ksu binary to /lib resp. /bin
33 install -d $PKG/{bin,lib}
34
35 mv $PKG/usr/bin/ksu $PKG/bin
36
37 mv $PKG/usr/lib/libkrb5.so.3* $PKG/lib
38 mv $PKG/usr/lib/libk5crypto.so.3* $PKG/lib
39 mv $PKG/usr/lib/libkrb5support.so.0* $PKG/lib
40
41 ln -sf ../../lib/$(readlink $PKG/usr/lib/libkrb5.so) $PKG/usr/lib/libkrb5.so
42 ln -sf ../../lib/$(readlink $PKG/usr/lib/libk5crypto.so) $PKG/usr/lib/libk5crypto.so
43 ln -sf ../../lib/$(readlink $PKG/usr/lib/libkrb5support.so) $PKG/usr/lib/libkrb5support.so
44
45 # cleanup
46 rm -r $PKG/usr/share/{examples,man/cat*}
47
48 # start script
49 install -D -m 0755 $SRC/krb5 $PKG/etc/rc.d/krb5
50 }
|