summaryrefslogtreecommitdiff
path: root/net-misc/netkit-rsh
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/netkit-rsh')
-rw-r--r--net-misc/netkit-rsh/Manifest13
-rw-r--r--net-misc/netkit-rsh/files/rexec.pamd-pambase6
-rw-r--r--net-misc/netkit-rsh/files/rexec.xinetd12
-rw-r--r--net-misc/netkit-rsh/files/rlogin.pamd-pambase9
-rw-r--r--net-misc/netkit-rsh/files/rlogin.xinetd12
-rw-r--r--net-misc/netkit-rsh/files/rsh.pamd-pambase11
-rw-r--r--net-misc/netkit-rsh/files/rsh.xinetd12
-rw-r--r--net-misc/netkit-rsh/metadata.xml8
-rw-r--r--net-misc/netkit-rsh/netkit-rsh-0.17-r10.ebuild76
9 files changed, 159 insertions, 0 deletions
diff --git a/net-misc/netkit-rsh/Manifest b/net-misc/netkit-rsh/Manifest
new file mode 100644
index 000000000000..8414f275f397
--- /dev/null
+++ b/net-misc/netkit-rsh/Manifest
@@ -0,0 +1,13 @@
+AUX rexec.pamd-pambase 251 SHA256 3227d179ed7dc96b4ba300f462a623e798d43876f22fe69cab3a4ffbcf3005ee SHA512 f787317e812f8308c19554b3868d2ccd67e1f6fd017c40fad911c43bc383d9b521cc597477e48d7e082901f2af1c8125cc0476e9a697469244a62b306ab35dc6 WHIRLPOOL 10605712acfd5f880e0cf04903af09addbab2594456003840bcf5e41444415bffe5d47ac7512951a34466404b4c2c889e2359cbd6125f7a51b15e1e8c22158f6
+AUX rexec.xinetd 280 SHA256 52e523dacdf1e8f6b296e97a6a6a33a3addbccf7cbd8a94e8eeaaf20ef644bc1 SHA512 3443858e0d0f3f97669338b1f800ddb736a975a56af62dd553f4a41a4c6e4bd35149399c37734144de9076c1c7e7058c403d2b7af63fc79e8f3e6e1cc9d58ffb WHIRLPOOL 3b494440a48eca42f865927eb763447096c5e852cac038823998ccc6843617e3c9cf58fe2d668769c1f9ecdb3d0603444157506bad15f0d41dc2db56b72f6462
+AUX rlogin.pamd-pambase 343 SHA256 dead2624a30cd1446c0d0fc947953144092ce4d9955ec90eb32e4314a9b35a11 SHA512 639bd648ca75c854a23f18716568c23ee61e7358ac098e315e2d7ab2bd5f047c0bcbc878096225d86198f139a1fcbf9a51544f52e83e043422c6c29efb37902d WHIRLPOOL 51d26b283688e6217cb0fdc66e8a5685c4dfc4112522c787846d24393db47011997fe1977762e5f287d40a9fab6a3828447ca3cf52e8a4fc3a7b4c362c298028
+AUX rlogin.xinetd 282 SHA256 13bd540eb312acada08f778d29c05bbffb81138962c5b9f2d638ce905ac54312 SHA512 2e8a468420cb2cb08111d0d9a6498b02e6c768682bf9ea9d06a7dcbe1b12336fea25265e2705f2fa028d91cf453ca5fc1a9245f1d03a83e4d99064b078a2f322 WHIRLPOOL edc6517296a4db59c490d42adce5dea869688a40b9a64e777c0244d342dee9f94004cf3ee4ba4733f01a8914ae97222e889a65f5aa5f6fb0eb30c3d216c0c9bc
+AUX rsh.pamd-pambase 365 SHA256 903d04746b46799cf2ceebb70e7b939120682147ef7b2cd8514809599dc26466 SHA512 cbf7af64773b39254136d04e5195ac3737815ff7c033278b3bfd6173ec3a0ae569393c86d5def38da11072718c004a5aeb75733b1910ec9dc0125c72edaa915b WHIRLPOOL 16b93ea64859790387d9bf237f97662da024b06e17ed8be7b88a2e1d3312ccacd2981d3fae7f5e2472f2646edae805cb29f2b2025666b71353546f5fd6c8944f
+AUX rsh.xinetd 279 SHA256 0b4ca94d07628a9096400846bae40c80c4ab92123bfd2722d07e364c48fa00dd SHA512 3c6b29e51adf5766ba417ef85763d5c85384be653109e02df307ed61047eb4d4706980da56b121f3bcc63b74b842c5e8ecaaf2629d18e5d2723b3aac08e0282d WHIRLPOOL 4b8a163152f4315fb1aee3afdc4ffa2c955ae7684fc2ebe1a724f4997f5306b2e6a1a624a2a3d3465b39498a1826db938686eefcc19676b85bea3de15aec5055
+DIST netkit-rsh-0.17-patches-3.tar.lzma 13875 SHA256 e7ab523e06cf12cf2b88b404106fd56534ec15b65621e660dfd6e833037680f0 SHA512 0d9c6a8a8d13264b8f2eb6b62e6c65b67cf8b09bd36043acae405c7b2154724733db15d653e4f7ac7d21feebcfa6cd365ca89993fc77eabc5a709d7a6383b187 WHIRLPOOL 9aff6b1cbe1a94cd8bfb371c007cbdd0f0ad6b048fe769eba67bef5b66a4a7fdc3280fef93a9b27be78434e2d97f122445c563aa413a83a8b22224b101ba0df5
+DIST netkit-rsh-0.17.tar.gz 58268 SHA256 edcac7fa18015f0bc04e573f3f54ae3b638d71335df1ad7dae692779914ad669 SHA512 0d8da4a779da137f7b3f158ad010b71f2357c86a2160dbd19331cbf45f86a46110cdfdfd3c4ba2d19ddf3634917bf981eb91bfde02c3cdbc946df8695db75218 WHIRLPOOL 25ea38f5f7883fc89ab9c1dce6b850b177ec78ea2d619341f6001acca61e619bbf1e9d6b79b13eee164d16261ba1b72d07c74f522f192272ce61a2280c4a01b4
+DIST rexec-1.5.tar.gz 18469 SHA256 9bcf9986eb9637d1b8e8ab62a61c80f3422d628e837e72c6ad8c2e38604ccaf4 SHA512 7ed455a921ad71749154bd8e586ac2a624f357b56be17db73b9ed7c1ca1bc19cfb9aee748f79cc649184dfb535ffe5e887643b73a25c3fb6520d4e19fae7333a WHIRLPOOL 3356766c1c048da0c8be0a62cfb2d1f2c13aad0122bf4bfd8540f0e3622a40e9646aa2a9ebbe2f588d9d18a84f70960a60eb496f727b4367f4e20f9d9548ca6d
+EBUILD netkit-rsh-0.17-r10.ebuild 1772 SHA256 7eed50d650c8eb62b0d1dfeeff1ce9d701f2e7a0d656b85ab364a80cead72b2d SHA512 3e287721009f744bc6bac09539a89e8435226d97f5f2a8c98c6acb03cbac0333099f88d1e992edf78c53e897ff3361436c33e6bcc7ec04ab79759510ceb420b0 WHIRLPOOL d8a4a8a4482aa48a3aa8447dfdaf540a587183afbc992c18bf1ff66073f4cc78a7f0d8d8aa3f7db6dedd48c7c6da5d3c753645906640fd13bb013b48fbf8057a
+MISC ChangeLog 3093 SHA256 69aec263f8f1f887643b91da6b0651b97aea5f14240f291618e3ea7c1def2db8 SHA512 dc46195af17b219fb08ac34366567d831b058cb0f3db3044c844987fa2303439400a58451f59f1b5ff45ac5eeaf755000002f55d1147589fca46b4b33440063d WHIRLPOOL e441ae5ed1a2178ee95f50417775a1cf1e4183e3698c6479233426b94aeaac9a2128ab114a36ce3e0269463136a8e7d54b0cebe0b9ded2d33a30eddd45da45c7
+MISC ChangeLog-2015 11856 SHA256 52548a899cb27940796ec7096689e1a654e21fd77d655fd967bc07b2fe5492a5 SHA512 86c1b0ad3e18e6c947f4e70689bdd2562fbe9096f3d0f1f0cfa0e0cfb7e72c625f25273c3a484d53900d03d6b2c43e878e5a7d7f9237ea5876614b0e5a71d5fe WHIRLPOOL e748caff791c4bd8393fa202dddd3a0cfda3f541a3a7784f109366429f8b72572f10256eeea222c9c65ee8fee76ffc096e69babdecb47b8298b070c396f31544
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/net-misc/netkit-rsh/files/rexec.pamd-pambase b/net-misc/netkit-rsh/files/rexec.pamd-pambase
new file mode 100644
index 000000000000..8657883e32aa
--- /dev/null
+++ b/net-misc/netkit-rsh/files/rexec.pamd-pambase
@@ -0,0 +1,6 @@
+# For root login to succeed here with pam_securetty, "rexec" must be
+# listed in /etc/securetty.
+auth required pam_securetty.so
+auth include system-remote-login
+account include system-remote-login
+session include system-remote-login
diff --git a/net-misc/netkit-rsh/files/rexec.xinetd b/net-misc/netkit-rsh/files/rexec.xinetd
new file mode 100644
index 000000000000..fea3710ec664
--- /dev/null
+++ b/net-misc/netkit-rsh/files/rexec.xinetd
@@ -0,0 +1,12 @@
+service exec
+{
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = root
+ group = tty
+ server = /usr/sbin/in.rexecd
+ log_on_success = PID HOST USERID EXIT DURATION
+ log_on_failure = USERID ATTEMPT
+ disable = yes
+}
diff --git a/net-misc/netkit-rsh/files/rlogin.pamd-pambase b/net-misc/netkit-rsh/files/rlogin.pamd-pambase
new file mode 100644
index 000000000000..9b4481edd6f8
--- /dev/null
+++ b/net-misc/netkit-rsh/files/rlogin.pamd-pambase
@@ -0,0 +1,9 @@
+#%PAM-1.0
+# For root login to succeed here with pam_securetty, "rlogin" must be
+# listed in /etc/securetty.
+auth required pam_securetty.so
+auth sufficient pam_rhosts.so
+auth include system-remote-login
+account include system-remote-login
+password include system-remote-login
+session include system-remote-login
diff --git a/net-misc/netkit-rsh/files/rlogin.xinetd b/net-misc/netkit-rsh/files/rlogin.xinetd
new file mode 100644
index 000000000000..76a99beba8d1
--- /dev/null
+++ b/net-misc/netkit-rsh/files/rlogin.xinetd
@@ -0,0 +1,12 @@
+service login
+{
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = root
+ group = tty
+ server = /usr/sbin/in.rlogind
+ log_on_success = PID HOST USERID EXIT DURATION
+ log_on_failure = USERID ATTEMPT
+ disable = yes
+}
diff --git a/net-misc/netkit-rsh/files/rsh.pamd-pambase b/net-misc/netkit-rsh/files/rsh.pamd-pambase
new file mode 100644
index 000000000000..460a2cd99f99
--- /dev/null
+++ b/net-misc/netkit-rsh/files/rsh.pamd-pambase
@@ -0,0 +1,11 @@
+#%PAM-1.0
+# For root login to succeed here with pam_securetty, "rsh" must be
+# listed in /etc/securetty.
+auth required pam_securetty.so
+
+# Uncomment this and comment the following to use rhosts_auth module
+#auth required pam_rhosts.so
+auth include system-remote-login
+
+account include system-remote-login
+session include system-remote-login
diff --git a/net-misc/netkit-rsh/files/rsh.xinetd b/net-misc/netkit-rsh/files/rsh.xinetd
new file mode 100644
index 000000000000..3d1fa6527943
--- /dev/null
+++ b/net-misc/netkit-rsh/files/rsh.xinetd
@@ -0,0 +1,12 @@
+service shell
+{
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = root
+ group = tty
+ server = /usr/sbin/in.rshd
+ log_on_success = PID HOST USERID EXIT DURATION
+ log_on_failure = USERID ATTEMPT
+ disable = yes
+}
diff --git a/net-misc/netkit-rsh/metadata.xml b/net-misc/netkit-rsh/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/net-misc/netkit-rsh/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-misc/netkit-rsh/netkit-rsh-0.17-r10.ebuild b/net-misc/netkit-rsh/netkit-rsh-0.17-r10.ebuild
new file mode 100644
index 000000000000..98ca83dfefd9
--- /dev/null
+++ b/net-misc/netkit-rsh/netkit-rsh-0.17-r10.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils pam toolchain-funcs fcaps
+
+PATCHVER="3"
+DESCRIPTION="Netkit's Remote Shell Suite: rexec{,d} rlogin{,d} rsh{,d}"
+HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
+SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz
+ mirror://gentoo/rexec-1.5.tar.gz
+ mirror://gentoo/${P}-patches-${PATCHVER}.tar.lzma"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="pam"
+
+RDEPEND=">=sys-libs/ncurses-5.2
+ pam? ( >=sys-auth/pambase-20080219.1 )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+FILECAPS=(
+ cap_net_bind_service usr/bin/r{cp,login,sh}
+)
+
+src_unpack() {
+ default
+
+ cd "${S}"
+ rm -rf rexec
+ mv ../rexec rexec
+}
+
+src_prepare() {
+ [[ -n ${PATCHVER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
+
+ if tc-is-cross-compiler ; then
+ # Can't do runtime tests when cross-compiling
+ sed -i -e "s|./__conftest|: ./__conftest|" configure
+ fi
+}
+
+src_configure() {
+ tc-export CC
+ ${CONFIG_SHELL:-/bin/sh} ./configure $(usex pam '' '--without-pam') || die
+
+ sed -i \
+ -e "s:-pipe -O2:${CFLAGS}:" \
+ -e "/^LDFLAGS=$/d" \
+ -e "s:-Wpointer-arith::" \
+ MCONFIG || die
+}
+
+src_install() {
+ local b exe
+ insinto /etc/xinetd.d
+ for b in rcp rexec{,d} rlogin{,d} rsh{,d} ; do
+ if [[ ${b} == *d ]] ; then
+ dosbin ${b}/${b}
+ dosym ${b} /usr/sbin/in.${b}
+ doman ${b}/${b}.8
+ else
+ dobin ${b}/${b}
+ doman ${b}/${b}.1
+ if [[ ${b} != "rcp" ]]; then
+ newins "${FILESDIR}"/${b}.xinetd ${b}
+ newpamd "${FILESDIR}/${b}.pamd-pambase" ${b}
+ fi
+ fi
+ done
+ dodoc README ChangeLog BUGS
+ newdoc rexec/README README.rexec
+}