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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue May 23 21:59:03 2006 UTC (13 years, 6 months ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
- removed obsolete/vuln ebuilds
(Portage version: 2.0.54-r2)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/dropbear/dropbear-0.45.ebuild,v 1.8 2005/09/04 06:18:38 vapier Exp $
4
5 inherit eutils
6
7 DESCRIPTION="small SSH 2 client/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 http://matt.ucc.asn.au/dropbear/testing/${P}.tar.bz2"
11
12 LICENSE="MIT"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc sh sparc x86"
15 IUSE="minimal multicall pam static zlib"
16
17 RDEPEND="zlib? ( sys-libs/zlib )
18 pam? ( sys-libs/pam )"
19 DEPEND="${RDEPEND}
20 >=sys-apps/portage-2.0.51"
21
22 set_options() {
23 use minimal \
24 && progs="dropbear dbclient dropbearkey" \
25 || progs="dropbear dbclient dropbearkey dropbearconvert scp"
26 use multicall && makeopts="${makeopts} MULTI=1"
27 use static && makeopts="${makeopts} STATIC=1"
28 }
29
30 pkg_setup() {
31 enewgroup sshd 22
32 enewuser sshd 22 -1 /var/empty sshd
33 }
34
35 src_unpack() {
36 unpack ${A}
37 cd "${S}"
38 epatch "${FILESDIR}"/dropbear-0.45-urandom.patch
39 }
40
41 src_compile() {
42 local myconf
43 # --disable-syslog? wouldn't need logger in init.d
44 use minimal && myconf="--disable-lastlog"
45 econf ${myconf} $(use_enable zlib) $(use_enable pam) || die
46 set_options
47 emake ${makeopts} PROGRAMS="${progs}" || die "make failed"
48 }
49
50 src_install() {
51 set_options
52 make install DESTDIR="${D}" ${makeopts} PROGRAMS="${progs}" || die "make install failed"
53 doman *.8
54 newinitd "${FILESDIR}"/dropbear.init.d dropbear
55 newconfd "${FILESDIR}"/dropbear.conf.d dropbear
56 dodoc CHANGES README TODO SMALL MULTI
57
58 # The multi install target does not install the links
59 if use multicall ; then
60 cd "${D}"/usr/bin
61 local x
62 for x in ${progs} ; do
63 ln -s dropbearmulti ${x}
64 done
65 rm -f dropbear
66 dodir /usr/sbin
67 dosym ../bin/dropbearmulti /usr/sbin/dropbear
68 cd "${S}"
69 fi
70
71 mv "${D}"/usr/bin/{,db}scp
72 }

  ViewVC Help
Powered by ViewVC 1.1.20