1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils flag-o-matic toolchain-funcs versionator
9 MAJOR_MINOR="$( get_version_component_range 1-2 )"
10 DESCRIPTION="Kerberized applications split from the main MIT Kerberos V distribution"
11 HOMEPAGE="http://web.mit.edu/kerberos/www/"
12 SRC_URI="http://web.mit.edu/kerberos/dist/krb5-appl/${MAJOR_MINOR}/${MY_P}-signed.tar"
14 LICENSE="openafs-krb5-a BSD"
16 KEYWORDS="~alpha amd64 arm hppa ~ia64 m68k ~mips ppc ppc64 s390 sparc x86"
19 RDEPEND=">=app-crypt/mit-krb5-1.8.0
20 sys-libs/e2fsprogs-libs
29 unpack ./"${MY_P}".tar.gz
33 epatch "${FILESDIR}/${PN}-tinfo.patch"
34 epatch "${FILESDIR}/${PN}-sig_t.patch"
35 sed -i -e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" configure.ac
40 append-cppflags "-I/usr/include/et"
41 append-cppflags -fno-strict-aliasing
42 append-cppflags -fno-strict-overflow
47 emake DESTDIR="${D}" install
48 for i in {telnetd,ftpd} ; do
49 mv "${D}"/usr/share/man/man8/${i}.8 "${D}"/usr/share/man/man8/k${i}.8 \
50 || die "mv failed (man)"
51 mv "${D}"/usr/sbin/${i} "${D}"/usr/sbin/k${i} || die "mv failed"
54 for i in {rcp,rlogin,rsh,telnet,ftp} ; do
55 mv "${D}"/usr/share/man/man1/${i}.1 "${D}"/usr/share/man/man1/k${i}.1 \
56 || die "mv failed (man)"
57 mv "${D}"/usr/bin/${i} "${D}"/usr/bin/k${i} || die "mv failed"
60 rm "${D}"/usr/share/man/man1/tmac.doc