@ -10,30 +10,63 @@ include $(TOPDIR)/rules.mk
PKG_NAME := haproxy
PKG_VERSION := 1.5.4
PKG_RELEASE := 13
PKG_RELEASE := 14
PKG_SOURCE := haproxy-$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://haproxy.1wt.eu/download/1.5/src/
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( BUILD_VARIANT) /$( PKG_NAME) -$( PKG_VERSION)
PKG_MD5SUM := b027035bfd8f28326634f802c3447a34
PKG_MAINTAINER := Thomas Heil <heil@terminal-consulting.de>
PKG_LICENSE := GPL-2.0
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / h a p r o x y
d e f i n e P a c k a g e / h a p r o x y / D e f a u l t
SUBMENU:= Web Servers/Proxies
SECTION:= net
CATEGORY:= Network
TITLE:= The Reliable, High Performance TCP/HTTP Load Balancer
URL:= http://haproxy.1wt.eu/
DEPENDS:= +libpcre +libltdl +libopenssl +zlib +libpthread
e n d e f
d e f i n e P a c k a g e / h a p r o x y / c o n f f i l e s
d e f i n e P a c k a g e / h a p r o x y / D e f a u l t / c o n f f i l e s
/ e t c / h a p r o x y . c f g
e n d e f
d e f i n e P a c k a g e / h a p r o x y / D e f a u l t / d e s c r i p t i o n
Open source Reliable, High Performance TCP/HTTP Load Balancer.
e n d e f
d e f i n e P a c k a g e / h a p r o x y
DEPENDS += +libpcre +libltdl +zlib +libpthread +libopenssl
TITLE += ( with SSL support)
VARIANT:= ssl
$( call Package /haproxy /Default )
e n d e f
d e f i n e P a c k a g e / h a p r o x y / c o n f f i l e s
$( call Package /haproxy /Default /conffiles )
e n d e f
d e f i n e P a c k a g e / h a p r o x y / d e s c r i p t i o n
Open source High Performance TCP/HTTP Load Balancer
$( call Package /haproxy /Default /description )
This package is built with SSL support.
e n d e f
d e f i n e P a c k a g e / h a p r o x y - n o s s l
TITLE += ( without SSL support)
VARIANT:= nossl
DEPENDS += +libpcre +libltdl +zlib +libpthread
TITLE += ( with SSL support)
$( call Package /haproxy /Default )
e n d e f
d e f i n e P a c k a g e / h a p r o x y - n o s s l / c o n f f i l e s
$( call Package /haproxy /Default /conffiles )
e n d e f
d e f i n e P a c k a g e / h a p r o x y - n o s s l / d e s c r i p t i o n
$( call Package /haproxy /Default /description )
This package is built without SSL support.
e n d e f
i f e q ( $( CONFIG_avr 32) , y )
@ -42,6 +75,18 @@ else
LINUX_TARGET:= linux2628
e n d i f
i f e q ( $( BUILD_VARIANT ) , s s l )
ADDLIB:= -lcrypt
USE_OPENSSL = USE_OPENSSL = 1
e l s e
ADDLIB:=
USE_OPENSSL =
e n d i f
d e f i n e B u i l d / C o m p i l e
$( MAKE) TARGET = $( LINUX_TARGET) -C $( PKG_BUILD_DIR) \
DESTDIR = " $( PKG_INSTALL_DIR) " \
@ -49,10 +94,10 @@ define Build/Compile
CFLAGS = " $( TARGET_CFLAGS) -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -fhonour-copts " \
LD = " $( TARGET_CC) " \
LDFLAGS = " $( TARGET_LDFLAGS) " \
ADDLIB = "-lcrypto " \
ADDLIB = " $( ADDLIB) " \
PCREDIR = " $( STAGING_DIR) /usr/include " \
SMALL_OPTS = "-DBUFSIZE=16384 -DMAXREWRITE=1030 -DSYSTEM_MAXCONN=165530 " \
USE_LINUX_TPROXY = 1 USE_LINUX_SPLICE = 1 USE_REGPARM = 1 USE_OPENSSL = 1 \
USE_LINUX_TPROXY = 1 USE_LINUX_SPLICE = 1 USE_REGPARM = 1 $( USE_OPENSSL) \
USE_ZLIB = yes USE_PCRE = 1 \
VERSION = " $( PKG_VERSION) -patch $( PKG_RELEASE) " \
install
@ -63,7 +108,7 @@ define Build/Compile
CFLAGS = " $( TARGET_CFLAGS) -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -fhonour-copts " \
LD = " $( TARGET_CC) " \
LDFLAGS = " $( TARGET_LDFLAGS) " \
ADDLIB = "-lcrypto " \
ADDLIB = " $( ADDLIB) " \
VERSION = " $( PKG_VERSION) -patch $( PKG_RELEASE) " \
halog
e n d e f
@ -79,9 +124,11 @@ define Package/haproxy/install
$( INSTALL_BIN) ./files/haproxy.hotplug $( 1) /etc/hotplug.d/net/90-haproxy
e n d e f
P a c k a g e / h a p r o x y - n o s s l / install = $( Package/haproxy/install)
d e f i n e P a c k a g e / h a l o g
MENU:= 1
$( call Package/haproxy)
$( call Package/haproxy/Default )
TITLE += halog
DEPENDS:= haproxy
e n d e f
@ -95,5 +142,6 @@ define Package/halog/install
$( INSTALL_BIN) $( PKG_BUILD_DIR) /contrib/halog/halog $( 1) /usr/bin/
e n d e f
$( eval $ ( call BuildPackage ,haproxy -nossl ) )
$( eval $ ( call BuildPackage ,haproxy ) )
$( eval $ ( call BuildPackage ,halog ) )