summaryrefslogtreecommitdiff
path: root/repo/krb5/krb5.xibuild
blob: 92185b92ba62df2df6257fd76f803f12708a88d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh

NAME="krb5"
DESC="The Kerberos network authentication system"

MAKEDEPS="e2fsprogs libverto libldap openssl keyutils bison flex perl"

PKG_VER=1.19.3
maj_min=$PKG_VER
case $PKG_VER in
	*.*.*) maj_min=${PKG_VER%.*} ;;
esac

SOURCE="https://web.mit.edu/kerberos/dist/krb5/$maj_min/krb5-$PKG_VER.tar.gz"

ADDITIONAL="
krb5kadmind.initd
krb5kdc.initd
krb5kpropd.initd
mit-krb5_krb5-config_LDFLAGS.patch
"

prepare () {
    cd src
    mv ../*.patch .
    apply_patches
}

build() {
	./configure \
		CPPFLAGS="$CPPFLAGS -fPIC -I/usr/include/et" \
		WARN_CFLAGS= \
		--prefix=/usr \
		--localstatedir=/var/lib \
		--enable-shared \
		--disable-nls \
		--disable-static \
		--disable-rpath \
		--with-system-et \
		--with-system-ss \
		--with-system-verto \
		--without-tcl \
		--with-ldap
	make
}

package() {
	make install DESTDIR="$PKG_DEST"
	mkdir -p "$PKG_DEST"/usr/share/doc/krb5
	mv "$PKG_DEST"/usr/share/examples "$PKG_DEST"/usr/share/doc/krb5/
}