Gentoo Archives: gentoo-commits

From: "Eray Aslan (eras)" <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/heimdal: ChangeLog heimdal-1.5.1-r1.ebuild
Date: Tue, 27 Dec 2011 21:15:20
Message-Id: 20111227211510.D7FDD2004B@flycatcher.gentoo.org
1 eras 11/12/27 21:15:10
2
3 Modified: ChangeLog
4 Added: heimdal-1.5.1-r1.ebuild
5 Log:
6 security bump - bug #396105
7
8 (Portage version: 2.1.10.43/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.182 app-crypt/heimdal/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/heimdal/ChangeLog?rev=1.182&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/heimdal/ChangeLog?rev=1.182&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/heimdal/ChangeLog?r1=1.181&r2=1.182
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-crypt/heimdal/ChangeLog,v
20 retrieving revision 1.181
21 retrieving revision 1.182
22 diff -u -r1.181 -r1.182
23 --- ChangeLog 28 Nov 2011 10:05:08 -0000 1.181
24 +++ ChangeLog 27 Dec 2011 21:15:10 -0000 1.182
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-crypt/heimdal
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/heimdal/ChangeLog,v 1.181 2011/11/28 10:05:08 eras Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/heimdal/ChangeLog,v 1.182 2011/12/27 21:15:10 eras Exp $
30 +
31 +*heimdal-1.5.1-r1 (27 Dec 2011)
32 +
33 + 27 Dec 2011; Eray Aslan <eras@g.o> +heimdal-1.5.1-r1.ebuild,
34 + +files/CVE-2011-4862.patch, +files/heimdal_missing-include.patch:
35 + security bump - bug #396105
36
37 28 Nov 2011; Eray Aslan <eras@g.o> heimdal-1.5.1.ebuild:
38 Drop autotools-utils - bug #392081
39
40
41
42 1.1 app-crypt/heimdal/heimdal-1.5.1-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/heimdal/heimdal-1.5.1-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/heimdal/heimdal-1.5.1-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: heimdal-1.5.1-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-crypt/heimdal/heimdal-1.5.1-r1.ebuild,v 1.1 2011/12/27 21:15:10 eras Exp $
52
53 EAPI=2
54 # PYTHON_BDEPEND="2"
55 VIRTUALX_REQUIRED="manual"
56
57 inherit autotools db-use eutils libtool python toolchain-funcs virtualx flag-o-matic
58
59 MY_P="${P}"
60 DESCRIPTION="Kerberos 5 implementation from KTH"
61 HOMEPAGE="http://www.h5l.org/"
62 SRC_URI="http://www.h5l.org/dist/src/${MY_P}.tar.gz"
63
64 LICENSE="BSD"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
67 IUSE="afs +berkdb caps hdb-ldap ipv6 otp +pkinit ssl static-libs threads test X"
68
69 RDEPEND="ssl? ( dev-libs/openssl )
70 berkdb? ( sys-libs/db )
71 !berkdb? ( sys-libs/gdbm )
72 caps? ( sys-libs/libcap-ng )
73 >=dev-db/sqlite-3.5.7
74 >=sys-libs/e2fsprogs-libs-1.41.11
75 afs? ( net-fs/openafs )
76 hdb-ldap? ( >=net-nds/openldap-2.3.0 )
77 !!app-crypt/mit-krb5"
78
79 DEPEND="${RDEPEND}
80 =dev-lang/python-2*
81 dev-util/pkgconfig
82 >=sys-devel/autoconf-2.62
83 test? ( X? ( ${VIRTUALX_DEPEND} ) )"
84
85 pkg_setup() {
86 python_set_active_version 2
87 python_pkg_setup
88 }
89
90 src_prepare() {
91 epatch "${FILESDIR}/heimdal_missing-include.patch"
92 epatch "${FILESDIR}/CVE-2011-4862.patch"
93 epatch "${FILESDIR}/heimdal_db5.patch"
94 epatch "${FILESDIR}/heimdal_disable-check-iprop.patch"
95 epatch "${FILESDIR}/heimdal_link_order.patch"
96 eautoreconf
97 }
98
99 src_configure() {
100 # QA
101 append-flags -fno-strict-aliasing
102
103 local myconf=""
104 if use berkdb; then
105 myconf="--with-berkeley-db --with-berkeley-db-include=$(db_includedir)"
106 else
107 myconf="--without-berkeley-db"
108 fi
109 econf \
110 --enable-kcm \
111 --disable-osfc2 \
112 --enable-shared \
113 --with-libintl=/usr \
114 --with-readline=/usr \
115 --with-sqlite3=/usr \
116 --libexecdir=/usr/sbin \
117 $(use_enable afs afs-support) \
118 $(use_enable otp) \
119 $(use_enable pkinit kx509) \
120 $(use_enable pkinit pk-init) \
121 $(use_enable static-libs static) \
122 $(use_enable threads pthread-support) \
123 $(use_with caps capng) \
124 $(use_with hdb-ldap openldap /usr) \
125 $(use_with ipv6) \
126 $(use_with ssl openssl /usr) \
127 $(use_with X x) \
128 ${myconf}
129 }
130
131 src_compile() {
132 emake -j1 || die "emake failed"
133 }
134
135 src_install() {
136 INSTALL_CATPAGES="no" emake DESTDIR="${D}" install || die "emake install failed"
137
138 dodoc ChangeLog README NEWS TODO
139
140 # Begin client rename and install
141 for i in {telnetd,ftpd,rshd,popper}
142 do
143 mv "${D}"/usr/share/man/man8/{,k}${i}.8
144 mv "${D}"/usr/sbin/{,k}${i}
145 done
146
147 for i in {rcp,rsh,telnet,ftp,su,login,pagsh,kf}
148 do
149 mv "${D}"/usr/share/man/man1/{,k}${i}.1
150 mv "${D}"/usr/bin/{,k}${i}
151 done
152
153 mv "${D}"/usr/share/man/man5/{,k}ftpusers.5
154 mv "${D}"/usr/share/man/man5/{,k}login.access.5
155
156 newinitd "${FILESDIR}"/heimdal-kdc.initd-r1 heimdal-kdc
157 newinitd "${FILESDIR}"/heimdal-kadmind.initd-r1 heimdal-kadmind
158 newinitd "${FILESDIR}"/heimdal-kpasswdd.initd-r1 heimdal-kpasswdd
159 newinitd "${FILESDIR}"/heimdal-kcm.initd-r1 heimdal-kcm
160
161 newconfd "${FILESDIR}"/heimdal-kdc.confd heimdal-kdc
162 newconfd "${FILESDIR}"/heimdal-kadmind.confd heimdal-kadmind
163 newconfd "${FILESDIR}"/heimdal-kpasswdd.confd heimdal-kpasswdd
164 newconfd "${FILESDIR}"/heimdal-kcm.confd heimdal-kcm
165
166 insinto /etc
167 newins "${FILESDIR}"/krb5.conf krb5.conf.example
168
169 if use hdb-ldap; then
170 insinto /etc/openldap/schema
171 doins "${S}/lib/hdb/hdb.schema"
172 fi
173
174 use static-libs || find "${D}"/usr/lib* -name '*.la' -delete
175
176 # default database dir
177 keepdir /var/heimdal
178 }
179
180 pkg_preinst() {
181 preserve_old_lib /usr/$(get_libdir)/libgssapi.so.2
182 }
183
184 pkg_postinst() {
185 preserve_old_lib_notify /usr/$(get_libdir)/libgssapi.so.2
186 }