3proxy-0.8.9.ebuild 828 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. DESCRIPTION="A really tiny cross-platform proxy servers set"
  5. HOMEPAGE="http://www.3proxy.ru/"
  6. SRC_URI="https://github.com/z3APA3A/3proxy/archive/${PV}.tar.gz -> ${P}.tar.gz"
  7. LICENSE="BSD"
  8. SLOT="0"
  9. KEYWORDS="~alpha amd64 ~arm ppc x86"
  10. IUSE=""
  11. PATCHES=(
  12. "${FILESDIR}"/${PN}-0.8.8-gentoo.patch
  13. )
  14. DOCS=( README cfg )
  15. HTML_DOCS=( doc/html/. )
  16. src_prepare() {
  17. default
  18. cp Makefile.Linux Makefile || die
  19. }
  20. src_install() {
  21. local x
  22. pushd src >/dev/null || die
  23. dobin 3proxy
  24. for x in proxy socks ftppr pop3p tcppm udppm mycrypt dighosts icqpr smtpp; do
  25. newbin ${x} ${PN}-${x}
  26. [[ -f "${S}"/man/${x}.8 ]] && newman "${S}"/man/${x}.8 ${PN}-${x}.8
  27. done
  28. popd >/dev/null
  29. doman man/3proxy*.[38]
  30. einstalldocs
  31. }