diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-16 17:34:21 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-16 17:34:21 +0000 |
commit | 02e2208f46f4e2c00fb9743cbc47350bdd233bfa (patch) | |
tree | 132dd60828854db4f65f30f9230f43d9602507ff /net-misc/uftp/uftp-4.9.4.ebuild | |
parent | 8be70107efbb417f839292165ee39d07a062046f (diff) |
gentoo resync : 16.01.2018
Diffstat (limited to 'net-misc/uftp/uftp-4.9.4.ebuild')
-rw-r--r-- | net-misc/uftp/uftp-4.9.4.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/net-misc/uftp/uftp-4.9.4.ebuild b/net-misc/uftp/uftp-4.9.4.ebuild new file mode 100644 index 000000000000..74358db417d4 --- /dev/null +++ b/net-misc/uftp/uftp-4.9.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 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" + +DEPEND="ssl? ( dev-libs/openssl:0= )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}_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 +} |