Port elhttp to -ng
[openwrt/svn-archive/archive.git] / net / elhttp / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=elhttp
12 PKG_VERSION:=0.22
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=b52f68c47f709e9fc9429250eb8f954c
15
16 PKG_SOURCE_URL:=http://phadej.daug.net/files/ \
17 http://www.cr0.net:8040/code/network/
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/elhttp
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=The extra-light http proxy server
30 DESCRIPTION:=The extra-light http proxy server. Features: keep-alive\\\
31 connections, http connect method, SSL/TLS support, ACLs\\\
32 and client requests logging.\\\
33 URL:=http://www.cr0.net:8040/code/network/
34 endef
35
36
37 define Build/Compile
38 mkdir -p $(PKG_INSTALL_DIR)/usr/sbin
39 $(MAKE) CC=$(TARGET_CC) CROSS=$(TARGET_CROSS) -C $(PKG_BUILD_DIR) \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 all install
42 endef
43
44 define Package/elhttp/install
45 mkdir -p $(1)
46 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
47 endef
48
49 $(eval $(call BuildPackage,elhttp))