/[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.13 - (hide annotations) (download)
Mon Dec 22 20:33:25 2008 UTC (10 years, 9 months ago) by maekke
Branch: MAIN
Changes since 1.12: +2 -2 lines
amd64/x86 stable, bug #250892
(Portage version: 2.1.6.2/cvs/Linux 2.6.27.10 x86_64)

1 flameeyes 1.1 # Copyright 1999-2008 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 maekke 1.13 # $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-rsh/netkit-rsh-0.17-r9.ebuild,v 1.12 2008/12/20 11:00:28 pva Exp $
4 flameeyes 1.1
5     inherit eutils pam toolchain-funcs
6    
7 vapier 1.11 PATCHVER="2"
8 flameeyes 1.1 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 vapier 1.11 mirror://gentoo/${P}-patches-${PATCHVER}.tar.lzma"
13 flameeyes 1.1
14     LICENSE="BSD"
15     SLOT="0"
16 maekke 1.13 KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86"
17 flameeyes 1.1 IUSE="pam"
18    
19 vapier 1.11 RDEPEND=">=sys-libs/ncurses-5.2
20 flameeyes 1.2 pam? ( >=sys-auth/pambase-20080219.1 )"
21 vapier 1.11 DEPEND="${RDEPEND}
22     app-arch/lzma-utils"
23 flameeyes 1.1
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