added djb ucspi-tcp patch provided by Johnny Halfmoon
[packages.git] / net / ucspi-tcp / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 # Original port by FreeWRT project.
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8 # Alexander Tsvyashchenko       Created OpenWRT package as per Trac ticket 2497
9 #
10
11 include $(TOPDIR)/rules.mk
12
13 PKG_NAME:=ucspi-tcp
14 PKG_VERSION:=0.88
15 PKG_RELEASE:=1
16
17 PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz
18 PKG_SOURCE_URL:=http://cr.yp.to/ucspi-tcp/
19 PKG_MD5SUM:=39b619147db54687c4a583a7a94c9163
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ucspi-tcp
26   SECTION:=net
27   CATEGORY:=Network
28   DEPENDS:=
29   TITLE:=UNIX Client-Server Program Interface for TCP
30   URL:=http://cr.yp.to/ucspi-tcp.html
31 endef
32
33 define Package/PKG_NAME/description.
34         tcpserver and tcpclient are command-line tools for building
35         TCP client-server applications.
36 endef
37
38 define Build/Compile
39         TARGET_CC="$(TARGET_CC)" \
40         TARGET_CFLAGS="$(TARGET_CFLAGS)" \
41         TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \
42         $(MAKE) -C $(PKG_BUILD_DIR)
43 endef
44
45 define Package/ucspi-tcp/install
46         $(INSTALL_DIR) $(1)/usr/bin
47         (cd $(PKG_BUILD_DIR); \
48         $(INSTALL_BIN) tcpserver tcprules tcprulescheck argv0 recordio \
49                 tcpclient who@ date@ finger@ http@ tcpcat mconnect mconnect-io \
50                 addcr delcr fixcrio rblsmtpd \
51         $(1)/usr/bin)
52 endef
53
54 $(eval $(call BuildPackage,ucspi-tcp))
55