[packages] polipo: solve a bunch of "sh: bad number" errors in init script, always...
[openwrt/svn-archive/archive.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 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ucspi-tcp
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=
27 TITLE:=UNIX Client-Server Program Interface for TCP
28 URL:=http://cr.yp.to/ucspi-tcp.html
29 endef
30
31 define Package/PKG_NAME/description.
32 tcpserver and tcpclient are command-line tools for building
33 TCP client-server applications.
34 endef
35
36 define Build/Compile
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)
42 endef
43
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 \
50 $(1)/usr/bin)
51 endef
52
53 $(eval $(call BuildPackage,ucspi-tcp))
54