[packages] haproxy: bump to version 1.4.9 which obsoletes patch
[openwrt/svn-archive/archive.git] / net / haproxy / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 # Copyright (C) 2009-2010 Thomas Heil <heil@terminal-consulting.de>
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=haproxy
12 PKG_VERSION:=1.4.9
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://haproxy.1wt.eu/download/1.4/src
17 PKG_MD5SUM:=2cbcc95b54c0d803edaa13e7b4aeec25
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/haproxy
22 SUBMENU:=Proxy Servers
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=The Reliable, High Performance TCP/HTTP Load Balancer
26 URL:=http://haproxy.1wt.eu/
27 DEPENDS:=+libpcre +libltdl
28 endef
29
30 define Package/haproxy/conffiles
31 /etc/haproxy.cfg
32 endef
33
34 define Package/haproxy/description
35 Open source High Performance TCP/HTTP Load Balancer
36 endef
37
38 define Build/Compile
39 $(MAKE) TARGET=$(if $(CONFIG_LINUX_2_4),linux24,linux26) -C $(PKG_BUILD_DIR) \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 CC="$(TARGET_CC)" \
42 CFLAGS="$(TARGET_CFLAGS)" \
43 LD="$(TARGET_CC)" \
44 LDFLAGS="$(TARGET_LDFLAGS)" \
45 SMALL_OPTS="-DBUFSIZE=16060 -DMAXREWRITE=8192 -DSYSTEM_MAXCONN=65530" USE_LINUX_TPROXY=1 \
46 all install
47 endef
48
49 define Package/haproxy/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/haproxy $(1)/usr/sbin/
52 $(INSTALL_DIR) $(1)/etc
53 $(INSTALL_CONF) ./files/haproxy.cfg $(1)/etc/
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/haproxy.init $(1)/etc/init.d/haproxy
56 $(INSTALL_DIR) $(1)/etc/hotplug.d/net
57 $(INSTALL_BIN) ./files/haproxy.hotplug $(1)/etc/hotplug.d/net/90-haproxy
58 endef
59
60 $(eval $(call BuildPackage,haproxy))