Gentoo Archives: gentoo-commits

From: "Michael Hammer (mueli)" <mueli@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/heimdal: ChangeLog heimdal-1.2.1-r2.ebuild
Date: Mon, 26 Jan 2009 15:51:40
Message-Id: E1LRTW7-0006rt-2u@stork.gentoo.org
1 mueli 09/01/26 15:36:51
2
3 Modified: ChangeLog
4 Added: heimdal-1.2.1-r2.ebuild
5 Log:
6 fixed big #255385
7 (Portage version: 2.1.6.7/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.133 app-crypt/heimdal/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/heimdal/ChangeLog?rev=1.133&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/heimdal/ChangeLog?rev=1.133&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/heimdal/ChangeLog?r1=1.132&r2=1.133
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-crypt/heimdal/ChangeLog,v
19 retrieving revision 1.132
20 retrieving revision 1.133
21 diff -u -r1.132 -r1.133
22 --- ChangeLog 24 Jan 2009 12:18:21 -0000 1.132
23 +++ ChangeLog 26 Jan 2009 15:36:50 -0000 1.133
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-crypt/heimdal
26 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/heimdal/ChangeLog,v 1.132 2009/01/24 12:18:21 nixnut Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/heimdal/ChangeLog,v 1.133 2009/01/26 15:36:50 mueli Exp $
29 +
30 +*heimdal-1.2.1-r2 (26 Jan 2009)
31 +
32 + 26 Jan 2009; Michael Hammer <mueli@g.o> +heimdal-1.2.1-r2.ebuild:
33 + fixed collision described in bug #255385 in heimdal-1.2.1-r2 - removed
34 + testing warning for heimdal, should be stable now
35
36 24 Jan 2009; nixnut <nixnut@g.o> heimdal-1.2.1-r1.ebuild:
37 ppc stable #244707
38
39
40
41 1.1 app-crypt/heimdal/heimdal-1.2.1-r2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/heimdal/heimdal-1.2.1-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/heimdal/heimdal-1.2.1-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: heimdal-1.2.1-r2.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-crypt/heimdal/heimdal-1.2.1-r2.ebuild,v 1.1 2009/01/26 15:36:50 mueli Exp $
51
52 WANT_AUTOMAKE=latest
53 WANT_AUTOCONF=latest
54
55 inherit autotools libtool eutils virtualx toolchain-funcs flag-o-matic
56
57 EAPI=1
58 PATCHVER=0.2
59 PATCH_P=${PN}-gentoo-patches-${PATCHVER}
60 RESTRICT="test"
61
62 DESCRIPTION="Kerberos 5 implementation from KTH"
63 HOMEPAGE="http://www.h5l.org/"
64 SRC_URI="http://www.h5l.org/dist/src/${P}.tar.gz
65 mirror://gentoo/${PATCH_P}.tar.bz2"
66
67 LICENSE="BSD"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
70 IUSE="afs +berkdb hdb-ldap ipv6 otp pkinit ssl threads X"
71
72 RDEPEND="ssl? ( dev-libs/openssl )
73 berkdb? ( sys-libs/db )
74 !berkdb? ( sys-libs/gdbm )
75 >=dev-db/sqlite-3.5.7
76 || ( ( >sys-libs/e2fsprogs-libs-1.40.11 ) ( sys-libs/com_err sys-libs/ss ) )
77 afs? ( net-fs/openafs )
78 hdb-ldap? ( >=net-nds/openldap-2.3.0 )
79 !virtual/krb5"
80
81 DEPEND="${RDEPEND}
82 dev-util/pkgconfig
83 >=sys-devel/autoconf-2.62"
84 # >=sys-devel/libtool-2.2"
85
86 PROVIDE="virtual/krb5"
87
88 GENTOODIR=${WORKDIR}/gentoo
89 S=${WORKDIR}/${P}
90
91 src_unpack() {
92 unpack ${A}
93 cd "${S}"
94
95 EPATCH_SUFFIX="patch" epatch "${GENTOODIR}"/patches
96
97 epatch "${FILESDIR}"/${PN}-r23238-kb5_locl_h-wind_h.patch
98 epatch "${FILESDIR}"/${PN}-r23235-kb5-libwind_la.patch
99 epatch "${FILESDIR}"/${PN}-kdc-sans_pkinit.patch
100 epatch "${FILESDIR}"/${PN}-system_sqlite.patch
101 epatch "${FILESDIR}"/${PN}-symlinked-manpages.patch
102 epatch "${FILESDIR}"/${PN}-autoconf-ipv6-backport.patch
103
104 AT_M4DIR="cf" eautoreconf
105 }
106
107 src_compile() {
108 # needed to work with sys-libs/e2fsprogs-libs <- should be removed!!
109 append-flags "-I/usr/include/et"
110 econf \
111 $(use_with ipv6) \
112 $(use_enable berkdb berkeley-db) \
113 $(use_enable pkinit pk-init) \
114 $(use_with ssl openssl /usr) \
115 $(use_with X x) \
116 $(use_enable threads pthread-support) \
117 $(use_enable otp) \
118 $(use_enable afs afs-support) \
119 $(use_with hdb-ldap openldap /usr) \
120 --disable-osfc2 \
121 --enable-kcm \
122 --enable-shared \
123 --disable-netinfo \
124 --prefix=/usr \
125 --libexecdir=/usr/sbin || die "econf failed"
126
127 local ltversion=`libtool --version |grep 'GNU libtool' |sed -e's/^.*(GNU libtool) \([0-9]\+\.[0-9]\+\(\.[0-9]\+\)\+\) .*$/\1/'`
128 local ltmajor=`echo $ltversion |sed -e's/^\([0-9]\+\)\..*$/\1/'`
129 local ltminor=`echo $ltversion |sed -e's/^[0-9]\+\.\([0-9]\+\)\..*$/\1/'`
130 if [ $ltmajor -lt 2 ] || ( [ $ltmajor -eq 2 ] && [ $ltminor -lt 2 ] ); then
131 ewarn "Using old libtool with a quick hack."
132 sed -i -e's/ECHO=/echo=/' libtool
133 fi
134
135 emake || die "emake failed"
136 }
137
138 src_test() {
139 addpredict /proc/fs/openafs/afs_ioctl
140 addpredict /proc/fs/nnpfs/afs_ioctl
141
142 if use X ; then
143 KRB5_CONFIG="${S}"/krb5.conf Xmake check || die
144 else
145 KRB5_CONFIG="${S}"/krb5.conf make check || die
146 fi
147 }
148
149 src_install() {
150 INSTALL_CATPAGES="no" emake DESTDIR="${D}" install || die "emake install failed"
151
152 dodoc ChangeLog README NEWS TODO
153
154 # Begin client rename and install
155 for i in {telnetd,ftpd,rshd,popper}
156 do
157 mv "${D}"/usr/share/man/man8/{,k}${i}.8
158 mv "${D}"/usr/sbin/{,k}${i}
159 done
160
161 for i in {rcp,rsh,telnet,ftp,su,login,pagsh,kf}
162 do
163 mv "${D}"/usr/share/man/man1/{,k}${i}.1
164 mv "${D}"/usr/bin/{,k}${i}
165 done
166
167 mv "${D}"/usr/share/man/man5/{,k}ftpusers.5
168 mv "${D}"/usr/share/man/man5/{,k}login.access.5
169 mv "${D}"/usr/share/man/man3/{,k}editline.3
170
171 doinitd "${GENTOODIR}"/configs/heimdal-kdc
172 doinitd "${GENTOODIR}"/configs/heimdal-kadmind
173 doinitd "${GENTOODIR}"/configs/heimdal-kpasswdd
174 doinitd "${GENTOODIR}"/configs/heimdal-kcm
175
176 insinto /etc
177 newins "${GENTOODIR}"/configs/krb5.conf krb5.conf.example
178
179 sed -i "s:/lib:/$(get_libdir):" "${D}"/etc/krb5.conf.example || die "sed failed"
180
181 if use hdb-ldap; then
182 insinto /etc/openldap/schema
183 doins "${GENTOODIR}"/configs/krb5-kdc.schema
184 fi
185
186 # default database dir
187 keepdir /var/heimdal
188 }