oidentd-2.0.8-r5.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils systemd
  5. DESCRIPTION="Another (RFC1413 compliant) ident daemon"
  6. HOMEPAGE="http://ojnk.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/ojnk/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ~s390 ~sh sparc x86 ~x86-fbsd"
  11. IUSE="debug ipv6 masquerade"
  12. src_prepare() {
  13. epatch "${FILESDIR}/${P}-masquerading.patch" \
  14. "${FILESDIR}/${P}-bind-to-ipv6-too.patch" \
  15. "${FILESDIR}/${P}-gcc5.patch"
  16. }
  17. src_configure() {
  18. econf \
  19. $(use_enable debug) \
  20. $(use_enable ipv6) \
  21. $(use_enable masquerade masq) \
  22. $(use_enable masquerade nat)
  23. }
  24. src_install() {
  25. default
  26. dodoc AUTHORS ChangeLog README TODO NEWS \
  27. "${FILESDIR}"/${PN}_masq.conf "${FILESDIR}"/${PN}.conf
  28. newinitd "${FILESDIR}"/${PN}-2.0.7-init ${PN}
  29. newconfd "${FILESDIR}"/${PN}-2.0.7-confd ${PN}
  30. systemd_newunit "${FILESDIR}"/${PN}_at.service ${PN}@.service
  31. systemd_dounit "${FILESDIR}"/${PN}.socket
  32. systemd_dounit "${FILESDIR}"/${PN}.service
  33. }
  34. pkg_postinst() {
  35. echo
  36. elog "Example configuration files are in /usr/share/doc/${PF}"
  37. echo
  38. }