Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/nca/, sys-apps/nca/files/
Date: Fri, 29 Apr 2016 19:32:48
Message-Id: 1461958333.3e9055c6596ba0d36dab58a623866ff840232450.wizardedit@gentoo
1 commit: 3e9055c6596ba0d36dab58a623866ff840232450
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 29 17:50:58 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 29 19:32:13 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e9055c6
7
8 sys-apps/nca: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Package-Manager: portage-2.2.26
13
14 sys-apps/nca/files/ncad.initd | 4 ++--
15 sys-apps/nca/nca-0.9.0-r1.ebuild | 44 ++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 46 insertions(+), 2 deletions(-)
17
18 diff --git a/sys-apps/nca/files/ncad.initd b/sys-apps/nca/files/ncad.initd
19 index 5e7fff2..f87ec32 100644
20 --- a/sys-apps/nca/files/ncad.initd
21 +++ b/sys-apps/nca/files/ncad.initd
22 @@ -1,5 +1,5 @@
23 -#!/sbin/runscript
24 -# Copyright 1999-2007 Gentoo Foundation
25 +#!/sbin/openrc-run
26 +# Copyright 1999-2016 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 # $Id$
29
30
31 diff --git a/sys-apps/nca/nca-0.9.0-r1.ebuild b/sys-apps/nca/nca-0.9.0-r1.ebuild
32 new file mode 100644
33 index 0000000..d4abf43
34 --- /dev/null
35 +++ b/sys-apps/nca/nca-0.9.0-r1.ebuild
36 @@ -0,0 +1,44 @@
37 +# Copyright 1999-2016 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI="6"
42 +
43 +inherit toolchain-funcs
44 +
45 +DESCRIPTION="Network Console on Acid"
46 +HOMEPAGE="http://www.xenoclast.org/nca/"
47 +SRC_URI="http://www.xenoclast.org/nca/download/${P}.tar.gz"
48 +
49 +LICENSE="BSD GPL-2"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +IUSE=""
53 +
54 +RDEPEND="dev-libs/openssl
55 + sys-libs/zlib"
56 +
57 +DEPEND="dev-lang/perl
58 + ${RDEPEND}"
59 +
60 +src_prepare() {
61 + sed -i -e "s:^\([[:space:]]\+\$(MAKE) install\):\1 DESTDIR=\$(DESTDIR):g" \
62 + -e "s:=\(\$(CFLAGS)\):=\"\1\":g" -e "s:=\(\$(CC)\):=\"\1\":g" Makefile
63 +
64 + sed -i -e "s:-s sshd:sshd:g" ncad.patch
65 +
66 + eapply_user
67 +}
68 +
69 +src_compile() {
70 + emake -j1 CFLAGS="${CFLAGS}" CC=$(tc-getCC)
71 +}
72 +
73 +src_install() {
74 + dodir /sbin
75 + emake BINDIR="${D}sbin" MANDIR="${D}usr/share/man" SYSCONF_DIR="${D}etc" \
76 + DESTDIR="${D}" install_nca install_ssh install_man
77 +
78 + newinitd "${FILESDIR}/ncad.initd" ncad
79 + dodoc ChangeLog README* rc/ncad.template
80 +}