/[gentoo-x86]/net-misc/netkit-rsh/netkit-rsh-0.17-r8.ebuild
Gentoo

Contents of /net-misc/netkit-rsh/netkit-rsh-0.17-r8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sun Jun 21 17:31:02 2009 UTC (10 years, 2 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Remove old version (drops ~x86-fbsd!), fix rhost_auth references (bug #233242).
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-rsh/netkit-rsh-0.17-r8.ebuild,v 1.12 2008/12/20 11:00:28 pva Exp $
4
5 inherit eutils pam toolchain-funcs
6
7 PATCHVER="1.0"
8 DESCRIPTION="Netkit's Remote Shell Suite: rexec{,d} rlogin{,d} rsh{,d}"
9 HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
10 SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz
11 mirror://gentoo/rexec-1.5.tar.gz
12 mirror://gentoo/${P}-patches-${PATCHVER}.tar.bz2"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
17 IUSE="pam"
18
19 DEPEND=">=sys-libs/ncurses-5.2
20 pam? ( virtual/pam )"
21
22 src_unpack() {
23 unpack ${A}
24
25 cd "${S}"
26 rm -rf rexec
27 mv ../rexec rexec
28
29 if [[ -n ${PATCHVER} ]] ; then
30 EPATCH_SUFFIX="patch"
31 epatch "${WORKDIR}"/patch
32 fi
33
34 if tc-is-cross-compiler ; then
35 # Can't do runtime tests when cross-compiling
36 sed -i -e "s|./__conftest|: ./__conftest|" configure
37 fi
38 }
39
40 src_compile() {
41 local myconf
42 use pam || myconf="--without-pam"
43 tc-export CC
44 ./configure ${myconf} || die
45
46 sed -i \
47 -e "s:-pipe -O2:${CFLAGS}:" \
48 -e "/^LDFLAGS=$/d" \
49 -e "s:-Wpointer-arith::" \
50 MCONFIG || die "could not sed MCONFIG"
51 emake || die
52 }
53
54 src_install() {
55 local b exe
56 insinto /etc/xinetd.d
57 for b in rcp rexec{,d} rlogin{,d} rsh{,d} ; do
58 if [[ ${b:0-1} == "d" ]] ; then
59 dosbin ${b}/${b} || die "dosbin ${b} failed"
60 dosym ${b} /usr/sbin/in.${b}
61 doman ${b}/${b}.8
62 else
63 dobin ${b}/${b} || die "dobin ${b} failed"
64 doman ${b}/${b}.1
65 [[ ${b} != "rexec" ]] \
66 && fperms 4711 /usr/bin/${b}
67 if [[ ${b} != "rcp" ]]; then
68 newins "${FILESDIR}"/${b}.xinetd ${b}
69 newpamd "${FILESDIR}/${b}.pamd-include" ${b}
70 fi
71 fi
72 done
73 dodoc README ChangeLog BUGS
74 newdoc rexec/README README.rexec
75 }

  ViewVC Help
Powered by ViewVC 1.1.20