diff options
Diffstat (limited to 'net-misc/uftp/uftp-5.0.3.ebuild')
-rw-r--r-- | net-misc/uftp/uftp-5.0.3.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
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 +} |