2 # Copyright (C) 2009 Marek Drapal <marek.drapal@touchware.cz>
3 # Copyright (C) 2009 OpenWrt.org
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.jbrain.com/pub/linux/serial/
17 PKG_MD5SUM:=e712ae9fe6893bc825026b6dee6da9c0
20 include $(INCLUDE_DIR)/package.mk
25 TITLE:=Hayes compatible modem emulator
26 URL:=http://www.jbrain.com/pub/linux/serial/
30 define Package/tcpser/description
31 TCPSER turns a PC serial port into an emulated Hayes compatible modem
32 that uses TCP/IP for incoming and outgoing connections. It can be used
33 to allow older applications and systems designed for modem use
34 to operate on the Internet. TCPSER supports all standard Hayes commands,
35 and understands extended and vendor proprietary commands (though it does
36 not implement many of them). TCPSER can be used for both inbound and
41 $(call Build/Prepare/Default)
42 $(CP) $(PKG_BUILD_DIR)/../$(PKG_NAME)/* $(PKG_BUILD_DIR)/
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -I$(LINUX_DIR)/include"
50 define Package/tcpser/install
51 $(INSTALL_DIR) $(1)/usr/bin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcpser $(1)/usr/bin/
56 $(eval $(call BuildPackage,tcpser))