/[gentoo-x86]/net-misc/dropbear/dropbear-0.42.ebuild
Gentoo

Diff of /net-misc/dropbear/dropbear-0.42.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-misc/dropbear/Attic/dropbear-0.42.ebuild,v 1.2 2004/06/25 03:12:28 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/dropbear/Attic/dropbear-0.42.ebuild,v 1.3 2004/07/09 19:03:49 vapier Exp $
4 4
5DESCRIPTION="small SSH 2 server designed for small memory environments" 5DESCRIPTION="small SSH 2 server designed for small memory environments"
6HOMEPAGE="http://matt.ucc.asn.au/dropbear/" 6HOMEPAGE="http://matt.ucc.asn.au/dropbear/"
7SRC_URI="http://matt.ucc.asn.au/dropbear/releases/${P}.tar.bz2" 7SRC_URI="http://matt.ucc.asn.au/dropbear/releases/${P}.tar.bz2"
8 8
9LICENSE="MIT" 9LICENSE="MIT"
10SLOT="0" 10SLOT="0"
11KEYWORDS="x86 ppc mips arm" 11KEYWORDS="x86 ppc mips arm"
12IUSE="zlib" 12IUSE="zlib multicall static"
13 13
14DEPEND="zlib? ( sys-libs/zlib )" 14DEPEND="zlib? ( sys-libs/zlib )"
15 15
16src_compile() { 16src_compile() {
17 econf `use_enable zlib` || die 17 econf `use_enable zlib` || die
18 emake || die 18
19 if use multicall ; then
20 sed -i \
21 -e '/define DROPBEAR_MULTI/s:/\* *::' \
22 -e '/define DROPBEAR_MULTI/s:\*/::' \
23 options.h
24 if use static ; then
25 emake dropbearmultistatic || die "multi static failed"
26 else
27 emake dropbearmulti || die "multi failed"
28 fi
29 else
30 emake || die "make failed"
31 fi
19} 32}
20 33
21src_install() { 34src_install() {
35 if use multicall ; then
36 local multibin="dropbearmulti"
37 use static && multibin="static${multibin}"
38 dodir /usr/bin /usr/sbin
39 dobin ${multibin} || die "dropbearmulti"
40 dosym ${multibin} /usr/bin/dropbearkey || die
41 dosym ${multibin} /usr/bin/dropbearconvert || die
42 dosym ../bin/${multibin} /usr/sbin/dropbear || die
43 else
22 make install DESTDIR=${D} || die 44 make install DESTDIR=${D} || die
45 fi
23 exeinto /etc/init.d ; newexe ${FILESDIR}/dropbear.init.d dropbear 46 exeinto /etc/init.d ; newexe ${FILESDIR}/dropbear.init.d dropbear
24 insinto /etc/conf.d ; newins ${FILESDIR}/dropbear.conf.d dropbear 47 insinto /etc/conf.d ; newins ${FILESDIR}/dropbear.conf.d dropbear
25 dodoc CHANGES README TODO SMALL 48 dodoc CHANGES README TODO SMALL
26} 49}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20