2 # Copyright (C) 2007 OpenWrt.org
3 # Original port by FreeWRT project.
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
8 # Alexander Tsvyashchenko Created OpenWRT package as per Trac ticket 2497
11 include $(TOPDIR)/rules.mk
17 PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
18 PKG_SOURCE_URL:=http://cr.yp.to/ucspi-tcp/
19 PKG_MD5SUM:=39b619147db54687c4a583a7a94c9163
21 include $(INCLUDE_DIR)/package.mk
23 define Package/ucspi-tcp
27 TITLE:=UNIX Client-Server Program Interface for TCP
28 URL:=http://cr.yp.to/ucspi-tcp.html
31 define Package/PKG_NAME/description.
32 tcpserver and tcpclient are command-line tools for building
33 TCP client-server applications.
37 TARGET_CC="$(TARGET_CC)" \
38 TARGET_CFLAGS="$(TARGET_CFLAGS)" \
39 TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \
40 TARGET_RANLIB="$(TARGET_CROSS)ranlib" \
41 $(MAKE) -C $(PKG_BUILD_DIR)
44 define Package/ucspi-tcp/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 (cd $(PKG_BUILD_DIR); \
47 $(INSTALL_BIN) tcpserver tcprules tcprulescheck argv0 recordio \
48 tcpclient who@ date@ finger@ http@ tcpcat mconnect mconnect-io \
49 addcr delcr fixcrio rblsmtpd \
53 $(eval $(call BuildPackage,ucspi-tcp))