openbsd-ports/net/haproxy/Makefile
gonzalo e2abff372f Update for haproxy to 1.4.21 with some changes:
- MINOR: stats admin: allow unordered parameters in POST requests
    - BUG/MAJOR: possible crash when using capture headers on TCP frontends
    - MINOR: config: disable header captures in TCP mode and complain
    - CLEANUP: http: message parser must ignore HTTP_MSG_ERROR
    - BUG/MAJOR: checks: don't call set_server_status_* when no LB algo is set
    - MINOR: proxy: make findproxy() return proxies from numeric IDs too
    - BUG/MINOR: stop connect timeout when connect succeeds

And others (http://haproxy.1wt.eu/download/1.4/src/CHANGELOG), while here GROFF is not needed,
add a rc.d(8) script and maintainer drop maintainership.

Tested on i386.

Ok sthen@ (untested)
2012-08-27 13:03:06 +00:00

59 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 2012/08/27 13:03:06 gonzalo Exp $
COMMENT = reliable, high performance TCP/HTTP load balancer
DISTNAME = haproxy-1.4.21
CATEGORIES = net www
HOMEPAGE = http://haproxy.1wt.eu/
MAINTAINER = Jason Dixon <jdixon@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c pcre pcreposix
MASTER_SITES = ${HOMEPAGE}/download/1.4/src/
HAPROXYCONF = ${SYSCONFDIR}/haproxy
HAPROXYSTATE = /var/haproxy
HAPROXYUID = 604
HAPROXYGID = 604
SUBST_VARS = HAPROXYCONF HAPROXYSTATE \
HAPROXYUID HAPROXYGID
MAKE_FILE = Makefile.bsd
MAKE_FLAGS += CC="${CC}" LD="${CC}"
NO_REGRESS = Yes
LIB_DEPENDS = devel/pcre
DOCS = architecture configuration gpl haproxy-en haproxy-fr lgpl
EXAMPLES = acl-content-sw content-sw-sample haproxy \
option-http_proxy tarpit url-switching
DOCSDIR = ${PREFIX}/share/doc/haproxy
EXAMPLESDIR = ${PREFIX}/share/examples/haproxy
pre-install:
${SUBST_CMD} ${WRKSRC}/doc/haproxy.1 ${WRKSRC}/examples/haproxy.cfg
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/doc/haproxy.1 ${PREFIX}/man/man1/haproxy.1
${INSTALL_DATA_DIR} ${DOCSDIR}
.for file in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${file}.txt ${DOCSDIR}
.endfor
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
.for file in ${EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/examples/${file}.cfg ${EXAMPLESDIR}
.endfor
.include <bsd.port.mk>