summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-03-18 22:07:48 -0400
committerMike Frysinger <vapier@gentoo.org>2016-03-18 22:07:56 -0400
commit30e15f1051c33ffc3d2935deb5e63821c6c9347c (patch)
tree3d036213f1f60df40af4c5d618df535777fe9148 /net-misc/dropbear
parentwww-apps/icingaweb2-module-pnp4nagios: add amd64 and x86 keywords (diff)
downloadgentoo-30e15f1051c33ffc3d2935deb5e63821c6c9347c.tar.gz
gentoo-30e15f1051c33ffc3d2935deb5e63821c6c9347c.tar.bz2
gentoo-30e15f1051c33ffc3d2935deb5e63821c6c9347c.zip
net-misc/dropbear: version bump to 2016.73
Diffstat (limited to 'net-misc/dropbear')
-rw-r--r--net-misc/dropbear/Manifest1
-rw-r--r--net-misc/dropbear/dropbear-2016.73.ebuild98
2 files changed, 99 insertions, 0 deletions
diff --git a/net-misc/dropbear/Manifest b/net-misc/dropbear/Manifest
index de897ec463b2..3d1d952cdbc9 100644
--- a/net-misc/dropbear/Manifest
+++ b/net-misc/dropbear/Manifest
@@ -3,3 +3,4 @@ DIST dropbear-2015.67.tar.bz2 1606312 SHA256 7e690594645dfde5787065c78a5d2e4d15e
DIST dropbear-2015.68.tar.bz2 1611161 SHA256 55ea7c1e904ffe4b1cdbe1addca8291a2533d7d285fd22ac33608e9502a62446 SHA512 7725cd4077a3968684db3646f6013c6202977e79d281619e029366e45fca9c4e33e271812626237b6e33938eeb4c8b260902fe2b57cff085086bf930713a934a WHIRLPOOL a80d3907528b0d754f1a474846794ac9ba48003bbb723164c7db84c9b46263b47631712b15e29b863e64ad924d889976250e8af98b2b1ca91fb586ff0a1d4186
DIST dropbear-2015.71.tar.bz2 1616280 SHA256 376214169c0e187ee9f48ae1a99b3f835016ad5b98ede4bfd1cf581deba783af SHA512 d9f5c5fdb2e845a79bb598fb3ba0b1e131a5d2b8f9acbf8c5d7aef1c381105bbe59d98c85d1c482d94fcc359cf64c8b4210458bad32c442c2cfbf6d6f8811b51 WHIRLPOOL 94e8fc0ce5f036866df384d17fda92b13849278274d881420d6b759550b0b5565c74a3908d1c377a5f053cd66280312aba8c5423d59f1c011d97a5d600a29891
DIST dropbear-2016.72.tar.bz2 1617138 SHA256 9323766d3257699fd7d6e7b282c5a65790864ab32fd09ac73ea3d46c9ca2d681 SHA512 ed92db85b520d2c6cb5c8e65d304ccdd98df90f1232f588747230970527b991b31f5f608f6e9ee9285ec263455b1dc97ec63fdba1ebf8320120f011933a563eb WHIRLPOOL d4159bb379e0b5bd52af23b9052efddd77cc5bc99b08cf793e2a06ccf9fb94c4a298f3bfadfb200a3e073e5857b1700859bfa64f50ab179618704988bc65e114
+DIST dropbear-2016.73.tar.bz2 1621584 SHA256 5c61a4f69b093b688629cd365be38701485ff63cfb23642dab7a05ad250aefd7 SHA512 dc538d77b0269c93339b150990b475129a88b0bdc070021c03726955e307407f517049f55b012bf00579d26cd0ff412d88f51c1db540bcbd3d8e4b7cf882bcb8 WHIRLPOOL 9d989b4893eaae254eb69d109d93375e121cc163ada59ac75fcbf9d88b294b015168bd5942d7a6afa1ed2dc08c297402be668cdc5fbd2647d9c14b86849a233b
diff --git a/net-misc/dropbear/dropbear-2016.73.ebuild b/net-misc/dropbear/dropbear-2016.73.ebuild
new file mode 100644
index 000000000000..230812e6a8e9
--- /dev/null
+++ b/net-misc/dropbear/dropbear-2016.73.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils savedconfig pam user
+
+DESCRIPTION="small SSH 2 client/server designed for small memory environments"
+HOMEPAGE="http://matt.ucc.asn.au/dropbear/dropbear.html"
+SRC_URI="http://matt.ucc.asn.au/dropbear/releases/${P}.tar.bz2
+ http://matt.ucc.asn.au/dropbear/testing/${P}.tar.bz2"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="bsdpty minimal multicall pam +shadow static +syslog zlib"
+
+LIB_DEPEND="zlib? ( sys-libs/zlib[static-libs(+)] )
+ dev-libs/libtommath[static-libs(+)]"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
+ pam? ( virtual/pam )"
+DEPEND="${RDEPEND}
+ static? ( ${LIB_DEPEND} )"
+RDEPEND+=" pam? ( >=sys-auth/pambase-20080219.1 )"
+
+REQUIRED_USE="pam? ( !static )"
+
+set_options() {
+ progs=(
+ dropbear dbclient dropbearkey
+ $(usex minimal "" "dropbearconvert scp")
+ )
+ makeopts=(
+ MULTI=$(usex multicall 1 0)
+ STATIC=$(usex static 1 0)
+ )
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.46-dbscp.patch
+ sed -i \
+ -e '/SFTPSERVER_PATH/s:".*":"/usr/lib/misc/sftp-server":' \
+ options.h || die
+ sed -i \
+ -e '/pam_start/s:sshd:dropbear:' \
+ svr-authpam.c || die
+ restore_config options.h
+}
+
+src_configure() {
+ # XXX: Need to add libtomcrypt to the tree and re-enable this.
+ # --disable-bundled-libtom
+ econf \
+ $(use_enable zlib) \
+ $(use_enable pam) \
+ $(use_enable !bsdpty openpty) \
+ $(use_enable shadow) \
+ $(use_enable syslog)
+}
+
+src_compile() {
+ set_options
+ emake "${makeopts[@]}" PROGRAMS="${progs[*]}"
+}
+
+src_install() {
+ set_options
+ emake "${makeopts[@]}" PROGRAMS="${progs[*]}" DESTDIR="${D}" install
+ doman *.8
+ newinitd "${FILESDIR}"/dropbear.init.d dropbear
+ newconfd "${FILESDIR}"/dropbear.conf.d dropbear
+ dodoc CHANGES README TODO SMALL MULTI
+
+ # The multi install target does not install the links right.
+ if use multicall ; then
+ cd "${ED}"/usr/bin
+ local x
+ for x in "${progs[@]}" ; do
+ ln -sf dropbearmulti ${x} || die "ln -s dropbearmulti to ${x} failed"
+ done
+ rm -f dropbear
+ dodir /usr/sbin
+ dosym ../bin/dropbearmulti /usr/sbin/dropbear
+ cd "${S}"
+ fi
+ save_config options.h
+
+ if ! use minimal ; then
+ mv "${ED}"/usr/bin/{,db}scp || die
+ fi
+
+ pamd_mimic system-remote-login dropbear auth account password session
+}
+
+pkg_preinst() {
+ enewgroup sshd 22
+ enewuser sshd 22 -1 /var/empty sshd
+}