/[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.20 - (hide annotations) (download)
Thu Mar 8 11:14:24 2012 UTC (7 years, 7 months ago) by naota
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +4 -4 lines
Bump patch version. #328081

(Portage version: 2.2.0_alpha75/cvs/FreeBSD i386)

1 naota 1.20 # Copyright 1999-2012 Gentoo Foundation
2 flameeyes 1.1 # Distributed under the terms of the GNU General Public License v2
3 naota 1.20 # $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-rsh/netkit-rsh-0.17-r9.ebuild,v 1.19 2009/09/10 15:37:23 ssuominen Exp $
4 flameeyes 1.1
5     inherit eutils pam toolchain-funcs
6    
7 naota 1.20 PATCHVER="3"
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 naota 1.20 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
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 ssuominen 1.19 || ( app-arch/xz-utils 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