summaryrefslogtreecommitdiff
path: root/sys-apps/nca
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/nca
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/nca')
-rw-r--r--sys-apps/nca/Manifest6
-rw-r--r--sys-apps/nca/files/ncad.initd15
-rw-r--r--sys-apps/nca/metadata.xml14
-rw-r--r--sys-apps/nca/nca-0.9.0-r1.ebuild43
4 files changed, 78 insertions, 0 deletions
diff --git a/sys-apps/nca/Manifest b/sys-apps/nca/Manifest
new file mode 100644
index 000000000000..7d33f42cda53
--- /dev/null
+++ b/sys-apps/nca/Manifest
@@ -0,0 +1,6 @@
+AUX ncad.initd 348 SHA256 41552fd3cc69b23e716a2981a43a7bec0eeaff39c24ddd3a02e9f417eb05dcf0 SHA512 f70d471606d0eb8c7327c0c7693047d8e21d1273a36d14d764f74afb359cb39c559ebc7f5c6f62c717f061f77ccf2c0f3d53a6b961f316552c6c6071cdb47297 WHIRLPOOL 8fc4eeabeda0205227fcb82d9f19b34fb19b2fb49e539380e33fa4f6d0a5d68ed630b3b9d4727a64e26216a4ee1488a1b4f4a3611e82b900935850b8914a7e4e
+DIST nca-0.9.0.tar.gz 818721 SHA256 407144394f6f90e818c7ce992a691c4e99983defbe9de63f6a0adaa93a36ae03 SHA512 375dc747414af7e8971a9112fa6a4583dd543f6f4b3a84b2c16f45ee2487363929c2eed3c1837687b802161c630443885e6da20ac738017d219e9a608b4d700c WHIRLPOOL 60c726e918e3684fe9dc45eacbfb2aa264f7ea1fd71e46eacc2020252e5cf6b333345c000eb8efafba65965fe184ff1ad4cbc87886a623831476f18c052953d9
+EBUILD nca-0.9.0-r1.ebuild 955 SHA256 93a4b16a76af5a09bb41beab3af7f8a6ffe32275d931c850e4da4bc3fdb7c30f SHA512 92a0fca038ee1349599fe134a25511f108a47ace206a375fda0040412ba3b012406fb217d80fad42c8b4801c167beee6f2bfe06767223dac9ad015cbba9e350c WHIRLPOOL 173ae81b447784ca8c64c88bdde5a5407bf1a2623a45c65ef3b3e1789a48ceec383600ec45d45d812470878b08eebdbbeb223e23bf1f2365f51e1c32d6ec19c1
+MISC ChangeLog 2918 SHA256 b807f717771d53f2025fb9e28974fdb3486a1823a83a1121392adb0d054421d0 SHA512 51c2052149c47fcfcef4e534e67fac10b5949a91ead4e2c32b6907974cc5204d28d275380334cf9899e82f751ce29bf30f763a48243b88bc612443b0e8d648fe WHIRLPOOL 9b983af3552dc8b7fac6f7f5620cf4f45b83cf254f1b77d2d329ee4074351775d27f588aed458474c07a08b3a58b81c77f3553d250b2e5673474c6b5bdcce619
+MISC ChangeLog-2015 663 SHA256 5663c44f03f319521b2cc0f1912bf8408ed1f4e69c47ab7baf1ba6d93e8a5788 SHA512 0a54b20d3ca12bd7b159d481855751a8e65ba452793380e01ce72b22d32f44dcfb2087628c12eb4dfa02df7311a44da909f740549bb118bffbaf59231a65a2d6 WHIRLPOOL 085d69d9755e08a48fb7be039f6be5ca7e041363b03f636c2b0bfa0e1afb1a55859dee17de84f7957ec18a29bf8033610695b37ac648ec079be008028610144e
+MISC metadata.xml 699 SHA256 b0cb9e812244c6c96d5f0a018ec7613a50b2353d9ab93e8ce13ee54f00523898 SHA512 b852fdd4b6bb507c118af56a1e3880ae17843e74b172b2a33d637c46d3451450c27f55205b3b3f8d9ff67b831efbb89e2df3480d0af783881def31df1a8ca6e1 WHIRLPOOL c51c30269b9bfc2602ba7bfd3764dc4bf65c5578bb321830e18535fb33bd8be513e4d486c42d345323659ff340835e2356e1bdcc5105bddd44d3cc52bbe2cfc1
diff --git a/sys-apps/nca/files/ncad.initd b/sys-apps/nca/files/ncad.initd
new file mode 100644
index 000000000000..fa2adcd9b3ec
--- /dev/null
+++ b/sys-apps/nca/files/ncad.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet --exec /sbin/ncad
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --retry 5 --quiet --exec /sbin/ncad
+ eend ${?}
+}
diff --git a/sys-apps/nca/metadata.xml b/sys-apps/nca/metadata.xml
new file mode 100644
index 000000000000..f60fb571575b
--- /dev/null
+++ b/sys-apps/nca/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ nca connects a pseudo terminal to the console's virtual terminals
+ (/dev/tty0...n) that are normally only accessible to someone with
+ local keyboard access. It is particularly useful in conjunction with
+ ncad since it then provides remote console access via SSH; with some
+ appropriate system start up scripts, ncad can be started immediately
+ the root filesystem has been mounted read-only, providing a cheap,
+ and only marginally inferior alternative to a serial console.
+ </longdescription>
+</pkgmetadata>
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
+}