2009-12-21 20:58:46 +00:00
|
|
|
#
|
2011-11-14 02:38:47 +00:00
|
|
|
# Copyright (C) 2010-2011 OpenWrt.org
|
2010-02-04 14:52:04 +00:00
|
|
|
# Copyright (C) 2009-2010 Thomas Heil <heil@terminal-consulting.de>
|
2009-12-21 20:58:46 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
2010-04-18 13:28:39 +00:00
|
|
|
#
|
2009-12-21 20:58:46 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=haproxy
|
2012-05-21 21:43:44 +00:00
|
|
|
PKG_VERSION:=1.4.21
|
2012-03-18 23:30:23 +00:00
|
|
|
PKG_RELEASE:=1
|
2009-12-21 20:58:46 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2010-07-18 17:35:51 +00:00
|
|
|
PKG_SOURCE_URL:=http://haproxy.1wt.eu/download/1.4/src
|
2012-05-21 21:43:44 +00:00
|
|
|
PKG_MD5SUM:=f36d5d13fd4a44ab454eee5d06cb38a2
|
2009-12-21 20:58:46 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/haproxy
|
2011-03-12 04:41:35 +00:00
|
|
|
SUBMENU:=Web Servers/Proxies
|
2009-12-21 20:58:46 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=The Reliable, High Performance TCP/HTTP Load Balancer
|
|
|
|
URL:=http://haproxy.1wt.eu/
|
2010-04-18 13:28:39 +00:00
|
|
|
DEPENDS:=+libpcre +libltdl
|
2011-09-04 19:23:15 +00:00
|
|
|
MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
|
2009-12-21 20:58:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/haproxy/conffiles
|
|
|
|
/etc/haproxy.cfg
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/haproxy/description
|
|
|
|
Open source High Performance TCP/HTTP Load Balancer
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2011-11-11 18:07:06 +00:00
|
|
|
$(MAKE) TARGET=linux26 -C $(PKG_BUILD_DIR) \
|
2010-05-20 06:53:26 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2009-12-21 20:58:46 +00:00
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LD="$(TARGET_CC)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
2011-10-05 22:10:56 +00:00
|
|
|
SMALL_OPTS="-DBUFSIZE=16384 -DMAXREWRITE=8192 -DSYSTEM_MAXCONN=65530" USE_LINUX_TPROXY=1 USE_LINUX_SPLICE=1 \
|
2010-05-20 06:53:26 +00:00
|
|
|
all install
|
2009-12-21 20:58:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/haproxy/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/haproxy $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_CONF) ./files/haproxy.cfg $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/haproxy.init $(1)/etc/init.d/haproxy
|
2010-03-19 21:02:23 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/net
|
|
|
|
$(INSTALL_BIN) ./files/haproxy.hotplug $(1)/etc/hotplug.d/net/90-haproxy
|
2009-12-21 20:58:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,haproxy))
|