Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/dropbear/
Date: Wed, 25 Nov 2015 19:28:04
Message-Id: 1448479666.57046ffb73d0d9421a83b36c427d81b077079e6a.vapier@gentoo
1 commit: 57046ffb73d0d9421a83b36c427d81b077079e6a
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 25 19:23:20 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 25 19:27:46 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57046ffb
7
8 net-misc/dropbear: version bump to 2015.69
9
10 net-misc/dropbear/Manifest | 1 +
11 net-misc/dropbear/dropbear-2015.69.ebuild | 98 +++++++++++++++++++++++++++++++
12 2 files changed, 99 insertions(+)
13
14 diff --git a/net-misc/dropbear/Manifest b/net-misc/dropbear/Manifest
15 index 7f98dcb..6878a77 100644
16 --- a/net-misc/dropbear/Manifest
17 +++ b/net-misc/dropbear/Manifest
18 @@ -1,3 +1,4 @@
19 DIST dropbear-2014.66.tar.bz2 1604981 SHA256 ab3fe2670a517cc0bbe398ff5d15e9ca12cd14f2fc18930a8111ae2baa64ab76 SHA512 3005f754ad97e5eb84221740577f4dd962e38f38b3f6ba84dbb0811a7a35d487069c35b30055e129541c224769fe0a7e594084a9b0f1cc667029ad43d4988149 WHIRLPOOL c077328bf5c21faa655f3a2e6fe1aa775b046eec7cf0f527a86c0ec01b62ab9c6ae3530fcdf49db19be8208ea22f8cd198cd3ab6a5eb605a55daf0bf0c40e4ff
20 DIST dropbear-2015.67.tar.bz2 1606312 SHA256 7e690594645dfde5787065c78a5d2e4d15e288babfa06e140197ce05f698c8e5 SHA512 6a23f7dbe8ccd39683488a16ce4db39cdba529e9d302165742eb818d3cf520a3793660ff6c8ce0520ddb87dcac726ff34ed3dbcb7efa83115deafad2c6c0a5f3 WHIRLPOOL c1103be19c86a0b40ca262715646244911032e97aba52279be1f7a0382367554c34455497b604dacacb69da0873fd26d3d457abeb7d265e6ca6bdff8938dc065
21 DIST dropbear-2015.68.tar.bz2 1611161 SHA256 55ea7c1e904ffe4b1cdbe1addca8291a2533d7d285fd22ac33608e9502a62446 SHA512 7725cd4077a3968684db3646f6013c6202977e79d281619e029366e45fca9c4e33e271812626237b6e33938eeb4c8b260902fe2b57cff085086bf930713a934a WHIRLPOOL a80d3907528b0d754f1a474846794ac9ba48003bbb723164c7db84c9b46263b47631712b15e29b863e64ad924d889976250e8af98b2b1ca91fb586ff0a1d4186
22 +DIST dropbear-2015.69.tar.bz2 1613320 SHA256 5d4f5362fc102a0d7cdf1c8cd908c3c4c5cf5c8772936ed639774a08e27517c9 SHA512 0c9e1e7400e8f6dadf58252263308e1435c92154cf7223b55ee7e1a71c92e991d37a2fd54fa27fd3e953b7f42b2a5de0ca21a311f3a87ee2c8545a0e86fa9601 WHIRLPOOL a307d34c27964c4996199c958cb42a0d85fa03818607a66622d43388547685af36d2d435ce62a7c5b7d982c1035a5870d5be069f7c69642f3ae5440c8aaeb17b
23
24 diff --git a/net-misc/dropbear/dropbear-2015.69.ebuild b/net-misc/dropbear/dropbear-2015.69.ebuild
25 new file mode 100644
26 index 0000000..d0d661e
27 --- /dev/null
28 +++ b/net-misc/dropbear/dropbear-2015.69.ebuild
29 @@ -0,0 +1,98 @@
30 +# Copyright 1999-2015 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="4"
34 +
35 +inherit eutils savedconfig pam user
36 +
37 +DESCRIPTION="small SSH 2 client/server designed for small memory environments"
38 +HOMEPAGE="http://matt.ucc.asn.au/dropbear/dropbear.html"
39 +SRC_URI="http://matt.ucc.asn.au/dropbear/releases/${P}.tar.bz2
40 + http://matt.ucc.asn.au/dropbear/testing/${P}.tar.bz2"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
45 +IUSE="bsdpty minimal multicall pam +shadow static +syslog zlib"
46 +
47 +LIB_DEPEND="zlib? ( sys-libs/zlib[static-libs(+)] )
48 + dev-libs/libtommath[static-libs(+)]"
49 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
50 + pam? ( virtual/pam )"
51 +DEPEND="${RDEPEND}
52 + static? ( ${LIB_DEPEND} )"
53 +RDEPEND+=" pam? ( >=sys-auth/pambase-20080219.1 )"
54 +
55 +REQUIRED_USE="pam? ( !static )"
56 +
57 +set_options() {
58 + progs=(
59 + dropbear dbclient dropbearkey
60 + $(usex minimal "" "dropbearconvert scp")
61 + )
62 + makeopts=(
63 + MULTI=$(usex multicall 1 0)
64 + STATIC=$(usex static 1 0)
65 + )
66 +}
67 +
68 +src_prepare() {
69 + epatch "${FILESDIR}"/${PN}-0.46-dbscp.patch
70 + sed -i \
71 + -e '/SFTPSERVER_PATH/s:".*":"/usr/lib/misc/sftp-server":' \
72 + options.h || die
73 + sed -i \
74 + -e '/pam_start/s:sshd:dropbear:' \
75 + svr-authpam.c || die
76 + restore_config options.h
77 +}
78 +
79 +src_configure() {
80 + # XXX: Need to add libtomcrypt to the tree and re-enable this.
81 + # --disable-bundled-libtom
82 + econf \
83 + $(use_enable zlib) \
84 + $(use_enable pam) \
85 + $(use_enable !bsdpty openpty) \
86 + $(use_enable shadow) \
87 + $(use_enable syslog)
88 +}
89 +
90 +src_compile() {
91 + set_options
92 + emake "${makeopts[@]}" PROGRAMS="${progs[*]}"
93 +}
94 +
95 +src_install() {
96 + set_options
97 + emake "${makeopts[@]}" PROGRAMS="${progs[*]}" DESTDIR="${D}" install
98 + doman *.8
99 + newinitd "${FILESDIR}"/dropbear.init.d dropbear
100 + newconfd "${FILESDIR}"/dropbear.conf.d dropbear
101 + dodoc CHANGES README TODO SMALL MULTI
102 +
103 + # The multi install target does not install the links right.
104 + if use multicall ; then
105 + cd "${ED}"/usr/bin
106 + local x
107 + for x in "${progs[@]}" ; do
108 + ln -sf dropbearmulti ${x} || die "ln -s dropbearmulti to ${x} failed"
109 + done
110 + rm -f dropbear
111 + dodir /usr/sbin
112 + dosym ../bin/dropbearmulti /usr/sbin/dropbear
113 + cd "${S}"
114 + fi
115 + save_config options.h
116 +
117 + if ! use minimal ; then
118 + mv "${ED}"/usr/bin/{,db}scp || die
119 + fi
120 +
121 + pamd_mimic system-remote-login dropbear auth account password session
122 +}
123 +
124 +pkg_preinst() {
125 + enewgroup sshd 22
126 + enewuser sshd 22 -1 /var/empty sshd
127 +}