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

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

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

Revision 1.1 Revision 1.2
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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-2012.55.ebuild,v 1.1 2012/02/24 18:24:24 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/dropbear/Attic/dropbear-2012.55.ebuild,v 1.2 2012/02/26 17:39:16 vapier Exp $
4 4
5EAPI="4" 5EAPI="4"
6 6
7inherit eutils savedconfig pam 7inherit eutils savedconfig pam
8 8
14LICENSE="MIT" 14LICENSE="MIT"
15SLOT="0" 15SLOT="0"
16KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" 16KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
17IUSE="bsdpty minimal multicall pam static syslog zlib" 17IUSE="bsdpty minimal multicall pam static syslog zlib"
18 18
19DEPEND="static? ( zlib? ( sys-libs/zlib[static-libs] ) ) 19LIB_DEPEND="zlib? ( sys-libs/zlib[static-libs(+)] )"
20RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
20 pam? ( virtual/pam )" 21 pam? ( virtual/pam )"
21RDEPEND="${DEPEND} 22DEPEND="${RDEPEND}
22 !static? ( zlib? ( sys-libs/zlib ) ) 23 static? ( ${LIB_DEPEND} )"
23 pam? ( >=sys-auth/pambase-20080219.1 )" 24RDEPEND+=" pam? ( >=sys-auth/pambase-20080219.1 )"
24 25
25REQUIRED_USE="pam? ( !static )" 26REQUIRED_USE="pam? ( !static )"
26 27
27set_options() { 28set_options() {
29 progs=(
28 progs="dropbear dbclient dropbearkey" 30 dropbear dbclient dropbearkey
29 progs+=" $(usex minimal "" "dropbearconvert scp")" 31 $(usex minimal "" "dropbearconvert scp")
30 use multicall && makeopts+=" MULTI=1" 32 )
31 use static && makeopts+=" STATIC=1" 33 makeopts=(
34 MULTI=$(usex multicall 1 0)
35 STATIC=$(usex static 1 0)
36 )
32} 37}
33 38
34src_prepare() { 39src_prepare() {
35 epatch "${FILESDIR}"/dropbear-0.46-dbscp.patch 40 epatch "${FILESDIR}"/dropbear-0.46-dbscp.patch
36 sed -i \ 41 sed -i \
51 $(use_enable syslog) 56 $(use_enable syslog)
52} 57}
53 58
54src_compile() { 59src_compile() {
55 set_options 60 set_options
56 emake ${makeopts} PROGRAMS="${progs}" 61 emake ${makeopts[@]} PROGRAMS="${progs[*]}"
57} 62}
58 63
59src_install() { 64src_install() {
60 set_options 65 set_options
61 emake install DESTDIR="${D}" ${makeopts} PROGRAMS="${progs}" 66 emake install DESTDIR="${D}" ${makeopts[@]} PROGRAMS="${progs[*]}"
62 doman *.8 67 doman *.8
63 newinitd "${FILESDIR}"/dropbear.init.d dropbear 68 newinitd "${FILESDIR}"/dropbear.init.d dropbear
64 newconfd "${FILESDIR}"/dropbear.conf.d dropbear 69 newconfd "${FILESDIR}"/dropbear.conf.d dropbear
65 dodoc CHANGES README TODO SMALL MULTI 70 dodoc CHANGES README TODO SMALL MULTI
66 71
67 # The multi install target does not install the links 72 # The multi install target does not install the links
68 if use multicall ; then 73 if use multicall ; then
69 cd "${D}"/usr/bin 74 cd "${D}"/usr/bin
70 local x 75 local x
71 for x in ${progs} ; do 76 for x in ${progs[@]} ; do
72 ln -s dropbearmulti ${x} || die "ln -s dropbearmulti to ${x} failed" 77 ln -s dropbearmulti ${x} || die "ln -s dropbearmulti to ${x} failed"
73 done 78 done
74 rm -f dropbear 79 rm -f dropbear
75 dodir /usr/sbin 80 dodir /usr/sbin
76 dosym ../bin/dropbearmulti /usr/sbin/dropbear 81 dosym ../bin/dropbearmulti /usr/sbin/dropbear

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

  ViewVC Help
Powered by ViewVC 1.1.20