nca-0.9.0-r1.ebuild 955 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="6"
  4. inherit toolchain-funcs
  5. DESCRIPTION="Network Console on Acid"
  6. HOMEPAGE="http://www.xenoclast.org/nca/"
  7. SRC_URI="http://www.xenoclast.org/nca/download/${P}.tar.gz"
  8. LICENSE="BSD GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE=""
  12. RDEPEND="dev-libs/openssl
  13. sys-libs/zlib"
  14. DEPEND="dev-lang/perl
  15. ${RDEPEND}"
  16. src_prepare() {
  17. sed -i -e "s:^\([[:space:]]\+\$(MAKE) install\):\1 DESTDIR=\$(DESTDIR):g" \
  18. -e "s:=\(\$(CFLAGS)\):=\"\1\":g" -e "s:=\(\$(CC)\):=\"\1\":g" Makefile
  19. sed -i -e "s:-s sshd:sshd:g" ncad.patch
  20. eapply_user
  21. }
  22. src_compile() {
  23. emake -j1 CFLAGS="${CFLAGS}" CC=$(tc-getCC)
  24. }
  25. src_install() {
  26. dodir /sbin
  27. emake BINDIR="${D}sbin" MANDIR="${D}usr/share/man" SYSCONF_DIR="${D}etc" \
  28. DESTDIR="${D}" install_nca install_ssh install_man
  29. newinitd "${FILESDIR}/ncad.initd" ncad
  30. dodoc ChangeLog README* rc/ncad.template
  31. }