* Don't hardcode PREFIX nor PKG_SYSCONFDIR; * Add a configtest() function to test the configuration file before restart so lazy SysOps (me) don't have to remember command arguments; From CHANGELOG: - DOC: typo: nosepoll self reference in config guide - BUG/MINOR: deinit: free fdinfo while doing cleanup - BUG/MEDIUM: server: set the macro for server's max weight SRV_UWGHT_MAX to SRV_UWGHT_RANGE - BUG/MINOR: use the same check condition for server as other algorithms - BUG/MINOR: stream-int: also consider ENOTCONN in addition to EAGAIN for recv() - BUG/MINOR: fix forcing fastinter in "on-error" - BUG/MEDIUM: http/auth: Sometimes the authentication credentials can be mix between two requests - BUG/MAJOR: http: don't emit the send-name-header when no server is available - BUG/MEDIUM: http: "option checkcache" fails with the no-cache header - MEDIUM: session: disable lingering on the server when the client aborts - MINOR: config: warn when a server with no specific port uses rdp-cookie - MEDIUM: increase chunk-size limit to 2GB-1 - DOC: add a mention about the limited chunk size - MEDIUM: http: add "redirect scheme" to ease HTTP to HTTPS redirection - BUILD: proto_tcp: remove a harmless warning - BUG/MINOR: acl: remove patterns from the tree before freeing them - BUG/MEDIUM: checks: fix slow start regression after fix attempt - BUG/MAJOR: server: weight calculation fails for map-based algorithms - BUG/MINOR: backend: fix target address retrieval in transparent mode - BUG/MEDIUM: stick: completely remove the unused flag from the store entries - BUG/MEDIUM: stick-tables: complete the latest fix about store-responses - BUG/MEDIUM: checks: tracking servers must not inherit the MAINT flag - BUG/MINOR: stats: report correct throttling percentage for servers in slowstart - BUG/MINOR: stats: correctly report throttle rate of low weight servers - BUG/MINOR: checks: successful check completion must not re-enable MAINT servers - BUG/MEDIUM: stats: the web interface must check the tracked servers before enabling - BUG/MINOR: channel: initialize xfer_small/xfer_large on new buffers - BUG/MINOR: stream-int: also consider ENOTCONN in addition to EAGAIN - BUG/MEDIUM: http: don't start to forward request data before the connect - DOC: fix misleading information about SIGQUIT - BUILD: simplify the date and version retrieval in the makefile - BUILD: prepare the makefile to skip format lines in SUBVERS and VERDATE - BUILD: use format tags in VERDATE and SUBVERS files
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.12 2014/04/27 01:28:01 rodent Exp $
|
|
|
|
DISTNAME= haproxy-1.4.25
|
|
CATEGORIES= net www
|
|
MASTER_SITES= http://haproxy.1wt.eu/download/1.4/src/
|
|
|
|
MAINTAINER= morr@NetBSD.org
|
|
HOMEPAGE= http://haproxy.1wt.eu/
|
|
COMMENT= Reliable, high performance TCP/HTTP load balancer
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
USE_TOOLS+= gmake
|
|
BUILD_MAKE_FLAGS+= TARGET=${TARGET}
|
|
INSTALL_MAKE_FLAGS+= TARGET=${TARGET}
|
|
INSTALL_MAKE_FLAGS+= PREFIX=${PREFIX}
|
|
INSTALL_MAKE_FLAGS+= DOCDIR=${PREFIX}/share/doc/${PKGBASE}
|
|
INSTALL_MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}
|
|
|
|
RCD_SCRIPTS= haproxy
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
INSTALLATION_DIRS= ${EGDIR} share/examples/rc.d
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
TARGET=netbsd
|
|
.elif ${OPSYS} == "FreeBSD"
|
|
TARGET=freebsd
|
|
.elif ${OPSYS} == "OpenBSD"
|
|
TARGET=openbsd
|
|
.elif ${OPSYS} == "SunOS"
|
|
TARGET=solaris
|
|
.elif ${OPSYS} == "Linux"
|
|
. if !empty(OS_VERSION:M2.6.*)
|
|
TARGET=linux26
|
|
. elif !empty(OS_VERSION:M2.4.*)
|
|
. if exists(/usr/include/linux/eventpoll.h)
|
|
TARGET=linux24e
|
|
. else
|
|
TARGET=linux24
|
|
. endif
|
|
. endif
|
|
.else
|
|
TARGET=generic
|
|
.endif
|
|
|
|
LIBS.SunOS+= -lxnet
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/examples/haproxy.cfg ${DESTDIR}${EGDIR}/
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|