net-misc/uftp: version bump and fixes.
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>
Mon, 29 Jan 2018 08:38:19 +0000 (13:38 +0500)
committerPatrice Clement <monsieurp@gentoo.org>
Sun, 4 Feb 2018 22:59:25 +0000 (23:59 +0100)
* Workaround for test FEATURE (test broken in upstream, #644670)
* Package requires Elliptic Curves cryptography which may be disabled in
openssl[-bindist] (fixes #644674)

Closes: https://bugs.gentoo.org/644670
Closes: https://bugs.gentoo.org/644674
Closes: https://github.com/gentoo/gentoo/pull/6994
Package-Manager: Portage-2.3.19, Repoman-2.3.6

net-misc/uftp/Manifest
net-misc/uftp/uftp-4.9.5.ebuild [new file with mode: 0644]

index 34c587c98ead3ee93fe1b8ef4a7a9fe5bb8a6765..025015dfe325ee62c65ec245e781a52c2c9588ca 100644 (file)
@@ -1,2 +1,3 @@
 DIST uftp-3.7.1.tar 849920 BLAKE2B 32a2ccca01f4b8ee205301a2bb4ac30da4f17bf0d8a24f885ec40a430b2cc478efcd504ba118ef7f55c43ef53a6fb3e6caa2e2cebda93c254ab289a8683488a6 SHA512 93fefe1d4c5310bfa6470a78011e63aea8cc9cf59a73ea24920d3ad8c835476bbc410b3669ee79c847eba7d21d61f600e09529d5e6f2ed24076f663a34d99c15
 DIST uftp-4.9.4.tar.gz 243819 BLAKE2B b7aa75f8db82480912dd4cf8199dce7e8170db837853f16a2d8e5a4b7cf190416b7a2a23e170a4837f59a7bba030b0434383bceae9b253eb1d2fc13f6fcd26e7 SHA512 f3c799265a55e0cb536f17be3a0ebfad5f81284255083ebe9a12fda4b5ce8407f05a710cb32a41f3dccbc0ac90367c44d4b67058bdbeaa4f2f8efe732463ebf0
+DIST uftp-4.9.5.tar.gz 243999 BLAKE2B 32f6e6fef062e3b0696db775f2e925fdd53f03d8e04181f65140372abc85674b90579ea4b0c48cf21378c97552d06374005e70b6f1e9af7c03b7478d0b86e26c SHA512 3a4809cc61555ee26de6c1e1ac8525c0345a3b9555cf0a2094ff06eb6f409d1b3ca16b94d7b953dba6d1ae1d8c69a646d575a6357cd178c374bef68888744086
diff --git a/net-misc/uftp/uftp-4.9.5.ebuild b/net-misc/uftp/uftp-4.9.5.ebuild
new file mode 100644 (file)
index 0000000..a596a83
--- /dev/null
@@ -0,0 +1,56 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Encrypted UDP based FTP with multicast"
+HOMEPAGE="http://uftp-multicast.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}-multicast/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+server ssl"
+
+# openssl with EC required, see #644674
+DEPEND="ssl? ( dev-libs/openssl:0=[-bindist] )"
+RDEPEND="${DEPEND}"
+
+# Workaround, see #644670
+RESTRICT=test
+
+PATCHES=(
+       "${FILESDIR}/${PN}-4.9.4_makefile.patch"
+)
+
+src_compile() {
+       use ssl || local opt="NO_ENCRYPTION=1"
+       emake CC=$(tc-getCC) $opt uftp uftp_keymgt
+       use server && emake CC=$(tc-getCC) $opt uftpd uftpproxyd
+}
+
+src_install() {
+       dobin uftp uftp_keymgt
+       dodoc {Changes,protocol,ReadMe}.txt
+       doman uftp.1 uftp_keymgt.1
+
+       if use server ; then
+               dosbin uftpd uftpproxyd
+               newinitd "${FILESDIR}/uftpd.init" uftpd
+               newconfd "${FILESDIR}/uftpd.conf" uftpd
+               newinitd "${FILESDIR}/uftpproxyd.init" uftpproxyd
+               newconfd "${FILESDIR}/uftpproxyd.conf" uftpproxyd
+               doman uftpd.1 uftpproxyd.1
+               insinto /etc/logrotate.d
+               newins "${FILESDIR}/logrotate" uftpd
+       fi
+}
+
+pkg_postinst() {
+       if use server ; then
+               ewarn "Please note, uftpd 4.x server is not backward compatible with"
+               ewarn "uftp 3.x clients! Please upgrade clients before servers."
+       fi
+}