diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-22 21:55:07 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-22 21:55:16 -0500 |
commit | 8c95b54075687f162ba5455ca1c0c7d64d5ff51b (patch) | |
tree | b10d3df9f9258f54bc68458cabb3eaecafc069e8 | |
parent | c8fe5dfd5a5d6967eed5c69285df9af4a9560873 (diff) | |
download | packages-8c95b54075687f162ba5455ca1c0c7d64d5ff51b.tar.gz packages-8c95b54075687f162ba5455ca1c0c7d64d5ff51b.tar.bz2 packages-8c95b54075687f162ba5455ca1c0c7d64d5ff51b.tar.xz packages-8c95b54075687f162ba5455ca1c0c7d64d5ff51b.zip |
user/krb5: pull in, bump to 1.16.1, modernise, fix
-rw-r--r-- | user/krb5/APKBUILD | 103 | ||||
-rw-r--r-- | user/krb5/krb5kadmind.initd | 25 | ||||
-rw-r--r-- | user/krb5/krb5kdc.initd | 24 | ||||
-rw-r--r-- | user/krb5/krb5kpropd.initd | 24 | ||||
-rw-r--r-- | user/krb5/mit-krb5_krb5-config_LDFLAGS.patch | 12 |
5 files changed, 188 insertions, 0 deletions
diff --git a/user/krb5/APKBUILD b/user/krb5/APKBUILD new file mode 100644 index 000000000..84d2855a9 --- /dev/null +++ b/user/krb5/APKBUILD @@ -0,0 +1,103 @@ +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=krb5 +pkgver=1.16.1 +pkgrel=0 +case $pkgver in +*.*.*) _ver=${pkgver%.*};; +*) _ver=${pkgver};; +esac +pkgdesc="The Kerberos network authentication system" +url="http://web.mit.edu/kerberos/www/" +arch="all" +options="suid !check" # Tests require Python 2. +license="MIT" +depends="krb5-conf" +depends_dev="e2fsprogs-dev" +makedepends="$depends_dev keyutils-dev libverto-dev openldap-dev openssl-dev + bison flex perl" +subpackages="$pkgname-dev $pkgname-doc $pkgname-server + $pkgname-server-ldap:ldap $pkgname-pkinit $pkgname-libs" +source="http://web.mit.edu/kerberos/dist/krb5/${_ver}/krb5-$pkgver.tar.gz + mit-krb5_krb5-config_LDFLAGS.patch + + krb5kadmind.initd + krb5kdc.initd + krb5kpropd.initd + " + +build() { + cd "$builddir"/src + ./configure \ + CPPFLAGS="$CPPFLAGS -fPIC -I/usr/include/et" \ + WARN_CFLAGS= \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --localstatedir=/var/lib \ + --enable-shared \ + --disable-static \ + --disable-rpath \ + --with-system-et \ + --with-system-ss \ + --with-system-verto \ + --without-tcl \ + --with-ldap + make +} + +package() { + cd "$builddir"/src + make install DESTDIR="$pkgdir" + 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 +} + +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 + mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/ + mv "$pkgdir"/etc/init.d "$subpkgdir"/etc/ + # used for testing server + mv "$pkgdir"/usr/bin/sclient "$subpkgdir"/usr/bin/ + +} + +ldap() { + pkgdesc="The LDAP storage plugin for the Kerberos 5 KDC" + mkdir -p "$subpkgdir"/usr/lib/krb5/plugins/kdb + mv "$pkgdir"/usr/lib/krb5/plugins/kdb/kldap.so \ + "$subpkgdir"/usr/lib/krb5/plugins/kdb/ + mv "$pkgdir"/usr/lib/libkdb_ldap* \ + "$subpkgdir"/usr/lib/ +} + +pkinit() { + pkgdesc="The PKINIT module for Kerberos 5" + mkdir -p "$subpkgdir"/usr/lib/krb5/plugins/preauth + mv "$pkgdir"/usr/lib/krb5/plugins/preauth/pkinit.so \ + "$subpkgdir"/usr/lib/krb5/plugins/preauth/pkinit.so +} + +libs() { + pkgdesc="The shared libraries used by Kerberos 5" + depends="krb5-conf" + mkdir -p "$subpkgdir"/usr/ + mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ +} + +sha512sums="fa4ec14a4ffe690861e2dd7ea39d7698af2058ce181bb733ea891f80279f4dde4bb891adec5ccb0eaddf737306e6ceb1fe3744a2946e6189a7d7d2dd3bc5ba84 krb5-1.16.1.tar.gz +5a3782ff17b383f8cd0415fd13538ab56afd788130d6ad640e9f2682b7deaae7f25713ce358058ed771091040dccf62a3bc87e6fd473d505ec189a95debcc801 mit-krb5_krb5-config_LDFLAGS.patch +43b9885b7eb8d0d60920def688de482f2b1701288f9acb1bb21dc76b2395428ff304961959eb04ba5eafd0412bae35668d6d2c8223424b9337bc051eadf51682 krb5kadmind.initd +ede15f15bbbc9d0227235067abe15245bb9713aea260d397379c63275ce74aea0db6c91c15d599e40c6e89612d76f3a0f8fdd21cbafa3f30d426d4310d3e2cec krb5kdc.initd +45be0d421efd41e9dd056125a750c90856586e990317456b68170d733b03cba9ecd18ab87603b20e49575e7839fb4a6d628255533f2631f9e8ddb7f3cc493a90 krb5kpropd.initd" diff --git a/user/krb5/krb5kadmind.initd b/user/krb5/krb5kadmind.initd new file mode 100644 index 000000000..64622d512 --- /dev/null +++ b/user/krb5/krb5kadmind.initd @@ -0,0 +1,25 @@ +#!/sbin/openrc-run + +#--------------------------------------------------------------------------- +# This script starts/stops the MIT Kerberos 5 Admin daemon +#--------------------------------------------------------------------------- + +daemon="MIT Kerberos 5 Admin daemon" +exec="/usr/sbin/kadmind" + +depend() { + need krb5kdc + use net +} + +start() { + ebegin "Starting $daemon" + start-stop-daemon --start --quiet --exec ${exec} 1>&2 + eend $? "Error starting $daemon" +} + +stop() { + ebegin "Stopping $daemon" + start-stop-daemon --stop --quiet --exec ${exec} 1>&2 + eend $? "Error stopping $daemon" +} diff --git a/user/krb5/krb5kdc.initd b/user/krb5/krb5kdc.initd new file mode 100644 index 000000000..35cac6f11 --- /dev/null +++ b/user/krb5/krb5kdc.initd @@ -0,0 +1,24 @@ +#!/sbin/openrc-run + +#--------------------------------------------------------------------------- +# This script starts/stops the MIT Kerberos 5 KDC +#--------------------------------------------------------------------------- + +daemon="MIT Kerberos 5 KDC" +exec="/usr/sbin/krb5kdc" + +depend() { + use net +} + +start() { + ebegin "Starting $daemon" + start-stop-daemon --start --quiet --exec ${exec} 1>&2 + eend $? "Error starting $daemon" +} + +stop() { + ebegin "Stopping $daemon" + start-stop-daemon --stop --quiet --exec ${exec} 1>&2 + eend $? "Error stopping $daemon" +} diff --git a/user/krb5/krb5kpropd.initd b/user/krb5/krb5kpropd.initd new file mode 100644 index 000000000..75d2f0d71 --- /dev/null +++ b/user/krb5/krb5kpropd.initd @@ -0,0 +1,24 @@ +#!/sbin/openrc-run + +#--------------------------------------------------------------------------- +# This script starts/stops the MIT Kerberos 5 kpropd +#--------------------------------------------------------------------------- + +daemon="MIT Kerberos 5 kpropd" +exec="/usr/sbin/kpropd" + +depend() { + use net krb5kdc krb5kadmind +} + +start() { + ebegin "Starting $daemon" + start-stop-daemon --start --quiet --exec ${exec} -- -S 1>&2 + eend $? "Error starting $daemon" +} + +stop() { + ebegin "Stopping $daemon" + start-stop-daemon --stop --quiet --exec ${exec} 1>&2 + eend $? "Error stopping $daemon" +} diff --git a/user/krb5/mit-krb5_krb5-config_LDFLAGS.patch b/user/krb5/mit-krb5_krb5-config_LDFLAGS.patch new file mode 100644 index 000000000..1b8508673 --- /dev/null +++ b/user/krb5/mit-krb5_krb5-config_LDFLAGS.patch @@ -0,0 +1,12 @@ +Bug #448778 +--- krb5-1.11/src/build-tools/krb5-config.in 2012-12-18 02:47:04.000000000 +0000 ++++ krb5-1.11/src/build-tools/krb5-config.in 2012-12-28 07:13:16.582693363 +0000 +@@ -217,7 +217,7 @@ + -e 's#\$(PROG_RPATH)#'$libdir'#' \ + -e 's#\$(PROG_LIBPATH)#'$libdirarg'#' \ + -e 's#\$(RPATH_FLAG)#'"$RPATH_FLAG"'#' \ +- -e 's#\$(LDFLAGS)#'"$LDFLAGS"'#' \ ++ -e 's#\$(LDFLAGS)##' \ + -e 's#\$(PTHREAD_CFLAGS)#'"$PTHREAD_CFLAGS"'#' \ + -e 's#\$(CFLAGS)##'` + |