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/heimdal/
Date: Tue, 12 Dec 2017 09:10:37
Message-Id: 1513069811.a094422a61fc7d1bf9271edc4905f9ca27918bcc.eras@gentoo
1 commit: a094422a61fc7d1bf9271edc4905f9ca27918bcc
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 12 09:10:11 2017 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 12 09:10:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a094422a
7
8 app-crypt/heimdal: security bump - bug 640808
9
10 Package-Manager: Portage-2.3.18, Repoman-2.3.6
11
12 app-crypt/heimdal/Manifest | 1 +
13 app-crypt/heimdal/heimdal-7.5.0.ebuild | 175 +++++++++++++++++++++++++++++++++
14 2 files changed, 176 insertions(+)
15
16 diff --git a/app-crypt/heimdal/Manifest b/app-crypt/heimdal/Manifest
17 index 85332da45ee..7946c1e872d 100644
18 --- a/app-crypt/heimdal/Manifest
19 +++ b/app-crypt/heimdal/Manifest
20 @@ -1 +1,2 @@
21 DIST heimdal-7.4.0.tar.gz 9928553 BLAKE2B e43215a82d603bf69d3ac22ffbf0b0b7995fdaa9c2d0c1a5ac2d145a5fbed653b9b021caae5af1955323760afcd0ec2083b94d1c32f07486c7368ab03172a9bd SHA512 3bb83974180e0f6fe2e1b2a11c51cf136c9a64f13f9ed7592f0039ccccd03c1a22081b7d88ae631f94cf46589ed399b79666eb814104f915faa70b53749863a7
22 +DIST heimdal-7.5.0.tar.gz 10071281 BLAKE2B 917f5855248c333e5ec35bf992973d8b5fb84581b9c3bc8d42c328e5f878ce24c5596c5a1e3fbca786a71be04984068efbb817f7336135056d1feae38895758f SHA512 6d1ad77e795df786680b5e68e2bfefee27bd0207eab507295d7af7053135de9c9ebb517d2c0235bc3a7d50945e18044515f0d76c0899b6b74aa839f1f3e5b131
23
24 diff --git a/app-crypt/heimdal/heimdal-7.5.0.ebuild b/app-crypt/heimdal/heimdal-7.5.0.ebuild
25 new file mode 100644
26 index 00000000000..5aa24ddb663
27 --- /dev/null
28 +++ b/app-crypt/heimdal/heimdal-7.5.0.ebuild
29 @@ -0,0 +1,175 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
35 +VIRTUALX_REQUIRED="manual"
36 +
37 +inherit autotools db-use eutils multilib multilib-minimal python-any-r1 virtualx flag-o-matic
38 +
39 +MY_P="${P}"
40 +DESCRIPTION="Kerberos 5 implementation from KTH"
41 +HOMEPAGE="http://www.h5l.org/"
42 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
47 +IUSE="afs +berkdb caps hdb-ldap ipv6 libressl otp +pkinit selinux ssl static-libs test X"
48 +
49 +CDEPEND="
50 + ssl? (
51 + !libressl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
52 + libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
53 + )
54 + berkdb? ( >=sys-libs/db-4.8.30-r1:*[${MULTILIB_USEDEP}] )
55 + !berkdb? ( >=sys-libs/gdbm-1.10-r1[${MULTILIB_USEDEP}] )
56 + caps? ( sys-libs/libcap-ng )
57 + >=dev-db/sqlite-3.8.2[${MULTILIB_USEDEP}]
58 + >=sys-libs/e2fsprogs-libs-1.42.9[${MULTILIB_USEDEP}]
59 + sys-libs/ncurses:0=
60 + >=sys-libs/readline-6.2_p5-r1:0=[${MULTILIB_USEDEP}]
61 + afs? ( net-fs/openafs )
62 + hdb-ldap? ( >=net-nds/openldap-2.3.0 )
63 + X? ( x11-libs/libX11
64 + x11-libs/libXau
65 + x11-libs/libXt )
66 + abi_x86_32? (
67 + !<=app-emulation/emul-linux-x86-baselibs-20140508-r1
68 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
69 + )
70 + !!app-crypt/mit-krb5
71 + !!app-crypt/mit-krb5-appl"
72 +
73 +DEPEND="${CDEPEND}
74 + ${PYTHON_DEPS}
75 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
76 + >=sys-devel/autoconf-2.62
77 + test? ( X? ( ${VIRTUALX_DEPEND} ) )"
78 +
79 +RDEPEND="${CDEPEND}
80 + selinux? ( sec-policy/selinux-kerberos )"
81 +
82 +MULTILIB_WRAPPED_HEADERS=(
83 + /usr/include/krb5-types.h
84 + /usr/include/cms_asn1.h
85 + /usr/include/digest_asn1.h
86 + /usr/include/hdb_asn1.h
87 + /usr/include/krb5_asn1.h
88 + /usr/include/pkcs12_asn1.h
89 + /usr/include/pkinit_asn1.h
90 + /usr/include/rfc2459_asn1.h
91 +)
92 +
93 +MULTILIB_CHOST_TOOLS=(
94 + /usr/bin/krb5-config
95 +)
96 +
97 +src_prepare() {
98 + eapply "${FILESDIR}/heimdal_disable-check-iprop.patch"
99 + eapply "${FILESDIR}/heimdal_tinfo.patch"
100 + eautoreconf
101 + eapply_user
102 +}
103 +
104 +src_configure() {
105 + # QA
106 + append-flags -fno-strict-aliasing
107 +
108 + multilib-minimal_src_configure
109 +}
110 +
111 +multilib_src_configure() {
112 + local myconf=()
113 + if use berkdb; then
114 + myconf+=(
115 + --with-berkeley-db
116 + --with-berkeley-db-include="$(db_includedir)"
117 + )
118 + else
119 + myconf+=(
120 + --without-berkeley-db
121 + )
122 + fi
123 +
124 + ECONF_SOURCE=${S} \
125 + econf \
126 + --enable-kcm \
127 + --disable-osfc2 \
128 + --enable-shared \
129 + --with-libintl=/usr \
130 + --with-readline=/usr \
131 + --with-sqlite3=/usr \
132 + --libexecdir=/usr/sbin \
133 + --enable-pthread-support \
134 + $(use_enable afs afs-support) \
135 + $(use_enable otp) \
136 + $(use_enable pkinit kx509) \
137 + $(use_enable pkinit pk-init) \
138 + $(use_enable static-libs static) \
139 + $(multilib_native_use_with caps capng) \
140 + $(multilib_native_use_with hdb-ldap openldap /usr) \
141 + $(use_with ipv6) \
142 + $(use_with ssl openssl /usr) \
143 + $(multilib_native_use_with X x) \
144 + "${myconf[@]}"
145 +}
146 +
147 +multilib_src_compile() {
148 + if multilib_is_native_abi; then
149 + emake -j1
150 + else
151 + emake -C include -j1
152 + emake -C lib -j1
153 + emake -C kdc -j1
154 + emake -C tools -j1
155 + emake -C tests/plugin -j1
156 + fi
157 +}
158 +
159 +multilib_src_test() {
160 + multilib_is_native_abi && emake -j1 check
161 +}
162 +
163 +multilib_src_install() {
164 + if multilib_is_native_abi; then
165 + INSTALL_CATPAGES="no" emake DESTDIR="${D}" install
166 + else
167 + emake -C include DESTDIR="${D}" install
168 + emake -C lib DESTDIR="${D}" install
169 + emake -C kdc DESTDIR="${D}" install
170 + emake -C tools DESTDIR="${D}" install
171 + emake -C tests/plugin DESTDIR="${D}" install
172 + fi
173 +}
174 +
175 +multilib_src_install_all() {
176 + dodoc ChangeLog* README NEWS TODO
177 +
178 + # client rename
179 + mv "${D}"/usr/share/man/man1/{,k}su.1
180 + mv "${D}"/usr/bin/{,k}su
181 +
182 + newinitd "${FILESDIR}"/heimdal-kdc.initd-r2 heimdal-kdc
183 + newinitd "${FILESDIR}"/heimdal-kadmind.initd-r2 heimdal-kadmind
184 + newinitd "${FILESDIR}"/heimdal-kpasswdd.initd-r2 heimdal-kpasswdd
185 + newinitd "${FILESDIR}"/heimdal-kcm.initd-r1 heimdal-kcm
186 +
187 + newconfd "${FILESDIR}"/heimdal-kdc.confd heimdal-kdc
188 + newconfd "${FILESDIR}"/heimdal-kadmind.confd heimdal-kadmind
189 + newconfd "${FILESDIR}"/heimdal-kpasswdd.confd heimdal-kpasswdd
190 + newconfd "${FILESDIR}"/heimdal-kcm.confd heimdal-kcm
191 +
192 + insinto /etc
193 + newins "${S}"/krb5.conf krb5.conf.example
194 +
195 + if use hdb-ldap; then
196 + insinto /etc/openldap/schema
197 + doins "${S}/lib/hdb/hdb.schema"
198 + fi
199 +
200 + prune_libtool_files
201 +
202 + # default database dir
203 + keepdir /var/heimdal
204 +}