2 # Copyright (C) 2010-2011 OpenWrt.org
3 # Copyright (C) 2009-2010 Thomas Heil <heil@terminal-consulting.de>
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://haproxy
.1wt.eu
/download
/1.4/src
17 PKG_MD5SUM
:=0cd3b91812ff31ae09ec4ace6355e29e
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/haproxy
22 SUBMENU
:=Web Servers
/Proxies
25 TITLE
:=The Reliable
, High Performance TCP
/HTTP Load Balancer
26 URL
:=http
://haproxy
.1wt.eu
/
27 DEPENDS
:=+libpcre
+libltdl
28 MAINTAINER
:=Thomas Heil
<heil@terminal-consulting.de
>
31 define Package
/haproxy
/conffiles
35 define Package
/haproxy
/description
36 Open source High Performance TCP
/HTTP Load Balancer
40 $(MAKE
) TARGET
=linux26
-C
$(PKG_BUILD_DIR
) \
41 DESTDIR
="$(PKG_INSTALL_DIR)" \
43 CFLAGS
="$(TARGET_CFLAGS)" \
45 LDFLAGS
="$(TARGET_LDFLAGS)" \
46 SMALL_OPTS
="-DBUFSIZE=16384 -DMAXREWRITE=8192 -DSYSTEM_MAXCONN=65530" USE_LINUX_TPROXY
=1 USE_LINUX_SPLICE
=1 \
50 define Package
/haproxy
/install
51 $(INSTALL_DIR
) $(1)/usr
/sbin
52 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/haproxy
$(1)/usr
/sbin
/
53 $(INSTALL_DIR
) $(1)/etc
54 $(INSTALL_CONF
) .
/files
/haproxy.cfg
$(1)/etc
/
55 $(INSTALL_DIR
) $(1)/etc
/init.d
56 $(INSTALL_BIN
) .
/files
/haproxy.init
$(1)/etc
/init.d
/haproxy
57 $(INSTALL_DIR
) $(1)/etc
/hotplug.d
/net
58 $(INSTALL_BIN
) .
/files
/haproxy.hotplug
$(1)/etc
/hotplug.d
/net
/90-haproxy
61 $(eval
$(call BuildPackage
,haproxy
))