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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Apr 20 08:02:51 2010 UTC (9 years, 7 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2007 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.50.ebuild,v 1.2 2007/10/06 12:28:22 vapier Exp $
4
5 inherit eutils savedconfig
6
7 DESCRIPTION="small SSH 2 client/server designed for small memory environments"
8 HOMEPAGE="http://matt.ucc.asn.au/dropbear/dropbear.html"
9 SRC_URI="http://matt.ucc.asn.au/dropbear/releases/${P}.tar.gz
10 http://matt.ucc.asn.au/dropbear/testing/${P}.tar.gz"
11
12 LICENSE="MIT"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
15 IUSE="bsdpty minimal multicall pam static syslog zlib"
16
17 RDEPEND="zlib? ( sys-libs/zlib )
18 pam? ( sys-libs/pam )"
19 DEPEND="${RDEPEND}"
20 PROVIDE="virtual/ssh"
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.46-dbscp.patch
39 sed -i \
40 -e '/SFTPSERVER_PATH/s:".*":"/usr/lib/misc/sftp-server":' \
41 options.h
42 restore_config options.h
43 }
44
45 src_compile() {
46 econf \
47 $(use_enable zlib) \
48 $(use_enable pam) \
49 $(use_enable !bsdpty openpty) \
50 $(use_enable syslog) \
51 || die
52 set_options
53 emake ${makeopts} PROGRAMS="${progs}" || die "make ${makeopts} failed"
54 }
55
56 src_install() {
57 set_options
58 emake install DESTDIR="${D}" ${makeopts} PROGRAMS="${progs}" || die "make install failed"
59 doman *.8
60 newinitd "${FILESDIR}"/dropbear.init.d dropbear || die
61 newconfd "${FILESDIR}"/dropbear.conf.d dropbear || die
62 dodoc CHANGES README TODO SMALL MULTI
63
64 # The multi install target does not install the links
65 if use multicall ; then
66 cd "${D}"/usr/bin
67 local x
68 for x in ${progs} ; do
69 ln -s dropbearmulti ${x} || die "ln -s dropbearmulti to ${x} failed"
70 done
71 rm -f dropbear
72 dodir /usr/sbin
73 dosym ../bin/dropbearmulti /usr/sbin/dropbear
74 cd "${S}"
75 fi
76 save_config options.h
77
78 mv "${D}"/usr/bin/{,db}scp || die
79 }

  ViewVC Help
Powered by ViewVC 1.1.20