summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-04-30 14:22:37 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-04-30 14:32:50 +0000
commitacac7b882252c47d4f43cd2dac8c810c043eb54d (patch)
tree63088faa81269eb0811017d7dcd75610506a23b2 /testing
parent7a125d9999cae4079c59326d5030326d7aa63f55 (diff)
downloadaports-acac7b882252c47d4f43cd2dac8c810c043eb54d.tar.bz2
aports-acac7b882252c47d4f43cd2dac8c810c043eb54d.tar.xz
main/krb5: install example config and create state dir
Diffstat (limited to 'testing')
-rw-r--r--testing/krb5/APKBUILD34
1 files changed, 31 insertions, 3 deletions
diff --git a/testing/krb5/APKBUILD b/testing/krb5/APKBUILD
index 4a3b9e563..6ce12c4db 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