/[gentoo-x86]/app-crypt/mit-krb5/mit-krb5-1.5.3-r1.ebuild
Gentoo

Contents of /app-crypt/mit-krb5/mit-krb5-1.5.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Sep 7 09:47:20 2007 UTC (6 years, 7 months ago) by jer
Branch: MAIN
Changes since 1.1: +2 -2 lines
Stable for HPPA (bug #191301).
(Portage version: 2.1.3.7)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.5.3-r1.ebuild,v 1.1 2007/09/07 06:27:33 seemant Exp $
4
5 inherit eutils flag-o-matic versionator autotools
6
7 PATCHV="0.2"
8 MY_P=${P/mit-}
9 P_DIR=$(get_version_component_range 1-2)
10 S=${WORKDIR}/${MY_P}/src
11 DESCRIPTION="MIT Kerberos V"
12 HOMEPAGE="http://web.mit.edu/kerberos/www/"
13 SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}-signed.tar
14 http://dev.gentoo.org/~seemant/distfiles/${P}-patches-${PATCHV}.tar.bz2
15 mirror://gentoo/${P}-patches-${PATCHV}.tar.bz2"
16
17 PATCHDIR="${WORKDIR}/patch"
18
19 LICENSE="as-is"
20 SLOT="0"
21 KEYWORDS="~alpha ~amd64 ~arm hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
22 IUSE="krb4 tcl ipv6 doc"
23
24 RDEPEND="!virtual/krb5
25 sys-libs/com_err
26 sys-libs/ss
27 tcl? ( dev-lang/tcl )"
28 DEPEND="${RDEPEND}
29 doc? ( virtual/tetex )"
30 PROVIDE="virtual/krb5"
31
32 src_unpack() {
33 unpack ${A}
34 unpack ./${MY_P}.tar.gz
35 cd "${S}"
36 epatch "${FILESDIR}"/${PN}-lazyldflags.patch
37 EPATCH_SUFFIX="patch" epatch "${PATCHDIR}"
38 ebegin "Reconfiguring configure scripts (be patient)"
39 cd "${S}"/appl/telnet
40 eautoconf --force -I "${S}"
41 eend $?
42 }
43
44 src_compile() {
45 econf \
46 $(use_with krb4) \
47 $(use_with tcl) \
48 $(use_enable ipv6) \
49 --enable-shared \
50 --with-system-et --with-system-ss \
51 --enable-dns-for-realm \
52 --enable-kdc-replay-cache || die
53
54 emake -j1 || die
55
56 if use doc ; then
57 cd ../doc
58 for dir in api implement ; do
59 make -C ${dir} || die
60 done
61 fi
62 }
63
64 src_test() {
65 einfo "Testing is being debugged, disabled for now"
66 }
67
68 src_install() {
69 emake \
70 DESTDIR="${D}" \
71 EXAMPLEDIR=/usr/share/doc/${PF}/examples \
72 install || die
73
74 keepdir /var/lib/krb5kdc
75
76 cd ..
77 dodoc README
78 dodoc doc/*.ps
79 doinfo doc/*.info*
80 dohtml -r doc/*
81
82 use doc && dodoc doc/{api,implement}/*.ps
83
84 for i in {telnetd,ftpd} ; do
85 mv "${D}"/usr/share/man/man8/${i}.8 "${D}"/usr/share/man/man8/k${i}.8
86 mv "${D}"/usr/sbin/${i} "${D}"/usr/sbin/k${i}
87 done
88
89 for i in {rcp,rlogin,rsh,telnet,ftp} ; do
90 mv "${D}"/usr/share/man/man1/${i}.1 "${D}"/usr/share/man/man1/k${i}.1
91 mv "${D}"/usr/bin/${i} "${D}"/usr/bin/k${i}
92 done
93
94 newinitd "${FILESDIR}"/mit-krb5kadmind.initd mit-krb5kadmind
95 newinitd "${FILESDIR}"/mit-krb5kdc.initd mit-krb5kdc
96
97 insinto /etc
98 newins ${D}/usr/share/doc/${PF}/examples/krb5.conf krb5.conf.example
99 newins ${D}/usr/share/doc/${PF}/examples/kdc.conf kdc.conf.example
100 }
101
102 pkg_postinst() {
103 elog "See /usr/share/doc/${PF}/html/krb5-admin/index.html for documentation."
104 }

  ViewVC Help
Powered by ViewVC 1.1.20