summaryrefslogtreecommitdiff
blob: 2607779746507720606c969fecfa6a71063be14e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/krb5/krb5-1.2.6.ebuild,v 1.4 2003/02/13 06:23:10 vapier Exp $

SRC_URI="http://www.crypto-publish.org/dist/mit-kerberos5/${P}.tar.gz"
DESCRIPTION="MIT Kerberos V (set up for pam)"
HOMEPAGE="http://web.mit.edu/kerberos/www/"

IUSE="doc"
SLOT="0"
LICENSE="as-is"
KEYWORDS="x86 sparc "

S=${WORKDIR}/${P}/src

src_unpack() {
	unpack ${A}
	cd ${S}

	patch -p0 < ${FILESDIR}/${PN}-1.2.2-gentoo.diff || die

	cd ${S}/kadmin/v4server/
	patch -p0 < ${FILESDIR}/${PF}-gentoo.diff || die
}

src_compile() {
	econf \
		--with-krb4 \
		--enable-shared \
		--enable-dns
	mv Makefile Makefile.orig
	#Don't install the ftp, telnet, r* apps; use pam instead
	sed -e 's/ appl / /' Makefile.orig > Makefile
	make || die
}

src_install() {
	make DESTDIR=${D} install || die
	cd ..
	dodoc README
}

pkg_postinst() {
	einfo "ftp, telnet, r* apps not installed.  Install pam-krb5!"
}