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