summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2024-01-02 22:42:01 +0300
committerConrad Kostecki <conikost@gentoo.org>2024-01-07 01:19:34 +0100
commit1d5bad741d7e5be03c1bc96c8f219ed9257cd507 (patch)
treee24e24af968c143acb86bbf54d660c52e667a718 /net-misc
parentnet-misc/jwhois: add github remote-id (diff)
downloadgentoo-1d5bad741d7e5be03c1bc96c8f219ed9257cd507.tar.gz
gentoo-1d5bad741d7e5be03c1bc96c8f219ed9257cd507.tar.bz2
gentoo-1d5bad741d7e5be03c1bc96c8f219ed9257cd507.zip
net-misc/uftp: add 5.0.3
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/uftp/Manifest1
-rw-r--r--net-misc/uftp/uftp-5.0.3.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/net-misc/uftp/Manifest b/net-misc/uftp/Manifest
index be3a8553de32..e42dbd5f1a18 100644
--- a/net-misc/uftp/Manifest
+++ b/net-misc/uftp/Manifest
@@ -1 +1,2 @@
DIST uftp-5.0.1.tar.gz 240620 BLAKE2B f1c22d8313b8f368729dd972dae9894290aa89a0fd9305d854caf93ead9f9aec7eaf83682683722c7a30a1e11802678f3e0cc3e4054f065b51ea049fa47dce56 SHA512 755b051aadd793e8d3939241d1f8db8b4c5f5be6224284a3ef82a648a9e2189b57dd4fe91230633cf7a582c51543a1d92cf167301c633ce16e9e2417709d36f4
+DIST uftp-5.0.3.tar.gz 240814 BLAKE2B 46a36affb4547c62fcc09bbde5f9b22d1ddce5cf50777f138982de51bb2e681520c9f9bad92b646cd97204de40e01f9782b24329a6eebfeb98fd8e10910786e9 SHA512 edd603cf3ecb363a21365db7b1697ac44d12099c6699cf50c02f4a01ad95a458470308c69446a2d2825c5f4882833c384ad4f658e09ddf80dcab1cb2180f8b54
diff --git a/net-misc/uftp/uftp-5.0.3.ebuild b/net-misc/uftp/uftp-5.0.3.ebuild
new file mode 100644
index 000000000000..339a6b7f59d1
--- /dev/null
+++ b/net-misc/uftp/uftp-5.0.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Encrypted UDP based FTP with multicast"
+HOMEPAGE="http://uftp-multicast.sourceforge.net/"
+SRC_URI="https://download.sourceforge.net/${PN}-multicast/source-tar/${P}.tar.gz"
+
+LICENSE="GPL-3-with-openssl-exception"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+server ssl"
+
+# openssl with EC required, see #644674
+DEPEND="ssl? ( dev-libs/openssl:0=[-bindist(-)] )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.10.1_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,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,uftpproxyd}.1
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/logrotate" uftpd
+ fi
+}