summaryrefslogtreecommitdiffstats
path: root/net/ucspi-tcp/Makefile
blob: b9ad9cffe0dc6ca664b8af5d8b12daf3b31e0f4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# Copyright (C) 2007 OpenWrt.org
# Original port by FreeWRT project.
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# Alexander Tsvyashchenko       Created OpenWRT package as per Trac ticket 2497
#

include $(TOPDIR)/rules.mk

PKG_NAME:=ucspi-tcp
PKG_VERSION:=0.88
PKG_RELEASE:=1

PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
PKG_SOURCE_URL:=http://cr.yp.to/ucspi-tcp/
PKG_MD5SUM:=39b619147db54687c4a583a7a94c9163

include $(INCLUDE_DIR)/package.mk

define Package/ucspi-tcp
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=
  TITLE:=UNIX Client-Server Program Interface for TCP
  URL:=http://cr.yp.to/ucspi-tcp.html
endef

define Package/PKG_NAME/description.
	tcpserver and tcpclient are command-line tools for building
	TCP client-server applications.
endef

define Build/Compile
	TARGET_CC="$(TARGET_CC)" \
	TARGET_CFLAGS="$(TARGET_CFLAGS)" \
	TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \
	TARGET_RANLIB="$(TARGET_CROSS)ranlib" \
	$(MAKE) -C $(PKG_BUILD_DIR)
endef

define Package/ucspi-tcp/install
	$(INSTALL_DIR) $(1)/usr/bin
	(cd $(PKG_BUILD_DIR); \
	$(INSTALL_BIN) tcpserver tcprules tcprulescheck argv0 recordio \
		tcpclient who@ date@ finger@ http@ tcpcat mconnect mconnect-io \
		addcr delcr fixcrio rblsmtpd \
	$(1)/usr/bin)
endef

$(eval $(call BuildPackage,ucspi-tcp))