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

Contents of /net-misc/dropbear/dropbear-0.48.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Aug 12 15:39:54 2007 UTC (12 years, 4 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.48.1-r1.ebuild,v 1.2 2007/03/26 08:05:13 antarus 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="minimal multicall pam static 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.45-urandom.patch
39 epatch "${FILESDIR}"/dropbear-0.46-dbscp.patch
40 sed -i \
41 -e '/SFTPSERVER_PATH/s:".*":"/usr/lib/misc/sftp-server":' \
42 options.h
43 restore_config options.h
44 }
45
46 src_compile() {
47 local myconf
48 # --disable-syslog? wouldn't need logger in init.d
49 use minimal && myconf="--disable-lastlog"
50 econf ${myconf} $(use_enable zlib) $(use_enable pam) || die
51 set_options
52 emake ${makeopts} PROGRAMS="${progs}" || die "make ${makeopts} failed"
53 }
54
55 src_install() {
56 set_options
57 make install DESTDIR="${D}" ${makeopts} PROGRAMS="${progs}" || die "make install failed"
58 doman *.8
59 newinitd "${FILESDIR}"/dropbear.init.d dropbear
60 newconfd "${FILESDIR}"/dropbear.conf.d dropbear
61 dodoc CHANGES README TODO SMALL MULTI
62
63 # The multi install target does not install the links
64 if use multicall ; then
65 cd "${D}"/usr/bin
66 local x
67 for x in ${progs} ; do
68 ln -s dropbearmulti ${x}
69 done
70 rm -f dropbear
71 dodir /usr/sbin
72 dosym ../bin/dropbearmulti /usr/sbin/dropbear
73 cd "${S}"
74 fi
75 save_config options.h
76
77 mv "${D}"/usr/bin/{,db}scp
78 }

  ViewVC Help
Powered by ViewVC 1.1.20