summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2018-01-29 13:38:19 +0500
committerPatrice Clement <monsieurp@gentoo.org>2018-02-04 23:59:25 +0100
commit37461aa8a378d58571c3bd68ad19b421e3492463 (patch)
treeced825b6a7f49db9ce6ea47277eab1e7a3c78fa4 /net-misc/uftp/uftp-4.9.5.ebuild
parentmedia-sound/pulseeffects: 3.2.0 buo (diff)
downloadgentoo-37461aa8a378d58571c3bd68ad19b421e3492463.tar.gz
gentoo-37461aa8a378d58571c3bd68ad19b421e3492463.tar.bz2
gentoo-37461aa8a378d58571c3bd68ad19b421e3492463.zip
net-misc/uftp: version bump and fixes.
* 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
Diffstat (limited to 'net-misc/uftp/uftp-4.9.5.ebuild')
-rw-r--r--net-misc/uftp/uftp-4.9.5.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/net-misc/uftp/uftp-4.9.5.ebuild b/net-misc/uftp/uftp-4.9.5.ebuild
new file mode 100644
index 00000000000..a596a8380bb
--- /dev/null
+++ b/net-misc/uftp/uftp-4.9.5.ebuild
@@ -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
+}