2015-01-19 10:41:15 +01:00
|
|
|
# Template file for 'haproxy'
|
|
|
|
pkgname=haproxy
|
2016-03-14 05:25:31 +01:00
|
|
|
version=1.6.4
|
2016-03-25 22:35:17 +01:00
|
|
|
revision=2
|
2015-01-19 10:41:15 +01:00
|
|
|
build_style=gnu-makefile
|
|
|
|
make_build_args="TARGET=linux2628 USE_PCRE=1 USE_PCRE_JIT=1 USE_ZLIB=1
|
2015-11-30 20:46:29 +01:00
|
|
|
USE_OPENSSL=1 USE_LIBCRYPT=1 USE_GETADDRINFO=1 USE_LUA=1"
|
2015-01-19 10:41:15 +01:00
|
|
|
make_install_args="SBINDIR=${DESTDIR}/usr/bin DOCDIR=${DESTDIR}/usr/share/doc/$pkgname"
|
|
|
|
conf_files="/etc/${pkgname}/${pkgname}.cfg"
|
|
|
|
system_accounts="${pkgname}"
|
|
|
|
haproxy_homedir="/var/lib/${pkgname}"
|
|
|
|
make_dirs="$haproxy_homedir 0750 ${pkgname} ${pkgname}"
|
2015-11-30 20:46:29 +01:00
|
|
|
makedepends="libressl-devel pcre-devel zlib-devel lua-devel"
|
2015-01-19 10:41:15 +01:00
|
|
|
short_desc="Reliable, high performance TCP/HTTP load balancer"
|
|
|
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
2015-12-31 19:53:53 +01:00
|
|
|
license="GPL-2, LGPL-2.1"
|
2015-01-19 10:41:15 +01:00
|
|
|
homepage="http://www.haproxy.org"
|
|
|
|
distfiles="${homepage}/download/${version%.*}/src/${pkgname}-${version}.tar.gz"
|
2016-03-14 05:25:31 +01:00
|
|
|
checksum=e5fa3c604f1fe9ecb6974ccda6705c105ebee14b3a913069fb08f00e860cd230
|
2015-01-19 10:41:15 +01:00
|
|
|
|
|
|
|
do_build() {
|
2015-12-31 19:53:53 +01:00
|
|
|
make ${makejobs} CC="$CC" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" EXTRA= \
|
2015-01-19 10:41:15 +01:00
|
|
|
${make_build_args}
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vinstall ${FILESDIR}/${pkgname}.cfg 644 etc/${pkgname}
|
|
|
|
vsv ${pkgname}
|
|
|
|
}
|