1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils pam toolchain-funcs fcaps
9 DESCRIPTION="Netkit's Remote Shell Suite: rexec{,d} rlogin{,d} rsh{,d}"
10 HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
11 SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz
12 mirror://gentoo/rexec-1.5.tar.gz
13 mirror://gentoo/${P}-patches-${PATCHVER}.tar.lzma"
17 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux"
20 RDEPEND=">=sys-libs/ncurses-5.2
21 pam? ( >=sys-auth/pambase-20080219.1 )"
26 cap_net_bind_service usr/bin/r{cp,login,sh}
38 [[ -n ${PATCHVER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
40 if tc-is-cross-compiler ; then
41 # Can't do runtime tests when cross-compiling
42 sed -i -e "s|./__conftest|: ./__conftest|" configure
48 ${CONFIG_SHELL:-/bin/sh} ./configure $(usex pam '' '--without-pam') || die
51 -e "s:-pipe -O2:${CFLAGS}:" \
53 -e "s:-Wpointer-arith::" \
60 for b in rcp rexec{,d} rlogin{,d} rsh{,d} ; do
61 if [[ ${b} == *d ]] ; then
63 dosym ${b} /usr/sbin/in.${b}
68 if [[ ${b} != "rcp" ]]; then
69 newins "${FILESDIR}"/${b}.xinetd ${b}
70 newpamd "${FILESDIR}/${b}.pamd-pambase" ${b}
74 dodoc README ChangeLog BUGS
75 newdoc rexec/README README.rexec