uftp-3.7.ebuild 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="Encrypted UDP based FTP with multicast"
  6. HOMEPAGE="http://www.tcnj.edu/~bush/uftp.html"
  7. SRC_URI="http://www.tcnj.edu/~bush/downloads/${P}.tar"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="+server ssl"
  12. DEPEND="ssl? ( dev-libs/openssl )"
  13. RDEPEND="${DEPEND}"
  14. src_prepare() {
  15. epatch "${FILESDIR}/${P}_makefile.patch"
  16. }
  17. src_compile() {
  18. use ssl || local opt="NO_ENCRYPTION=1"
  19. emake CC=$(tc-getCC) $opt uftp uftp_keymgt
  20. use server && emake CC=$(tc-getCC) $opt uftpd uftpproxyd
  21. }
  22. src_install() {
  23. dobin uftp uftp_keymgt
  24. dodoc ReadMe.txt
  25. doman uftp.1 uftp_keymgt.1
  26. if use server ; then
  27. dosbin uftpd uftpproxyd
  28. newinitd "${FILESDIR}/uftpd.init" uftpd
  29. newconfd "${FILESDIR}/uftpd.conf" uftpd
  30. newinitd "${FILESDIR}/uftpproxyd.init" uftpproxyd
  31. newconfd "${FILESDIR}/uftpproxyd.conf" uftpproxyd
  32. doman uftpd.1 uftpproxyd.1
  33. insinto /etc/logrotate.d
  34. newins "${FILESDIR}/logrotate" uftpd
  35. fi
  36. }