oftpd-0.3.7-r9.ebuild 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit autotools eutils
  5. DESCRIPTION="Secure, small, anonymous only ftpd"
  6. HOMEPAGE="http://www.time-travellers.org/oftpd"
  7. SRC_URI="http://www.time-travellers.org/oftpd/${P}.tar.gz
  8. ftp://ftp.deepspace6.net/pub/ds6/sources/${PN}/${PN}-0.3.6-ipv6rel2.patch.gz"
  9. LICENSE="BSD-2"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sh ~sparc ~x86"
  12. IUSE="ipv6"
  13. DEPEND="net-ftp/ftpbase"
  14. RDEPEND="${DEPEND}"
  15. src_prepare() {
  16. cd "${WORKDIR}" || die
  17. epatch "${FILESDIR}"/oftpd-0.3.7-ipv6rel2-0.3.6-to-0.3.7.patch
  18. cd "${S}" || die
  19. epatch "${WORKDIR}"/${PN}-0.3.6-ipv6rel2.patch
  20. epatch "${FILESDIR}"/${PN}-0.3.7-delay-root-check.patch
  21. # Don't crash when using an unsupported address family, #159178.
  22. # updated in bug #157005
  23. epatch "${FILESDIR}"/${P}-family-1.patch
  24. # htons patch #371963
  25. epatch "${FILESDIR}"/${P}-htons.patch
  26. epatch "${FILESDIR}"/${P}-unistd.patch
  27. eautoreconf
  28. }
  29. src_configure() {
  30. econf --bindir=/usr/sbin $(use_enable ipv6)
  31. }
  32. src_install() {
  33. default
  34. keepdir /home/ftp
  35. newinitd "${FILESDIR}"/init.d.oftpd-r7 oftpd
  36. newconfd "${FILESDIR}"/conf.d.oftpd-r7 oftpd
  37. }