You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.4 KiB
58 lines
1.4 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
|
inherit toolchain-funcs
|
||
|
|
||
|
DESCRIPTION="Encrypted UDP based FTP with multicast"
|
||
|
HOMEPAGE="http://uftp-multicast.sourceforge.net/"
|
||
5 years ago
|
SRC_URI="https://download.sourceforge.net/${PN}-multicast/source-tar/${P}.tar.gz"
|
||
6 years ago
|
|
||
5 years ago
|
LICENSE="GPL-3-with-openssl-exception"
|
||
6 years ago
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="+server ssl"
|
||
|
|
||
|
# openssl with EC required, see #644674
|
||
3 years ago
|
DEPEND="ssl? ( dev-libs/openssl:0=[-bindist(-)] )"
|
||
6 years ago
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
# Workaround, see #644670
|
||
|
RESTRICT=test
|
||
|
|
||
|
PATCHES=(
|
||
5 years ago
|
"${FILESDIR}/${P}_makefile.patch"
|
||
|
"${FILESDIR}/${P}_gcc10.patch"
|
||
6 years ago
|
)
|
||
|
|
||
|
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
|
||
5 years ago
|
doman {uftp,uftp_keymgt}.1
|
||
6 years ago
|
|
||
|
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
|
||
5 years ago
|
doman {uftpd,uftpproxyd}.1
|
||
6 years ago
|
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
|
||
|
}
|