mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
netkit-telnet: add new recipe
netkit-telnet includes the telnetd and client. telnetd: daemon for telnet protocol. telnet: client for telnet protocol. Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
parent
2d9f8ffb49
commit
56e5886585
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,41 @@
|
|||
From 31362e4c0d02b4a2b952ad0dd32acfb573c442f3 Mon Sep 17 00:00:00 2001
|
||||
From: Li xin <lixin.fnst@cn.fujitsu.com>
|
||||
Date: Fri, 28 Nov 2014 07:17:40 +0900
|
||||
Subject: [PATCH 2/2] WARNING Fix and modify "CFLAGS"
|
||||
|
||||
WARNING: QA Issue: File '/usr/sbin/in.telnetd' from netkit-telnet was
|
||||
already stripped, this will prevent future debugging! [already-stripped]
|
||||
|
||||
Upstream-Status: pending
|
||||
|
||||
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
|
||||
---
|
||||
telnetd/Makefile | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/telnetd/Makefile b/telnetd/Makefile
|
||||
index 72650b4..a4cf9fa 100644
|
||||
--- a/telnetd/Makefile
|
||||
+++ b/telnetd/Makefile
|
||||
@@ -9,7 +9,8 @@ include ../MRULES
|
||||
# take out -DPARANOID_TTYS.
|
||||
|
||||
CFLAGS += '-DISSUE_FILE="/etc/issue.net"' -DPARANOID_TTYS \
|
||||
- -DNO_REVOKE -DKLUDGELINEMODE -DDIAGNOSTICS
|
||||
+ -DNO_REVOKE -DKLUDGELINEMODE -DDIAGNOSTICS \
|
||||
+ -DLOGIN_WRAPPER=\"/${libdir}/telnetlogin\"
|
||||
# LIBS += $(LIBTERMCAP)
|
||||
|
||||
OBJS = telnetd.o state.o termstat.o slc.o sys_term.o utility.o \
|
||||
@@ -27,7 +28,7 @@ $(OBJS): defs.h ext.h pathnames.h telnetd.h logwtmp.h logout.h setproctitle.h
|
||||
telnetd.o: ../version.h
|
||||
|
||||
install: telnetd
|
||||
- install -s -m$(DAEMONMODE) telnetd $(INSTALLROOT)$(SBINDIR)/in.telnetd
|
||||
+ install -m$(DAEMONMODE) telnetd $(INSTALLROOT)$(SBINDIR)/in.telnetd
|
||||
install -m$(MANMODE) issue.net.5 $(INSTALLROOT)$(MANDIR)/man5/
|
||||
install -m$(MANMODE) telnetd.8 $(INSTALLROOT)$(MANDIR)/man8/in.telnetd.8
|
||||
ln -sf in.telnetd.8 $(INSTALLROOT)$(MANDIR)/man8/telnetd.8
|
||||
--
|
||||
1.8.4.2
|
||||
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# default: on
|
||||
# description: The telnet server serves telnet sessions; it uses \
|
||||
# unencrypted username/password pairs for authentication.
|
||||
service telnet
|
||||
{
|
||||
flags = REUSE
|
||||
socket_type = stream
|
||||
wait = no
|
||||
user = root
|
||||
server = /usr/sbin/in.telnetd
|
||||
log_on_failure += USERID
|
||||
disable = yes
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
DESCRIPTION = "netkit-telnet includes the telnet daemon and client."
|
||||
SECTION = "base"
|
||||
DEPENDS = "ncurses"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://telnet/telnet.cc;beginline=2;endline=3;md5=780868e7b566313e70cb701560ca95ef"
|
||||
|
||||
SRC_URI = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${BP}.tar.gz \
|
||||
file://To-aviod-buffer-overflow-in-telnet.patch \
|
||||
file://Warning-fix-in-the-step-of-install.patch \
|
||||
file://telnet-xinetd \
|
||||
"
|
||||
|
||||
EXTRA_OEMAKE = "INSTALLROOT=${D} SBINDIR=${sbindir} DAEMONMODE=755 \
|
||||
MANMODE=644 MANDIR=${mandir}"
|
||||
|
||||
do_configure () {
|
||||
./configure --prefix=${prefix}
|
||||
echo "LDFLAGS=${LDFLAGS}" > MCONFIG
|
||||
}
|
||||
|
||||
do_compile () {
|
||||
oe_runmake 'CC=${CC}' 'LD=${LD}' 'LDFLAGS=${LDFLAGS}' SUB=telnet
|
||||
oe_runmake 'CC=${CC}' 'LD=${LD}' 'LDFLAGS=${LDFLAGS}' LIBS=-lutil SUB=telnetd
|
||||
}
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 telnet/telnet ${D}${bindir}/telnet.${PN}
|
||||
install -d ${D}${sbindir}
|
||||
install -d ${D}${mandir}/man1
|
||||
install -d ${D}${mandir}/man5
|
||||
install -d ${D}${mandir}/man8
|
||||
oe_runmake SUB=telnetd install
|
||||
rm -rf ${D}${mandir}/man1
|
||||
# fix up hardcoded paths
|
||||
sed -i -e 's,/usr/sbin/,${sbindir}/,' ${WORKDIR}/telnet-xinetd
|
||||
install -d ${D}/etc/xinetd.d/
|
||||
install -p -m644 ${WORKDIR}/telnet-xinetd ${D}/etc/xinetd.d/telnet
|
||||
}
|
||||
|
||||
pkg_postinst_${PN} () {
|
||||
#!/bin/sh
|
||||
update-alternatives --install ${bindir}/telnet telnet telnet.${PN} 100
|
||||
}
|
||||
|
||||
pkg_prerm_${PN} () {
|
||||
#!/bin/sh
|
||||
update-alternatives --remove telnet telnet.${PN} 100
|
||||
}
|
||||
|
||||
SRC_URI[md5sum] = "d6beabaaf53fe6e382c42ce3faa05a36"
|
||||
SRC_URI[sha256sum] = "9c80d5c7838361a328fb6b60016d503def9ce53ad3c589f3b08ff71a2bb88e00"
|
||||
Loading…
Reference in New Issue
Block a user