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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Sun Aug 15 17:43:10 2004 UTC (15 years, 5 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
ver bump

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

  ViewVC Help
Powered by ViewVC 1.1.20