2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-01-18 22:27:22 +01:00
|
|
|
#
|
|
|
|
# netkittelnet
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2012-09-21 14:28:34 +02:00
|
|
|
NETKITTELNET_VERSION = 0.17
|
|
|
|
NETKITTELNET_SOURCE = netkit-telnet-$(NETKITTELNET_VERSION).tar.gz
|
|
|
|
NETKITTELNET_SITE = ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
|
|
|
|
NETKITTELNET_LICENSE = BSD-4c
|
|
|
|
NETKITTELNET_DEPENDENCIES = netkitbase
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2012-09-21 14:28:34 +02:00
|
|
|
define NETKITTELNET_CONFIGURE_CMDS
|
2003-01-18 22:27:22 +01:00
|
|
|
# use ANSI syntax
|
2012-09-21 14:28:34 +02:00
|
|
|
$(SED) "s/main()/main(void)/;" $(@D)/configure
|
2003-01-18 22:27:22 +01:00
|
|
|
# Disable termcap support
|
2012-09-21 14:28:34 +02:00
|
|
|
$(SED) "s~\(.*termcap\.h.*\)~/* \1 */~;" $(@D)/telnetd/telnetd.c
|
2012-10-09 09:36:35 +02:00
|
|
|
# C++ support not needed for telnetd
|
|
|
|
$(SED) 's/CXX/CC/g' -e 's/conftest.cc/conftest.c/g' $(@D)/configure
|
2012-09-21 14:28:34 +02:00
|
|
|
(cd $(@D); \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
./configure \
|
|
|
|
--installroot=$(TARGET_DIR))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define NETKITTELNET_BUILD_CMDS
|
|
|
|
$(MAKE) SUB=telnetd -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define NETKITTELNET_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/telnetd/telnetd $(TARGET_DIR)/usr/sbin/telnetd
|
2003-01-18 22:27:22 +01:00
|
|
|
# Enable telnet in inetd
|
2003-11-19 18:17:56 +01:00
|
|
|
$(SED) "s~^#telnet.*~telnet\tstream\ttcp\tnowait\troot\t/usr/sbin/telnetd\t/usr/sbin/telnetd~;" $(TARGET_DIR)/etc/inetd.conf
|
2012-09-21 14:28:34 +02:00
|
|
|
endef
|
2003-01-18 22:27:22 +01:00
|
|
|
|
2012-09-21 14:28:34 +02:00
|
|
|
$(eval $(generic-package))
|