diff options
-rw-r--r-- | net-misc/uftp/Manifest | 1 | ||||
-rw-r--r-- | net-misc/uftp/uftp-4.9.5.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/net-misc/uftp/Manifest b/net-misc/uftp/Manifest index 34c587c98ead..025015dfe325 100644 --- a/net-misc/uftp/Manifest +++ b/net-misc/uftp/Manifest @@ -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 index 000000000000..a596a8380bbd --- /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 +} |