# Maintainer: Natanael Copa pkgname=krb5 pkgver=1.11 pkgrel=2 pkgdesc="The Kerberos network authentication system" url="http://web.mit.edu/kerberos/www/" arch="all" license="MIT" depends="" depends_dev="e2fsprogs-dev" makedepends="$depends_dev libverto-dev openldap-dev openssl-dev keyutils-dev bison flex perl" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-server $pkgname-server-ldap:ldap $pkgname-pkinit $pkgname-libs" source="http://web.mit.edu/kerberos/dist/krb5/1.11/krb5-$pkgver-signed.tar mit-krb5-1.11_uninitialized.patch mit-krb5_krb5-config_LDFLAGS.patch krb5kadmind.initd krb5kdc.initd krb5kpropd.initd " _builddir="$srcdir"/krb5-$pkgver unpack() { default_unpack cd "$srcdir" tar -zxf krb5-$pkgver.tar.gz } prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir"/src ./configure \ CPPFLAGS="$CPPFLAGS -fPIC -I/usr/include/et" \ --prefix=/usr \ --localstatedir=/var/lib \ --enable-shared \ --disable-static \ --disable-rpath \ --with-system-et \ --with-system-ss \ --with-system-verto \ --without-tcl \ --with-ldap \ --with-crypto-impl=openssl \ || return 1 make } package() { cd "$_builddir"/src make install DESTDIR="$pkgdir" || return 1 mkdir -p "$pkgdir"/usr/share/doc/$pkgname mv "$pkgdir"/usr/share/examples "$pkgdir"/usr/share/doc/$pkgname/ for i in $source; do case $i in *.initd) install -Dm755 "$srcdir"/$i \ "$pkgdir"/etc/init.d/${i%.initd};; esac done cat > "$pkgdir"/etc/krb5.conf <