Hi all,

here's a patch for tcpser, an emulator of Hayes compatible modem.
Since this is my first package for OpenWRT, please review it.

Thanks,
         Marek

Signed-off-by: Marek Drapal <marek.dra...@touchware.cz>

--- package/tcpser/Makefile     1970-01-01 01:00:00.000000000 +0100
+++ package/tcpser/Makefile     2009-02-27 14:52:34.000000000 +0100
@@ -0,0 +1,57 @@
+# 
+# Copyright (C) 2009 Marek Drapal <marek.dra...@touchware.cz>
+# Copyright (C) 2009 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id: Makefile 14557 2009-02-18 22:00:36Z jow $
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=tcpser
+PKG_VERSION:=1.0
+PKG_RELEASE:=12
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)rc$(PKG_RELEASE).tar.gz
+PKG_SOURCE_URL:=http://www.jbrain.com/pub/linux/serial/
+PKG_MD5SUM:=ab127ae472a3d346dc8a7f53ad2b1a8f
+
+
+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))

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to