diff options
Diffstat (limited to 'testing/krb5')
-rw-r--r-- | testing/krb5/APKBUILD | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/testing/krb5/APKBUILD b/testing/krb5/APKBUILD index 4a3b9e5631..6ce12c4db7 100644 --- a/testing/krb5/APKBUILD +++ b/testing/krb5/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=krb5 pkgver=1.11 -pkgrel=1 +pkgrel=2 pkgdesc="The Kerberos network authentication system" url="http://web.mit.edu/kerberos/www/" arch="all" @@ -70,13 +70,40 @@ package() { "$pkgdir"/etc/init.d/${i%.initd};; esac done + cat > "$pkgdir"/etc/krb5.conf <<EOF +[logging] + default = FILE:/var/log/krb5libs.log + kdc = FILE:/var/log/krb5kdc.log + admin_server = FILE:/var/log/kadmind.log + +[libdefaults] + dns_lookup_realm = false + ticket_lifetime = 24h + renew_lifetime = 7d + forwardable = true + rdns = false +# default_realm = EXAMPLE.COM + +[realms] +# EXAMPLE.COM = { +# kdc = kerberos.example.com +# admin_server = kerberos.example.com +# } + +[domain_realm] +# .example.com = EXAMPLE.COM +# example.com = EXAMPLE.COM + +EOF } server() { pkgdesc="The KDC and related programs for Kerberos 5" + depends="libverto-libev" mkdir -p "$subpkgdir"/usr/share \ "$subpkgdir"/usr/bin \ "$subpkgdir"/etc/ + install -d "$subpkgdir"/var/lib/krb5kdc || return 1 mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/ || return 1 mv "$pkgdir"/usr/share/gnats "$subpkgdir"/usr/share/ || return 1 mv "$pkgdir"/etc/init.d "$subpkgdir"/etc/ || return 1 @@ -103,8 +130,9 @@ pkinit() { libs() { pkgdesc="The shared libraries used by Kerberos 5" - mkdir -p "$subpkgdir"/usr/ - mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ + mkdir -p "$subpkgdir"/usr/ "$subpkgdir"/etc + mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ || return 1 + mv "$pkgdir"/etc/krb5.conf "$subpkgdir"/etc/ } md5sums="1a13c53899806c4da99a798a04d25545 krb5-1.11-signed.tar |