3proxy-0.8.8.ebuild 823 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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/${P}.tar.gz"
  7. LICENSE="BSD"
  8. SLOT="0"
  9. KEYWORDS="~x86 ~amd64 ~ppc"
  10. IUSE=""
  11. S="${WORKDIR}/${PN}-${P}"
  12. PATCHES=(
  13. "${FILESDIR}"/${P}-gentoo.patch
  14. )
  15. DOCS=( README cfg )
  16. HTML_DOCS=( doc/html/. )
  17. src_prepare() {
  18. default
  19. cp Makefile.Linux Makefile || die
  20. }
  21. src_install() {
  22. local x
  23. pushd src >/dev/null || die
  24. dobin 3proxy
  25. for x in proxy socks ftppr pop3p tcppm udppm mycrypt dighosts icqpr smtpp; do
  26. newbin ${x} ${PN}-${x}
  27. [[ -f "${S}"/man/${x}.8 ]] && newman "${S}"/man/${x}.8 ${PN}-${x}.8
  28. done
  29. popd >/dev/null
  30. doman man/3proxy*.[38]
  31. einstalldocs
  32. }