tar -xvf openwrt-sdk-lantiq-xrx200_gcc-13.3.0_musl.Linux-x86_64.tar.zst
tar -xvf openwrt-toolchain-lantiq-xrx200_gcc-13.3.0_musl.Linux-x86_64.tar.zst
I have created the packages and makefile
cd package
mkdir telnetd-ssl
vim Makefile
# $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $
include $(TOPDIR)/rules.mk
PKG_NAME:=telnetd-ssl
PKG_VERSION:=0.17.41
PKG_RELEASE:=1
PKG_MD5SUM:=3063643c5d200b863cf3a794c22325aa
PKG_SOURCE_URL:=https://packages.debian.org/sid/telnetd-ssl
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/telnetd-ssl
SECTION:=net
CATEGORY:=Network
TITLE:=The in.telnetd program is a server that handles the Defense Advanced Research Project Agency (DARPA) interactive telnet communication protocol.
SSL telnetd replaces the regular telnetd by using SSL authentication and encryption. It works in conjunction with the regular telnetd in both directio
ns. It checks whether the other side also uses SSL, if not it falls back to the regular telnet protocol.
URL:=https://packages.debian.org/sid/telnetd-ssl
DEPENDS:=libopenssl3
endef
define Build/Configure
$(call Build/Configure/Default,--without-pth-test --with-pth=$(STAGING_DIR),\
CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -nostdinc++" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -luClibc++ -lc -lm -lgcc")
endef
define Build/Compile
$(call Build/Compile/Default)
endef
define Package/telnetd-ssl/install
mkdir -p $(1)/usr/bin
$(CP) $(PKG_BUILD_DIR)/src/telnetd-ssl $(1)/usr/bin/
endef
$(eval $(call BuildPackage,telnetd-ssl))
Now I have tried to make the package and
make V=99 package/telnetd-ssl
make: 'package/telnetd-ssl' is up to date.
include $(TOPDIR)/rules.mk
PKG_NAME:=telnetd-ssl
PKG_VERSION:=0.17.41
PKG_RELEASE:=1
PKG_SOURCE:=netkit-telnet-ssl_0.17.41+really0.17.orig.tar.gz
PKG_SOURCE_URL:=http://deb.debian.org/debian/pool/main/n/netkit-telnet-ssl
PKG_HASH:=9c80d5c7838361a328fb6b60016d503def9ce53ad3c589f3b08ff71a2bb88e00
PKG_MAINTAINER:=Me
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_BUILD_DIR=$(BUILD_DIR)/netkit-telnet-0.17
include $(INCLUDE_DIR)/package.mk
define Package/telnetd-ssl
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libopenssl
TITLE:=Telnet with ssl support
URL:=http://deb.debian.org/debian/pool/main/n/netkit-telnet-ssl
endef
define Package/telnetd-ssl/description
The in.telnetd program is a server that handles the Defense Advanced Research Project Agency (DARPA) interactive telnet communication protocol.
SSL telnetd replaces the regular telnetd by using SSL authentication and encryption. It works in conjunction with the regular telnetd in both directions. It checks whether the other side also uses SSL, if not it falls back to the regular telnet protocol.
Advantages over the regular telnetd: passwords and data sent do not go in the clear on the line.
endef
define Build/Configure
$(call Build/Configure/Default,--prefix=/usr)
endef
define Package/telnetd-ssl/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/telnetd-ssl $(1)/usr/bin/
endef
$(eval $(call BuildPackage,telnetd-ssl))
I use other makefile with Cmake, but still give me the same error using configure script
include $(TOPDIR)/rules.mk
PKG_NAME:=telnetd-ssl
PKG_VERSION:=0.17.41
PKG_RELEASE:=1
PKG_SOURCE:=netkit-telnet-ssl_0.17.41+really0.17.orig.tar.gz
PKG_SOURCE_URL:=http://deb.debian.org/debian/pool/main/n/netkit-telnet-ssl
PKG_HASH:=9c80d5c7838361a328fb6b60016d503def9ce53ad3c589f3b08ff71a2bb88e00
PKG_MAINTAINER:=Me
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_BUILD_PARALLEL:=1
PKG_BUILD_DIR=$(BUILD_DIR)/netkit-telnet-0.17
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/telnetd-ssl
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libopenssl
TITLE:=Telnet with ssl support
URL:=http://deb.debian.org/debian/pool/main/n/netkit-telnet-ssl
endef
define Package/telnetd-ssl/description
The in.telnetd program is a server that handles the Defense Advanced Research Project Agency (DARPA) interactive telnet communication protocol.
SSL telnetd replaces the regular telnetd by using SSL authentication and encryption. It works in conjunction with the regular telnetd in both directions. It checks whether the other side also uses SSL, if not it falls back to the regular telnet protocol.
Advantages over the regular telnetd: passwords and data sent do not go in the clear on the line.
endef
CMAKE_OPTIONS += \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_MANDIR=/usr/man
define Package/telnetd-ssl/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/telnetd-ssl $(1)/usr/bin/
endef
$(eval $(call BuildPackage,telnetd-ssl))
Not searching for unused variables given on the command line.
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
CMake Error at CMakeLists.txt:29 (find_library):
Could not find USE_TERMCAP using the following names: ncurses