34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
# Template file for 'haproxy'
|
|
broken="src/ssl_sock.c:798:28: error: 'SSL_CTX {aka struct ssl_ctx_st}' has no member named 'tlsext_status_cb'"
|
|
pkgname=haproxy
|
|
version=1.7.5
|
|
revision=2
|
|
build_style=gnu-makefile
|
|
make_build_args="TARGET=linux2628 USE_PCRE=1 USE_PCRE_JIT=1 USE_ZLIB=1
|
|
USE_OPENSSL=1 USE_LIBCRYPT=1 USE_GETADDRINFO=1 USE_LUA=1"
|
|
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}"
|
|
makedepends="libressl-devel pcre-devel zlib-devel lua-devel"
|
|
short_desc="Reliable, high performance TCP/HTTP load balancer"
|
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
|
license="GPL-2, LGPL-2.1"
|
|
homepage="http://www.haproxy.org"
|
|
distfiles="${homepage}/download/${version%.*}/src/${pkgname}-${version}.tar.gz"
|
|
checksum=b04d7db6383c662eb0a421a95af7becac6d9744a1abf0df6b0280c1e61416121
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) CFLAGS="-D__LINUX_NETFILTER_H";;
|
|
esac
|
|
|
|
|
|
do_build() {
|
|
make ${makejobs} CC="$CC" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" EXTRA= \
|
|
${make_build_args}
|
|
}
|
|
|
|
post_install() {
|
|
vinstall ${FILESDIR}/${pkgname}.cfg 644 etc/${pkgname}
|
|
vsv ${pkgname}
|
|
}
|