commit:     09c1db0d180591fc6b08a0b6d2fa23652814796e
Author:     Felix Janda <felix.janda <AT> posteo <DOT> de>
AuthorDate: Fri Apr  3 15:49:08 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Fri Apr  3 19:46:07 2015 +0000
URL:        https://gitweb.gentoo.org/proj/hardened-dev.git/commit/?id=09c1db0d

app-crypt/mit-krb5: In tree version works fine

 app-crypt/mit-krb5/files/kpropd.xinetd             |  11 --
 .../files/mit-krb5-1.11.4-add-netdb_h.patch        |  11 --
 .../files/mit-krb5-1.11_uninitialized.patch        |  78 -------------
 .../files/mit-krb5-1.12_uninitialized.patch        |  55 ---------
 .../mit-krb5/files/mit-krb5-config_LDFLAGS.patch   |  12 --
 .../files/mit-krb5_krb5-config_LDFLAGS.patch       |  12 --
 app-crypt/mit-krb5/files/mit-krb5kadmind.initd-r1  |  25 ----
 app-crypt/mit-krb5/files/mit-krb5kdc.initd-r1      |  24 ----
 app-crypt/mit-krb5/files/mit-krb5kpropd.initd-r1   |  24 ----
 app-crypt/mit-krb5/metadata.xml                    |  16 ---
 app-crypt/mit-krb5/mit-krb5-1.11.4-r99.ebuild      | 128 ---------------------
 app-crypt/mit-krb5/mit-krb5-1.12.1-r99.ebuild      | 128 ---------------------
 12 files changed, 524 deletions(-)

diff --git a/app-crypt/mit-krb5/files/kpropd.xinetd 
b/app-crypt/mit-krb5/files/kpropd.xinetd
deleted file mode 100644
index af542fc..0000000
--- a/app-crypt/mit-krb5/files/kpropd.xinetd
+++ /dev/null
@@ -1,11 +0,0 @@
-service tell
-{
-       disable         = yes
-       socket_type     = stream
-       user            = root
-       wait            = no
-       server          = /usr/sbin/kpropd
-       only_from       = 0.0.0.0
-       log_on_success  = PID HOST EXIT DURATION
-       log_on_failure  = HOST
-}

diff --git a/app-crypt/mit-krb5/files/mit-krb5-1.11.4-add-netdb_h.patch 
b/app-crypt/mit-krb5/files/mit-krb5-1.11.4-add-netdb_h.patch
deleted file mode 100644
index 150bdc2..0000000
--- a/app-crypt/mit-krb5/files/mit-krb5-1.11.4-add-netdb_h.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -Naur krb5-1.11.4.orig/src/lib/rpc/bindresvport.c 
krb5-1.11.4/src/lib/rpc/bindresvport.c
---- krb5-1.11.4.orig/src/lib/rpc/bindresvport.c        2013-11-05 
00:55:08.000000000 +0000
-+++ krb5-1.11.4/src/lib/rpc/bindresvport.c     2014-02-23 13:02:01.036502508 
+0000
-@@ -38,6 +38,7 @@
- #include <sys/errno.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
-+#include <netdb.h>
- #include <gssrpc/rpc.h>
- #include <errno.h>
- 

diff --git a/app-crypt/mit-krb5/files/mit-krb5-1.11_uninitialized.patch 
b/app-crypt/mit-krb5/files/mit-krb5-1.11_uninitialized.patch
deleted file mode 100644
index 16f07d7..0000000
--- a/app-crypt/mit-krb5/files/mit-krb5-1.11_uninitialized.patch
+++ /dev/null
@@ -1,78 +0,0 @@
---- a/src/slave/kprop.c
-+++ b/src/slave/kprop.c
-@@ -91,7 +91,7 @@ main(argc, argv)
-     int     argc;
-     char    **argv;
- {
--    int     fd, database_fd, database_size;
-+    int     fd = -1, database_fd, database_size;
-     krb5_error_code retval;
-     krb5_context context;
-     krb5_creds *my_creds;
---- a/src/kadmin/ktutil/ktutil_funcs.c
-+++ b/src/kadmin/ktutil/ktutil_funcs.c
-@@ -64,7 +64,7 @@
-     krb5_kt_list *list;
-     int idx;
- {
--    krb5_kt_list lp, prev;
-+    krb5_kt_list lp, prev = NULL;
-     int i;
- 
-     for (lp = *list, i = 1; lp; prev = lp, lp = lp->next, i++) {
---- a/src/lib/kadm5/alt_prof.c
-+++ b/src/lib/kadm5/alt_prof.c
-@@ -164,7 +164,7 @@
-     char **values;
-     char *valp;
-     int idx;
--    krb5_boolean val;
-+    krb5_boolean val = 0;
- 
-     kret = krb5_aprof_getvals (acontext, hierarchy, &values);
-     if (kret)
---- a/src/lib/krb5/unicode/ucstr.c
-+++ b/src/lib/krb5/unicode/ucstr.c
-@@ -109,7 +109,7 @@
-             krb5_data ** newdataptr,
-             unsigned flags)
- {
--    int i, j, len, clen, outpos, ucsoutlen, outsize;
-+    int i, j, len, clen, outpos = 0, ucsoutlen, outsize;
-     char *out = NULL, *outtmp, *s;
-     krb5_ucs4 *ucs = NULL, *p, *ucsout = NULL;
-     krb5_data *newdata;
-diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c
-index 7dc5b47..cd90db8 100644
---- a/src/util/profile/prof_init.c
-+++ b/src/util/profile/prof_init.c
-@@ -255,7 +255,7 @@ copy_vtable_profile(profile_t profile, profile_t 
*ret_new_profile)
- {
-     errcode_t err;
-     void *cbdata;
--    profile_t new_profile;
-+    profile_t new_profile = NULL;
- 
-     *ret_new_profile = NULL;
- 
---- a/src/lib/krb5/krb/preauth2.c  2012-12-24 12:39:18.432678497 +0100
-+++ b/src/lib/krb5/krb/preauth2.c   2012-12-24 12:50:49.444099126 +0100
-@@ -956,7 +956,7 @@
-     size_t i, h;
-     int out_pa_list_size = 0;
-     krb5_pa_data **out_pa_list = NULL;
--    krb5_error_code ret, module_ret;
-+    krb5_error_code ret, module_ret = 0;
-     krb5_responder_fn responder = opte->opt_private->responder;
-     static const int paorder[] = { PA_INFO, PA_REAL };
-
---- a/src/tests/asn.1/trval.c  2013-04-12 12:51:36.000000000 -0500
-+++ b/src/tests/asn.1/trval.c  2013-05-24 04:31:14.077036380 -0500
-@@ -404,7 +404,7 @@
- {
-     int n;
-     int r = 0;
--    int rlen2;
-+    int rlen2 = 0;
-     int rlent;
-     int save_appl;

diff --git a/app-crypt/mit-krb5/files/mit-krb5-1.12_uninitialized.patch 
b/app-crypt/mit-krb5/files/mit-krb5-1.12_uninitialized.patch
deleted file mode 100644
index e6d1921..0000000
--- a/app-crypt/mit-krb5/files/mit-krb5-1.12_uninitialized.patch
+++ /dev/null
@@ -1,55 +0,0 @@
---- a/src/slave/kprop.c
-+++ b/src/slave/kprop.c
-@@ -91,7 +91,7 @@ main(argc, argv)
-     int     argc;
-     char    **argv;
- {
--    int     fd, database_fd, database_size;
-+    int     fd = -1, database_fd, database_size;
-     krb5_error_code retval;
-     krb5_context context;
-     krb5_creds *my_creds;
---- a/src/kadmin/ktutil/ktutil_funcs.c
-+++ b/src/kadmin/ktutil/ktutil_funcs.c
-@@ -64,7 +64,7 @@
-     krb5_kt_list *list;
-     int idx;
- {
--    krb5_kt_list lp, prev;
-+    krb5_kt_list lp, prev = NULL;
-     int i;
- 
-     for (lp = *list, i = 1; lp; prev = lp, lp = lp->next, i++) {
---- a/src/lib/kadm5/alt_prof.c
-+++ b/src/lib/kadm5/alt_prof.c
-@@ -164,7 +164,7 @@
-     char **values;
-     char *valp;
-     int idx;
--    krb5_boolean val;
-+    krb5_boolean val = 0;
- 
-     kret = krb5_aprof_getvals (acontext, hierarchy, &values);
-     if (kret)
-
---- a/src/util/profile/prof_init.c
-+++ b/src/util/profile/prof_init.c
-@@ -255,7 +255,7 @@ copy_vtable_profile(profile_t profile, profile_t 
*ret_new_profile)
- {
-     errcode_t err;
-     void *cbdata;
--    profile_t new_profile;
-+    profile_t new_profile = NULL;
- 
-     *ret_new_profile = NULL;
- 
---- a/src/tests/asn.1/trval.c  2013-04-12 12:51:36.000000000 -0500
-+++ b/src/tests/asn.1/trval.c  2013-05-24 04:31:14.077036380 -0500
-@@ -404,7 +404,7 @@
- {
-     int n;
-     int r = 0;
--    int rlen2;
-+    int rlen2 = 0;
-     int rlent;
-     int save_appl;

diff --git a/app-crypt/mit-krb5/files/mit-krb5-config_LDFLAGS.patch 
b/app-crypt/mit-krb5/files/mit-krb5-config_LDFLAGS.patch
deleted file mode 100644
index 8490e62..0000000
--- a/app-crypt/mit-krb5/files/mit-krb5-config_LDFLAGS.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Bug #448778
---- a/src/build-tools/krb5-config.in   2012-12-18 02:47:04.000000000 +0000
-+++ b/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)##'`
- 

diff --git a/app-crypt/mit-krb5/files/mit-krb5_krb5-config_LDFLAGS.patch 
b/app-crypt/mit-krb5/files/mit-krb5_krb5-config_LDFLAGS.patch
deleted file mode 100644
index 0b300cb..0000000
--- a/app-crypt/mit-krb5/files/mit-krb5_krb5-config_LDFLAGS.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Bug #448778
---- krb5-1.11/src/krb5-config.in       2012-12-18 02:47:04.000000000 +0000
-+++ krb5-1.11/src/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)##'`
- 

diff --git a/app-crypt/mit-krb5/files/mit-krb5kadmind.initd-r1 
b/app-crypt/mit-krb5/files/mit-krb5kadmind.initd-r1
deleted file mode 100644
index 7b28fb2..0000000
--- a/app-crypt/mit-krb5/files/mit-krb5kadmind.initd-r1
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/sbin/runscript
-
-#---------------------------------------------------------------------------
-# This script starts/stops the MIT Kerberos 5 Admin daemon
-#---------------------------------------------------------------------------
-
-daemon="MIT Kerberos 5 Admin daemon"
-exec="/usr/sbin/kadmind"
-
-depend() {
-       need mit-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/app-crypt/mit-krb5/files/mit-krb5kdc.initd-r1 
b/app-crypt/mit-krb5/files/mit-krb5kdc.initd-r1
deleted file mode 100644
index 94f1f79..0000000
--- a/app-crypt/mit-krb5/files/mit-krb5kdc.initd-r1
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/sbin/runscript
-
-#---------------------------------------------------------------------------
-# 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/app-crypt/mit-krb5/files/mit-krb5kpropd.initd-r1 
b/app-crypt/mit-krb5/files/mit-krb5kpropd.initd-r1
deleted file mode 100644
index d800d66..0000000
--- a/app-crypt/mit-krb5/files/mit-krb5kpropd.initd-r1
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/sbin/runscript
-
-#---------------------------------------------------------------------------
-# This script starts/stops the MIT Kerberos 5 kpropd
-#---------------------------------------------------------------------------
-
-daemon="MIT Kerberos 5 kpropd"
-exec="/usr/sbin/kpropd"
-
-depend() {
-       use net mit-krb5kdc mit-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/app-crypt/mit-krb5/metadata.xml b/app-crypt/mit-krb5/metadata.xml
deleted file mode 100644
index 2609e96..0000000
--- a/app-crypt/mit-krb5/metadata.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
-<pkgmetadata>
-<herd>kerberos</herd>
-<longdescription>Kerberos 5 reference implementation from MIT</longdescription>
-<use>
-  <flag name="doc">
-    Creates and installs the API and implementation
-    documentation. This is only useful if you want to develop software
-    which depends on kerberos.
-  </flag>
-  <flag name="keyutils">Enable for the keyring ccache using keyutils.</flag>
-  <flag name="pkinit">Enable pkinit support for the initial ticket.</flag>
-  <flag name="openldap">Enable support for ldap as a database backend.</flag>
-</use>
-</pkgmetadata>

diff --git a/app-crypt/mit-krb5/mit-krb5-1.11.4-r99.ebuild 
b/app-crypt/mit-krb5/mit-krb5-1.11.4-r99.ebuild
deleted file mode 100644
index 9f7f0f6..0000000
--- a/app-crypt/mit-krb5/mit-krb5-1.11.4-r99.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.11.4.ebuild,v 
1.10 2013/11/16 08:40:46 ago Exp $
-
-EAPI=5
-
-PYTHON_COMPAT=( python{2_6,2_7} )
-inherit eutils flag-o-matic python-any-r1 versionator
-
-MY_P="${P/mit-}"
-P_DIR=$(get_version_component_range 1-2)
-DESCRIPTION="MIT Kerberos V"
-HOMEPAGE="http://web.mit.edu/kerberos/www/";
-SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar";
-
-LICENSE="openafs-krb5-a BSD MIT OPENLDAP BSD-2 HPND BSD-4 ISC RSA CC-BY-SA-3.0 
|| ( BSD-2 GPL-2+ )"
-SLOT="0"
-KEYWORDS="amd64 arm ~mips ppc x86"
-IUSE="doc +keyutils openldap +pkinit +threads test xinetd"
-
-RDEPEND="!!app-crypt/heimdal
-       >=sys-libs/e2fsprogs-libs-1.41.0
-       || ( dev-libs/libverto[libev] dev-libs/libverto[libevent] 
dev-libs/libverto[tevent] )
-       keyutils? ( sys-apps/keyutils )
-       openldap? ( net-nds/openldap )
-       pkinit? ( dev-libs/openssl )
-       xinetd? ( sys-apps/xinetd )"
-DEPEND="${RDEPEND}
-       ${PYTHON_DEPS}
-       virtual/yacc
-       doc? ( virtual/latex-base )
-       test? ( ${PYTHON_DEPS}
-                       dev-lang/tcl
-                       dev-util/dejagnu )"
-
-S=${WORKDIR}/${MY_P}/src
-
-src_unpack() {
-       unpack ${A}
-       unpack ./"${MY_P}".tar.gz
-}
-
-src_prepare() {
-       epatch "${FILESDIR}/${PN}-1.11_uninitialized.patch"
-       epatch "${FILESDIR}/${PN}_krb5-config_LDFLAGS.patch"
-       epatch "${FILESDIR}/${PN}-1.11.4-add-netdb_h.patch"
-
-       # tcl-8.6 compatibility
-       sed -i -e 's/interp->result/Tcl_GetStringResult(interp)/' \
-               kadmin/testing/util/tcl_kadm5.c || die
-}
-
-src_configure() {
-       append-cppflags "-I${EPREFIX}/usr/include/et"
-       # QA
-       append-flags -fno-strict-aliasing
-       append-flags -fno-strict-overflow
-
-       use keyutils || export ac_cv_header_keyutils_h=no
-       econf \
-               $(use_with openldap ldap) \
-               "$(use_with test tcl "${EPREFIX}/usr")" \
-               $(use_enable pkinit) \
-               $(use_enable threads thread-support) \
-               --without-hesiod \
-               --enable-shared \
-               --with-system-et \
-               --with-system-ss \
-               --enable-dns-for-realm \
-               --enable-kdc-lookaside-cache \
-               --with-system-verto \
-               --disable-rpath
-}
-
-src_compile() {
-       emake -j1
-}
-
-src_test() {
-       emake -j1 check
-}
-
-src_install() {
-       emake \
-               DESTDIR="${D}" \
-               EXAMPLEDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
-               install
-
-       # default database dir
-       keepdir /var/lib/krb5kdc
-
-       cd ..
-       dodoc README
-
-       if use doc; then
-               dohtml -r doc/html/*
-               docinto pdf
-               dodoc doc/pdf/*.pdf
-       fi
-
-       newinitd "${FILESDIR}"/mit-krb5kadmind.initd-r1 mit-krb5kadmind
-       newinitd "${FILESDIR}"/mit-krb5kdc.initd-r1 mit-krb5kdc
-       newinitd "${FILESDIR}"/mit-krb5kpropd.initd-r1 mit-krb5kpropd
-
-       insinto /etc
-       newins "${ED}/usr/share/doc/${PF}/examples/krb5.conf" krb5.conf.example
-       insinto /var/lib/krb5kdc
-       newins "${ED}/usr/share/doc/${PF}/examples/kdc.conf" kdc.conf.example
-
-       if use openldap ; then
-               insinto /etc/openldap/schema
-               doins "${S}/plugins/kdb/ldap/libkdb_ldap/kerberos.schema"
-       fi
-
-       if use xinetd ; then
-               insinto /etc/xinetd.d
-               newins "${FILESDIR}/kpropd.xinetd" kpropd
-       fi
-}
-
-pkg_preinst() {
-       if has_version "<${CATEGORY}/${PN}-1.8.0" ; then
-               elog "MIT split the Kerberos applications from the base 
Kerberos"
-               elog "distribution.  Kerberized versions of telnet, rlogin, 
rsh, rcp,"
-               elog "ftp clients and telnet, ftp deamons now live in"
-               elog "\"app-crypt/mit-krb5-appl\" package."
-       fi
-}

diff --git a/app-crypt/mit-krb5/mit-krb5-1.12.1-r99.ebuild 
b/app-crypt/mit-krb5/mit-krb5-1.12.1-r99.ebuild
deleted file mode 100644
index 4d46d57..0000000
--- a/app-crypt/mit-krb5/mit-krb5-1.12.1-r99.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.12.1.ebuild,v 
1.1 2014/01/18 21:08:09 eras Exp $
-
-EAPI=5
-
-PYTHON_COMPAT=( python{2_6,2_7} )
-inherit eutils flag-o-matic python-any-r1 versionator
-
-MY_P="${P/mit-}"
-P_DIR=$(get_version_component_range 1-2)
-DESCRIPTION="MIT Kerberos V"
-HOMEPAGE="http://web.mit.edu/kerberos/www/";
-SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar";
-
-LICENSE="openafs-krb5-a BSD MIT OPENLDAP BSD-2 HPND BSD-4 ISC RSA CC-BY-SA-3.0 
|| ( BSD-2 GPL-2+ )"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
-IUSE="doc +keyutils openldap +pkinit +threads test xinetd"
-
-RDEPEND="!!app-crypt/heimdal
-       >=sys-libs/e2fsprogs-libs-1.41.0
-       || ( dev-libs/libverto[libev] dev-libs/libverto[libevent] 
dev-libs/libverto[tevent] )
-       keyutils? ( sys-apps/keyutils )
-       openldap? ( net-nds/openldap )
-       pkinit? ( dev-libs/openssl )
-       xinetd? ( sys-apps/xinetd )"
-DEPEND="${RDEPEND}
-       ${PYTHON_DEPS}
-       virtual/yacc
-       doc? ( virtual/latex-base )
-       test? ( ${PYTHON_DEPS}
-                       dev-lang/tcl
-                       dev-util/dejagnu )"
-
-S=${WORKDIR}/${MY_P}/src
-
-src_unpack() {
-       unpack ${A}
-       unpack ./"${MY_P}".tar.gz
-}
-
-src_prepare() {
-       epatch "${FILESDIR}/${PN}-1.12_uninitialized.patch"
-       epatch "${FILESDIR}/${PN}-config_LDFLAGS.patch"
-       epatch "${FILESDIR}/${PN}-1.11.4-add-netdb_h.patch"
-
-       # tcl-8.6 compatibility
-       sed -i -e 's/interp->result/Tcl_GetStringResult(interp)/' \
-               kadmin/testing/util/tcl_kadm5.c || die
-}
-
-src_configure() {
-       append-cppflags "-I${EPREFIX}/usr/include/et"
-       # QA
-       append-flags -fno-strict-aliasing
-       append-flags -fno-strict-overflow
-
-       use keyutils || export ac_cv_header_keyutils_h=no
-       econf \
-               $(use_with openldap ldap) \
-               "$(use_with test tcl "${EPREFIX}/usr")" \
-               $(use_enable pkinit) \
-               $(use_enable threads thread-support) \
-               --without-hesiod \
-               --enable-shared \
-               --with-system-et \
-               --with-system-ss \
-               --enable-dns-for-realm \
-               --enable-kdc-lookaside-cache \
-               --with-system-verto \
-               --disable-rpath
-}
-
-src_compile() {
-       emake -j1
-}
-
-src_test() {
-       emake -j1 check
-}
-
-src_install() {
-       emake \
-               DESTDIR="${D}" \
-               EXAMPLEDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
-               install
-
-       # default database dir
-       keepdir /var/lib/krb5kdc
-
-       cd ..
-       dodoc README
-
-       if use doc; then
-               dohtml -r doc/html/*
-               docinto pdf
-               dodoc doc/pdf/*.pdf
-       fi
-
-       newinitd "${FILESDIR}"/mit-krb5kadmind.initd-r1 mit-krb5kadmind
-       newinitd "${FILESDIR}"/mit-krb5kdc.initd-r1 mit-krb5kdc
-       newinitd "${FILESDIR}"/mit-krb5kpropd.initd-r1 mit-krb5kpropd
-
-       insinto /etc
-       newins "${ED}/usr/share/doc/${PF}/examples/krb5.conf" krb5.conf.example
-       insinto /var/lib/krb5kdc
-       newins "${ED}/usr/share/doc/${PF}/examples/kdc.conf" kdc.conf.example
-
-       if use openldap ; then
-               insinto /etc/openldap/schema
-               doins "${S}/plugins/kdb/ldap/libkdb_ldap/kerberos.schema"
-       fi
-
-       if use xinetd ; then
-               insinto /etc/xinetd.d
-               newins "${FILESDIR}/kpropd.xinetd" kpropd
-       fi
-}
-
-pkg_preinst() {
-       if has_version "<${CATEGORY}/${PN}-1.8.0" ; then
-               elog "MIT split the Kerberos applications from the base 
Kerberos"
-               elog "distribution.  Kerberized versions of telnet, rlogin, 
rsh, rcp,"
-               elog "ftp clients and telnet, ftp deamons now live in"
-               elog "\"app-crypt/mit-krb5-appl\" package."
-       fi
-}

Reply via email to