/[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.11 - (show annotations) (download)
Mon Jun 16 21:09:13 2008 UTC (11 years, 4 months ago) by vapier
Branch: MAIN
Changes since 1.10: +6 -4 lines
Fix building when ARG_MAX is not defined #225341 by Tobias Scherbaum.
(Portage version: 2.2_pre8/cvs/Linux 2.6.25 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-r9.ebuild,v 1.10 2008/06/16 20:40:06 vapier Exp $
4
5 inherit eutils pam toolchain-funcs
6
7 PATCHVER="2"
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.lzma"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
17 IUSE="pam"
18
19 RDEPEND=">=sys-libs/ncurses-5.2
20 pam? ( >=sys-auth/pambase-20080219.1 )"
21 DEPEND="${RDEPEND}
22 app-arch/lzma-utils"
23
24 src_unpack() {
25 unpack ${A}
26
27 cd "${S}"
28 rm -rf rexec
29 mv ../rexec rexec
30
31 if [[ -n ${PATCHVER} ]] ; then
32 EPATCH_SUFFIX="patch"
33 epatch "${WORKDIR}"/patch
34 fi
35
36 if tc-is-cross-compiler ; then
37 # Can't do runtime tests when cross-compiling
38 sed -i -e "s|./__conftest|: ./__conftest|" configure
39 fi
40 }
41
42 src_compile() {
43 local myconf
44 use pam || myconf="--without-pam"
45 tc-export CC
46 ./configure ${myconf} || die
47
48 sed -i \
49 -e "s:-pipe -O2:${CFLAGS}:" \
50 -e "/^LDFLAGS=$/d" \
51 -e "s:-Wpointer-arith::" \
52 MCONFIG || die "could not sed MCONFIG"
53 emake || die
54 }
55
56 src_install() {
57 local b exe
58 insinto /etc/xinetd.d
59 for b in rcp rexec{,d} rlogin{,d} rsh{,d} ; do
60 if [[ ${b:0-1} == "d" ]] ; then
61 dosbin ${b}/${b} || die "dosbin ${b} failed"
62 dosym ${b} /usr/sbin/in.${b}
63 doman ${b}/${b}.8
64 else
65 dobin ${b}/${b} || die "dobin ${b} failed"
66 doman ${b}/${b}.1
67 [[ ${b} != "rexec" ]] \
68 && fperms 4711 /usr/bin/${b}
69 if [[ ${b} != "rcp" ]]; then
70 newins "${FILESDIR}"/${b}.xinetd ${b}
71 newpamd "${FILESDIR}/${b}.pamd-pambase" ${b}
72 fi
73 fi
74 done
75 dodoc README ChangeLog BUGS
76 newdoc rexec/README README.rexec
77 }

  ViewVC Help
Powered by ViewVC 1.1.20