diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-03-10 18:20:30 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-03-10 18:20:39 -0500 |
commit | 7052ff6e24a7e37796dfcd624c60d31425ac97a4 (patch) | |
tree | e50dbb12ef093774447767e14253628a3eaa24aa /net-misc/dropbear | |
parent | app-arch/innoextract: Fix Copyright. (diff) | |
download | gentoo-7052ff6e24a7e37796dfcd624c60d31425ac97a4.tar.gz gentoo-7052ff6e24a7e37796dfcd624c60d31425ac97a4.tar.bz2 gentoo-7052ff6e24a7e37796dfcd624c60d31425ac97a4.zip |
net-misc/dropbear: version bump to 2016.72
Diffstat (limited to 'net-misc/dropbear')
-rw-r--r-- | net-misc/dropbear/Manifest | 1 | ||||
-rw-r--r-- | net-misc/dropbear/dropbear-2016.72.ebuild | 98 |
2 files changed, 99 insertions, 0 deletions
diff --git a/net-misc/dropbear/Manifest b/net-misc/dropbear/Manifest index bb262b3fff37..de897ec463b2 100644 --- a/net-misc/dropbear/Manifest +++ b/net-misc/dropbear/Manifest @@ -2,3 +2,4 @@ DIST dropbear-2014.66.tar.bz2 1604981 SHA256 ab3fe2670a517cc0bbe398ff5d15e9ca12c DIST dropbear-2015.67.tar.bz2 1606312 SHA256 7e690594645dfde5787065c78a5d2e4d15e288babfa06e140197ce05f698c8e5 SHA512 6a23f7dbe8ccd39683488a16ce4db39cdba529e9d302165742eb818d3cf520a3793660ff6c8ce0520ddb87dcac726ff34ed3dbcb7efa83115deafad2c6c0a5f3 WHIRLPOOL c1103be19c86a0b40ca262715646244911032e97aba52279be1f7a0382367554c34455497b604dacacb69da0873fd26d3d457abeb7d265e6ca6bdff8938dc065 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 diff --git a/net-misc/dropbear/dropbear-2016.72.ebuild b/net-misc/dropbear/dropbear-2016.72.ebuild new file mode 100644 index 000000000000..230812e6a8e9 --- /dev/null +++ b/net-misc/dropbear/dropbear-2016.72.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 +} |