2 # Copyright (C) 2014-2015 OpenWrt.org
5 include $(TOPDIR
)/rules.mk
11 PKG_SOURCE_URL
=https
://github.com
/jow-
/MAC-Telnet.git
12 PKG_SOURCE_DATE
:=2015-09-02
13 PKG_SOURCE_VERSION
:=37d83cbc9c07266d6c957d27bf75285b305eceab
14 PKG_MIRROR_HASH
:=ed414f3fb08f1e2bb4313d00fb99327df697de7c60284fe588fc7eb3769adb7a
16 PKG_BUILD_FLAGS
:=gc-sections
18 PKG_LICENSE
:=GPL-2.0
-or-later
19 PKG_MAINTAINER
:=Jo-Philipp Wich
<jo@mein.io
>
21 include $(INCLUDE_DIR
)/package.mk
23 TARGET_CFLAGS
+= $(if
$(CONFIG_MACTELNET_PLAIN_SUPPORT
),-DTELNET_SUPPORT
)
28 define Package
/mac-telnet-
$(1)
32 TITLE
:=MAC-Telnet
/ MAC-SSH
$(1)
33 URL
:=https
://github.com
/jow-
/MAC-Telnet
36 define Package
/mac-telnet-
$(1)/description
37 Open source MAC Telnet client and server utilities for connecting to
38 Mikrotik RouterOS routers and Linux machines via MAC address.
41 define Package
/mac-telnet-
$(1)/install
42 $(INSTALL_DIR
) $$(1)/usr
/sbin
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(2) $$(1)/usr
/sbin
/
44 $(call Package
/mac-telnet-
$(1)/install-extra
)
47 $$(eval
$$(call BuildPackage
,mac-telnet-
$(1)))
50 define Package
/mac-telnet-server
/config
51 config MACTELNET_PLAIN_SUPPORT
52 bool
"Include support for plain telnet connections"
53 depends on PACKAGE_mac-telnet-server
56 Disable this option to only support SSH logins to the
60 define Package
/mac-telnet-server
/install-extra
61 $(INSTALL_DIR
) $$(1)/etc
/init.d
62 $(INSTALL_BIN
) .
/files
/mactelnet.init
$$(1)/etc
/init.d
/mactelnet
63 $(INSTALL_DIR
) $$(1)/etc
/config
64 $(INSTALL_CONF
) .
/files
/mactelnet.config
$$(1)/etc
/config
/mactelnet
67 define Package
/mac-telnet-server
/conffiles
72 $(eval
$(call BuildPlugin
,server
,mactelnetd
))
73 $(eval
$(call BuildPlugin
,client
,mactelnet
))
74 $(eval
$(call BuildPlugin
,ping
,macping
))
75 $(eval
$(call BuildPlugin
,discover
,mndp
))