gofish-1.2.ebuild 737 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=2
  4. inherit eutils user
  5. DESCRIPTION="Gofish gopher server"
  6. HOMEPAGE="http://gofish.sourceforge.net"
  7. SRC_URI="mirror://sourceforge/gofish/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ~ppc ~x86"
  11. IUSE=""
  12. DEPEND=""
  13. RDEPEND=""
  14. S=${WORKDIR}/${PN}
  15. pkg_setup() {
  16. enewgroup gopher
  17. enewuser gopher -1 -1 -1 gopher
  18. }
  19. src_configure() {
  20. econf \
  21. --localstatedir=/var \
  22. --disable-mmap-cache || die
  23. }
  24. src_install () {
  25. make DESTDIR="${D}" install || die
  26. newinitd "${FILESDIR}"/gofish.rc gofish || die
  27. newconfd "${FILESDIR}"/gofish.confd gofish || die
  28. dodoc AUTHORS ChangeLog Configure_GoFish README TODO || die
  29. }