Gentoo Archives: gentoo-commits

From: Eray Aslan <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/mit-krb5/
Date: Wed, 04 Nov 2015 05:04:20
Message-Id: 1446613442.07369d37112787f01930b4b7caf41d200bd62c81.eras@gentoo
1 commit: 07369d37112787f01930b4b7caf41d200bd62c81
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 4 05:04:02 2015 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 4 05:04:02 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07369d37
7
8 app-crypt/mit-krb5: bump for the new init scripts
9
10 Package-Manager: portage-2.2.23
11
12 app-crypt/mit-krb5/mit-krb5-1.13.2-r3.ebuild | 160 +++++++++++++++++++++++++++
13 1 file changed, 160 insertions(+)
14
15 diff --git a/app-crypt/mit-krb5/mit-krb5-1.13.2-r3.ebuild b/app-crypt/mit-krb5/mit-krb5-1.13.2-r3.ebuild
16 new file mode 100644
17 index 0000000..76dfaeb
18 --- /dev/null
19 +++ b/app-crypt/mit-krb5/mit-krb5-1.13.2-r3.ebuild
20 @@ -0,0 +1,160 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +PYTHON_COMPAT=( python2_7 )
28 +
29 +inherit autotools eutils flag-o-matic multilib-minimal python-any-r1 versionator
30 +
31 +MY_P="${P/mit-}"
32 +P_DIR=$(get_version_component_range 1-2)
33 +DESCRIPTION="MIT Kerberos V"
34 +HOMEPAGE="http://web.mit.edu/kerberos/www/"
35 +SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar"
36 +
37 +LICENSE="openafs-krb5-a BSD MIT OPENLDAP BSD-2 HPND BSD-4 ISC RSA CC-BY-SA-3.0 || ( BSD-2 GPL-2+ )"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
40 +IUSE="doc +keyutils libressl openldap +pkinit selinux +threads test xinetd"
41 +
42 +CDEPEND="
43 + !!app-crypt/heimdal
44 + >=sys-libs/e2fsprogs-libs-1.42.9[${MULTILIB_USEDEP}]
45 + || (
46 + >=dev-libs/libverto-0.2.5[libev,${MULTILIB_USEDEP}]
47 + >=dev-libs/libverto-0.2.5[libevent,${MULTILIB_USEDEP}]
48 + >=dev-libs/libverto-0.2.5[tevent,${MULTILIB_USEDEP}]
49 + )
50 + keyutils? ( >=sys-apps/keyutils-1.5.8[${MULTILIB_USEDEP}] )
51 + openldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] )
52 + pkinit? (
53 + !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
54 + libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
55 + )
56 + xinetd? ( sys-apps/xinetd )
57 + abi_x86_32? (
58 + !<=app-emulation/emul-linux-x86-baselibs-20140508-r1
59 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
60 + )"
61 +DEPEND="${CDEPEND}
62 + ${PYTHON_DEPS}
63 + virtual/yacc
64 + doc? ( virtual/latex-base )
65 + test? (
66 + ${PYTHON_DEPS}
67 + dev-lang/tcl:0
68 + dev-util/dejagnu
69 + )"
70 +RDEPEND="${CDEPEND}
71 + selinux? ( sec-policy/selinux-kerberos )"
72 +
73 +S=${WORKDIR}/${MY_P}/src
74 +
75 +MULTILIB_CHOST_TOOLS=(
76 + /usr/bin/krb5-config
77 +)
78 +
79 +src_unpack() {
80 + unpack ${A}
81 + unpack ./"${MY_P}".tar.gz
82 +}
83 +
84 +src_prepare() {
85 + epatch "${FILESDIR}/${PN}-1.12_warn_cflags.patch"
86 + epatch "${FILESDIR}/${PN}-config_LDFLAGS.patch"
87 + epatch "${FILESDIR}/CVE-2015-2695.patch" \
88 + "${FILESDIR}/CVE-2015-2696.patch" \
89 + "${FILESDIR}/CVE-2015-2697.patch"
90 +
91 + eautoreconf
92 +}
93 +
94 +src_configure() {
95 + append-cppflags "-I${EPREFIX}/usr/include/et"
96 + # QA
97 + append-flags -fno-strict-aliasing
98 + append-flags -fno-strict-overflow
99 +
100 + multilib-minimal_src_configure
101 +}
102 +
103 +multilib_src_configure() {
104 + use keyutils || export ac_cv_header_keyutils_h=no
105 + ECONF_SOURCE=${S} \
106 + WARN_CFLAGS="set" \
107 + econf \
108 + $(use_with openldap ldap) \
109 + "$(multilib_native_use_with test tcl "${EPREFIX}/usr")" \
110 + $(use_enable pkinit) \
111 + $(use_enable threads thread-support) \
112 + --without-hesiod \
113 + --enable-shared \
114 + --with-system-et \
115 + --with-system-ss \
116 + --enable-dns-for-realm \
117 + --enable-kdc-lookaside-cache \
118 + --with-system-verto \
119 + --disable-rpath
120 +}
121 +
122 +multilib_src_compile() {
123 + emake -j1
124 +}
125 +
126 +multilib_src_test() {
127 + multilib_is_native_abi && emake -j1 check
128 +}
129 +
130 +multilib_src_install() {
131 + emake \
132 + DESTDIR="${D}" \
133 + EXAMPLEDIR="${EPREFIX}/usr/share/doc/${PF}/examples" \
134 + install
135 +}
136 +
137 +multilib_src_install_all() {
138 + # default database dir
139 + keepdir /var/lib/krb5kdc
140 +
141 + cd ..
142 + dodoc README
143 +
144 + if use doc; then
145 + dohtml -r doc/html/*
146 + docinto pdf
147 + dodoc doc/pdf/*.pdf
148 + fi
149 +
150 + newinitd "${FILESDIR}"/mit-krb5kadmind.initd-r2 mit-krb5kadmind
151 + newinitd "${FILESDIR}"/mit-krb5kdc.initd-r2 mit-krb5kdc
152 + newinitd "${FILESDIR}"/mit-krb5kpropd.initd-r2 mit-krb5kpropd
153 + newconfd "${FILESDIR}"/mit-krb5kadmind.confd mit-krb5kadmind
154 + newconfd "${FILESDIR}"/mit-krb5kdc.confd mit-krb5kdc
155 + newconfd "${FILESDIR}"/mit-krb5kpropd.confd mit-krb5kpropd
156 +
157 + insinto /etc
158 + newins "${ED}/usr/share/doc/${PF}/examples/krb5.conf" krb5.conf.example
159 + insinto /var/lib/krb5kdc
160 + newins "${ED}/usr/share/doc/${PF}/examples/kdc.conf" kdc.conf.example
161 +
162 + if use openldap ; then
163 + insinto /etc/openldap/schema
164 + doins "${S}/plugins/kdb/ldap/libkdb_ldap/kerberos.schema"
165 + fi
166 +
167 + if use xinetd ; then
168 + insinto /etc/xinetd.d
169 + newins "${FILESDIR}/kpropd.xinetd" kpropd
170 + fi
171 +}
172 +
173 +pkg_preinst() {
174 + if has_version "<${CATEGORY}/${PN}-1.8.0" ; then
175 + elog "MIT split the Kerberos applications from the base Kerberos"
176 + elog "distribution. Kerberized versions of telnet, rlogin, rsh, rcp,"
177 + elog "ftp clients and telnet, ftp deamons now live in"
178 + elog "\"app-crypt/mit-krb5-appl\" package."
179 + fi
180 +}