From: jow Date: Sun, 19 Apr 2009 16:31:13 +0000 (+0000) Subject: [PATCH] New package -- tcpser X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=3b0879e0e6fdc92a1a196d211ea248645b7c2c1d;p=packages.git [PATCH] New package -- tcpser here's a patch for tcpser, an emulator of Hayes compatible modem. Signed-off-by: Marek Drapal git-svn-id: svn://svn.openwrt.org/openwrt/packages@15271 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/utils/tcpser/Makefile b/utils/tcpser/Makefile new file mode 100644 index 000000000..8806c11d7 --- /dev/null +++ b/utils/tcpser/Makefile @@ -0,0 +1,56 @@ +# +# Copyright (C) 2009 Marek Drapal +# Copyright (C) 2009 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=tcpser +PKG_VERSION:=1.0rc12 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.jbrain.com/pub/linux/serial/ +PKG_MD5SUM:=e712ae9fe6893bc825026b6dee6da9c0 + + +include $(INCLUDE_DIR)/package.mk + +define Package/tcpser + SECTION:=utils + CATEGORY:=Utilities + TITLE:=Hayes compatible modem emulator + URL:=http://www.jbrain.com/pub/linux/serial/ + DEPENDS:=libpthread +endef + +define Package/tcpser/description + TCPSER turns a PC serial port into an emulated Hayes compatible modem + that uses TCP/IP for incoming and outgoing connections. It can be used + to allow older applications and systems designed for modem use + to operate on the Internet. TCPSER supports all standard Hayes commands, + and understands extended and vendor proprietary commands (though it does + not implement many of them). TCPSER can be used for both inbound and + outbound connections. +endef + +define Build/Prepare + $(call Build/Prepare/Default) + $(CP) $(PKG_BUILD_DIR)/../$(PKG_NAME)/* $(PKG_BUILD_DIR)/ +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -I$(LINUX_DIR)/include" +endef + +define Package/tcpser/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcpser $(1)/usr/bin/ +endef + + +$(eval $(call BuildPackage,tcpser))