summaryrefslogtreecommitdiff
path: root/net-misc/netkit-telnetd
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 /net-misc/netkit-telnetd
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/netkit-telnetd')
-rw-r--r--net-misc/netkit-telnetd/Manifest11
-rw-r--r--net-misc/netkit-telnetd/files/net.issue.sample4
-rw-r--r--net-misc/netkit-telnetd/files/netkit-telnetd-0.17-cflags-gnu_source.patch23
-rw-r--r--net-misc/netkit-telnetd/files/telnetd.xinetd10
-rw-r--r--net-misc/netkit-telnetd/metadata.xml16
-rw-r--r--net-misc/netkit-telnetd/netkit-telnetd-0.17-r10.ebuild88
-rw-r--r--net-misc/netkit-telnetd/netkit-telnetd-0.17-r11.ebuild88
7 files changed, 240 insertions, 0 deletions
diff --git a/net-misc/netkit-telnetd/Manifest b/net-misc/netkit-telnetd/Manifest
new file mode 100644
index 000000000000..dca87d7e0206
--- /dev/null
+++ b/net-misc/netkit-telnetd/Manifest
@@ -0,0 +1,11 @@
+AUX net.issue.sample 117 SHA256 14c92d55c12c680c69f557bbfbeaa4d03e652d4e06d1bedd8fecf7faaf076706 SHA512 f290b0fc214dd58acfb186c269180aae29c42768bfeab21aa72604ad8ce50c354f18d9b568d04885554c5d1c27017dd7132e406933050450d8605d16d9263b79 WHIRLPOOL 776ca20ccc850124378750354c44943938c8f7d93e2aba30793022b267c393bd17c56cf9e3daf979d5b4fdf98c5909a0efc4fc05034dd1e5e6c7ce0c853e5b2f
+AUX netkit-telnetd-0.17-cflags-gnu_source.patch 830 SHA256 14da0f4796691e0a7e656e72cb78bfd599d5f83b1f6aadd4c2870bcfd6e1cfaa SHA512 881065a2156414381e5cb3776ea91e4de0ad2d09065ba8ebecf8001b7f6a87278e6724dd5aa6d43f66554aed38fb0eb1b9103c2720ccc1a6aba4f074a5ec0f8a WHIRLPOOL eac690495c1a05db7da5d7d715a635987a6340afa9f8db9826ea530515d606840b249619ba17a6a74840e0388a841af59d8137a596571e98acbbef7f5576a83d
+AUX telnetd.xinetd 205 SHA256 cb8fe24c1f6113ca397e712898d3decc5ba901994c68262b0ff9e2b091e4576c SHA512 c587988b5dc1d1bf5ce99df9035d2388990fa799ba3d6be8f895fd5ee2c32c5ca4777815c6a1e29178753734caf7ea19e8f64b2e312ba49dcb002e0d9f97953c WHIRLPOOL f38f70e9cefd57878088867babf3831b46063851fc116fb45a51e0e2c41a1398498cacd8dde2d4d4a1c21f968c26c539e7629eb88727f253a3cd677f44afedbc
+DIST netkit-telnet-0.17.tar.gz 133749 SHA256 9c80d5c7838361a328fb6b60016d503def9ce53ad3c589f3b08ff71a2bb88e00 SHA512 e2cfabed12326af5e288def1821353eacffb4586008263dcd1bed1a9dd9d8548e51e68d7ede58ea75927783ba534ea8807ec722271843a77146f064f3d826dd3 WHIRLPOOL 0a04763f8d42b1985295f9db3472aa80f4f1cc96a151ab66e34275c18809dcbc1a072c4754c0a989cca576a7d7ff6d8795865f6b372b1fe4953dbe0e87665728
+DIST netkit-telnet_0.17-36.diff.gz 27226 SHA256 cd192e3acbef83a3e8fbacfa26e1f6ededfe50587e9b372b5a38ce5928d746f7 SHA512 7cd1ec5f96fcacee551700d65f62b6c217e0d9b5220a218aa60fceb3883d0754831606a247355dc2bf6486a02175b8d9b27058d6bc788de8e1b80545fdedbf9a WHIRLPOOL c651f4cacabe5b42fefb9f9fa1f306d5aafad7c8b3e0c5eb6afcf15609487ef726991a1e5eb88c7f95364a1e166b26f01814b3671b72ffec14673e5927898a7b
+DIST netkit-telnet_0.17-40.debian.tar.xz 36104 SHA256 41e0f50d1d674e487dd42d7b9aac25973a2d45b2b78f301a7f01ca5b34d66e20 SHA512 7fd13a7bf95a9b09b5a81080d2b8904150646f5b48ec2f8f0736b41caaf640a6369ab5fcd056677de029e7c571586982a7e8354f74c3b1f94d048d31d7a3e1d2 WHIRLPOOL c7fe212485206080fa2fd697f31caa2c872b81c4fff3cfbd9117d26184ce39b554fd6eb42916d9f96911c73217a98a0f15b7ba03fde59f9b6632560c9e2f66ad
+EBUILD netkit-telnetd-0.17-r10.ebuild 2481 SHA256 b185810b51887140bc38e0e518fe5722c966ec1dbb1c2c9ca98e5a00b087b37a SHA512 d81d197c9fd78d21cd387de65e544b5a7d349e0dbc32dd333f016cdf68fa1647f50839d91d024099d8803fffcfe4458cbc47022c9a2265e37e4da93b16c43487 WHIRLPOOL bc2e9a810bfca7bba1e1eca1a00df1f94f83dbd37316f94a64563c885a0496a142d65e6a8480277770b0f4d415e1da4218d65658aec0bd48a8af8d81dabf0dc0
+EBUILD netkit-telnetd-0.17-r11.ebuild 2515 SHA256 d4994ab9e4391b761a4e240278722aa46d370e6a6f42ffd67f150309432b7134 SHA512 74b064da4a679c634e5103196f2783acd93da7d553bb9917614e92499d18db30e8b4ec7e4fdd8e064debaf2a7ce6f0aacfccb1da655ff3511b8701fea333587e WHIRLPOOL 0fabe29debb21fbb923d8b65b149f6c382734b5404dc1772fb73581640ee8e8e1d98cd3cfede6b33eb41ad014a4e705227707b44b4d97a3ca5b056f2c45ff0e7
+MISC ChangeLog 3764 SHA256 d6f1edc126642b11955d56e6ad5ec040935164114ab713f4350c4445181dd8b0 SHA512 4b88071148a772ade3d94ac7f92ac4e6d1f3ddae903c2e915fcc8ea8b35ddf43afa76404909fce81fd26c17a8a4d3f982321d71f737b8add044a8afb310c0a6d WHIRLPOOL 144983b30d136fc62a82e3007c66ea28450a910f525808266367695ce9e5a73d2a5cd84cf5f3f791e8c65000685b07dfd1074a1f8d083eff787dc5fb4eeb625a
+MISC ChangeLog-2015 8046 SHA256 d6934cdd7fa4d95eabd9b6274adc813d691f92edf7fee91b994fb6e03c99a436 SHA512 dfff5f4d755a70a09e7f46c4b66530c1acb1116a5bd9707bfff7f8acf44df806a2f8c8fe6952f5c4963b504b9ef668f67b19907096ad3bba28bc3bfe99fd5e42 WHIRLPOOL a102f6a3aed0ea8aef09bf2f89f9f3ee082facf8a4047c18026d42811cd679a66d03ca4e8a2459e07bcc168b07c866d8059d4571c6d86cdd51880a395dda942a
+MISC metadata.xml 598 SHA256 01abbdd7e1fc1944d5e824c0a584cbfee97eb774df4c7e1ecc5e68ed9f0a87a9 SHA512 0e67cc6f6f92fd784726eb82124652850e84be55006f00fd4b8071272219f7d9581d2f52c82df26a509a6dd1abcfe8ea7cb0c1eb442750a3700d637163335f83 WHIRLPOOL 4a0b0dbf1fa42a8e0ae7e9fb4b6df3ea24a55e2f0f2e14aaa118dcb2650d8bd7f00024299a28148e8eac229e65bbbf4d7cc70f3a86e4edd957e6db36ffd370bb
diff --git a/net-misc/netkit-telnetd/files/net.issue.sample b/net-misc/netkit-telnetd/files/net.issue.sample
new file mode 100644
index 000000000000..79a4f21259d3
--- /dev/null
+++ b/net-misc/netkit-telnetd/files/net.issue.sample
@@ -0,0 +1,4 @@
+# Example /etc/issue.net(5)
+
+# This is %h running %s:%r on a %m
+# You are on /dev/ttyp%t at %d' > ${D}/etc/issue.net
diff --git a/net-misc/netkit-telnetd/files/netkit-telnetd-0.17-cflags-gnu_source.patch b/net-misc/netkit-telnetd/files/netkit-telnetd-0.17-cflags-gnu_source.patch
new file mode 100644
index 000000000000..1ebbda77c078
--- /dev/null
+++ b/net-misc/netkit-telnetd/files/netkit-telnetd-0.17-cflags-gnu_source.patch
@@ -0,0 +1,23 @@
+--- telnetd/Makefile.orig 2004-09-29 22:16:50.175839840 -0500
++++ telnetd/Makefile 2004-09-29 22:09:30.439689896 -0500
+@@ -10,7 +10,7 @@
+
+ CFLAGS += '-DISSUE_FILE="/etc/issue.net"' -DPARANOID_TTYS \
+ -DNO_REVOKE -DKLUDGELINEMODE -DDIAGNOSTICS \
+- -DLOGIN_WRAPPER=\"/usr/lib/telnetlogin\"
++ -DLOGIN_WRAPPER=\"/usr/sbin/telnetlogin\" -D_GNU_SOURCE
+ # LIBS += $(LIBTERMCAP)
+
+ OBJS = telnetd.o state.o termstat.o slc.o sys_term.o utility.o \
+--- telnet/Makefile.orig 2004-11-01 15:23:29 -0500
++++ telnet/Makefile 2004-11-01 16:05:05 -0500
+@@ -6,7 +6,7 @@
+ #CXXFLAGS:=$(patsubst -O2, -g, $(CXXFLAGS))
+
+ # -DAUTHENTICATE
+-CXXFLAGS += -DUSE_TERMIO -DKLUDGELINEMODE
++CXXFLAGS += -DUSE_TERMIO -DKLUDGELINEMODE -D_GNU_SOURCE
+ LIBS = $(LIBTERMCAP)
+
+ SRCS = commands.cc main.cc network.cc ring.cc sys_bsd.cc telnet.cc \
+
diff --git a/net-misc/netkit-telnetd/files/telnetd.xinetd b/net-misc/netkit-telnetd/files/telnetd.xinetd
new file mode 100644
index 000000000000..63dd6dac9e7f
--- /dev/null
+++ b/net-misc/netkit-telnetd/files/telnetd.xinetd
@@ -0,0 +1,10 @@
+service telnet
+{
+ flags = REUSE
+ socket_type = stream
+ wait = no
+ user = root
+ server = /usr/sbin/in.telnetd
+ log_on_failure += USERID
+ disable = yes
+}
diff --git a/net-misc/netkit-telnetd/metadata.xml b/net-misc/netkit-telnetd/metadata.xml
new file mode 100644
index 000000000000..428ad1b85200
--- /dev/null
+++ b/net-misc/netkit-telnetd/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>paolo.pedroni@iol.it</email>
+ <name>Paolo Pedroni</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <longdescription>The telnetd program is a server which supports the DARPA telnet interactive communication protocol.</longdescription>
+ <upstream>
+ <remote-id type="launchpad">netkit-telnet</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-misc/netkit-telnetd/netkit-telnetd-0.17-r10.ebuild b/net-misc/netkit-telnetd/netkit-telnetd-0.17-r10.ebuild
new file mode 100644
index 000000000000..c4cb608960bd
--- /dev/null
+++ b/net-misc/netkit-telnetd/netkit-telnetd-0.17-r10.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils toolchain-funcs
+
+PATCHLEVEL=36
+DESCRIPTION="Standard Linux telnet client and server"
+#old HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
+# This might be the best HOMEPAGE now?
+HOMEPAGE="https://launchpad.net/netkit-telnet"
+# http://packages.debian.org/stablesource/netkit-telnet
+# http://packages.debian.org/testing/source/netkit-telnet
+# No upstream mirror exists anymore?
+# old ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-telnet-${PV}.tar.gz
+SRC_URI="mirror://gentoo/netkit-telnet-${PV}.tar.gz
+ mirror://debian/pool/main/n/netkit-telnet/netkit-telnet_0.17-${PATCHLEVEL}.diff.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+DEPEND=">=sys-libs/ncurses-5.2:=
+ !net-misc/telnet-bsd"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/netkit-telnet-${PV}
+
+src_prepare() {
+ # Patch: [0]
+ # Gentoo lacks a maintainer for this package right now. And a
+ # security problem arose. While reviewing our options for how
+ # should we proceed with the security bug we decided it would be
+ # better to just stay in sync with debian's own netkit-telnet
+ # package. Lots of bug fixes by them over time which were not in
+ # our telnetd.
+ epatch "${WORKDIR}"/netkit-telnet_0.17-${PATCHLEVEL}.diff
+
+ # Patch: [1]
+ # after the deb patch we need to add a small patch that defines
+ # gnu source. This is needed for gcc-3.4.x (needs to be pushed
+ # back to the deb folk?)
+ epatch "${FILESDIR}"/netkit-telnetd-0.17-cflags-gnu_source.patch
+
+ # Fix portability issues.
+ sed -i \
+ -e 's:echo -n:printf %s:' \
+ configure || die
+}
+
+src_configure() {
+ tc-export CC CXX
+
+ # Not a real autoconf script.
+ ./configure --prefix=/usr || die
+
+ sed -i \
+ -e "s:-pipe -O2:${CFLAGS}:" \
+ -e "s:^\(LDFLAGS=\).*:\1${LDFLAGS}:" \
+ -e "s:-Wpointer-arith::" \
+ MCONFIG || die
+}
+
+src_compile() {
+ emake
+ emake -C telnetlogin
+}
+
+src_install() {
+ dobin telnet/telnet
+
+ dosbin telnetd/telnetd
+ dosym telnetd /usr/sbin/in.telnetd
+ dosbin telnetlogin/telnetlogin
+ doman telnet/telnet.1
+ doman telnetd/*.8
+ doman telnetd/issue.net.5
+ dosym telnetd.8 /usr/share/man/man8/in.telnetd.8
+ doman telnetlogin/telnetlogin.8
+ dodoc BUGS ChangeLog README
+ dodoc "${FILESDIR}"/net.issue.sample
+ newdoc telnet/README README.telnet
+ newdoc telnet/TODO TODO.telnet
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/telnetd.xinetd telnetd
+}
diff --git a/net-misc/netkit-telnetd/netkit-telnetd-0.17-r11.ebuild b/net-misc/netkit-telnetd/netkit-telnetd-0.17-r11.ebuild
new file mode 100644
index 000000000000..6c1cadefb044
--- /dev/null
+++ b/net-misc/netkit-telnetd/netkit-telnetd-0.17-r11.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils toolchain-funcs
+
+PATCHLEVEL=40
+DESCRIPTION="Standard Linux telnet client and server"
+#old HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
+# This might be the best HOMEPAGE now?
+HOMEPAGE="https://launchpad.net/netkit-telnet"
+# http://packages.debian.org/stablesource/netkit-telnet
+# http://packages.debian.org/testing/source/netkit-telnet
+# No upstream mirror exists anymore?
+# old ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-telnet-${PV}.tar.gz
+SRC_URI="mirror://gentoo/netkit-telnet-${PV}.tar.gz
+ mirror://debian/pool/main/n/netkit-telnet/netkit-telnet_0.17-${PATCHLEVEL}.debian.tar.xz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=sys-libs/ncurses-5.2:=
+ !net-misc/telnet-bsd"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/netkit-telnet-${PV}
+
+src_prepare() {
+ # Patch: [0]
+ # Gentoo lacks a maintainer for this package right now. And a
+ # security problem arose. While reviewing our options for how
+ # should we proceed with the security bug we decided it would be
+ # better to just stay in sync with debian's own netkit-telnet
+ # package. Lots of bug fixes by them over time which were not in
+ # our telnetd.
+ EPATCH_FORCE="yes" EPATCH_SUFFIX="diff" epatch "${WORKDIR}"/debian/patches
+
+ # Patch: [1]
+ # after the deb patch we need to add a small patch that defines
+ # gnu source. This is needed for gcc-3.4.x (needs to be pushed
+ # back to the deb folk?)
+ epatch "${FILESDIR}"/netkit-telnetd-0.17-cflags-gnu_source.patch
+
+ # Fix portability issues.
+ sed -i \
+ -e 's:echo -n:printf %s:' \
+ configure || die
+}
+
+src_configure() {
+ tc-export CC CXX
+
+ # Not a real autoconf script.
+ ./configure --prefix=/usr || die
+
+ sed -i \
+ -e "s:-pipe -O2:${CFLAGS}:" \
+ -e "s:^\(LDFLAGS=\).*:\1${LDFLAGS}:" \
+ -e "s:-Wpointer-arith::" \
+ MCONFIG || die
+}
+
+src_compile() {
+ emake
+ emake -C telnetlogin
+}
+
+src_install() {
+ dobin telnet/telnet
+
+ dosbin telnetd/telnetd
+ dosym telnetd /usr/sbin/in.telnetd
+ dosbin telnetlogin/telnetlogin
+ doman telnet/telnet.1
+ doman telnetd/*.8
+ doman telnetd/issue.net.5
+ dosym telnetd.8 /usr/share/man/man8/in.telnetd.8
+ doman telnetlogin/telnetlogin.8
+ dodoc BUGS ChangeLog README
+ dodoc "${FILESDIR}"/net.issue.sample
+ newdoc telnet/README README.telnet
+ newdoc telnet/TODO TODO.telnet
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/telnetd.xinetd telnetd
+}