diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/nca/nca-0.9.0-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/nca/nca-0.9.0-r1.ebuild')
-rw-r--r-- | sys-apps/nca/nca-0.9.0-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sys-apps/nca/nca-0.9.0-r1.ebuild b/sys-apps/nca/nca-0.9.0-r1.ebuild new file mode 100644 index 000000000000..1207d405ec81 --- /dev/null +++ b/sys-apps/nca/nca-0.9.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs + +DESCRIPTION="Network Console on Acid" +HOMEPAGE="http://www.xenoclast.org/nca/" +SRC_URI="http://www.xenoclast.org/nca/download/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-libs/openssl + sys-libs/zlib" + +DEPEND="dev-lang/perl + ${RDEPEND}" + +src_prepare() { + sed -i -e "s:^\([[:space:]]\+\$(MAKE) install\):\1 DESTDIR=\$(DESTDIR):g" \ + -e "s:=\(\$(CFLAGS)\):=\"\1\":g" -e "s:=\(\$(CC)\):=\"\1\":g" Makefile + + sed -i -e "s:-s sshd:sshd:g" ncad.patch + + eapply_user +} + +src_compile() { + emake -j1 CFLAGS="${CFLAGS}" CC=$(tc-getCC) +} + +src_install() { + dodir /sbin + emake BINDIR="${D}sbin" MANDIR="${D}usr/share/man" SYSCONF_DIR="${D}etc" \ + DESTDIR="${D}" install_nca install_ssh install_man + + newinitd "${FILESDIR}/ncad.initd" ncad + dodoc ChangeLog README* rc/ncad.template +} |