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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Feb 19 22:59:45 2008 UTC (11 years, 7 months ago) by flameeyes
Branch: MAIN
Add a new revision with pambase's system-remote-login as base stack.
(Portage version: 2.1.4.4)

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.11 2008/01/02 13:47:59 vapier 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=""
17 IUSE="pam"
18
19 DEPEND=">=sys-libs/ncurses-5.2
20 pam? ( >=sys-auth/pambase-20081902.1 )"
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-pambase" ${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