37d13a80ea
2014/07/25 : 1.5.3 - DOC: fix typo in Unix Socket commands - BUG/MEDIUM: connection: fix memory corruption when building a proxy v2 header - BUG/MEDIUM: ssl: Fix a memory leak in DHE key exchange - DOC: mention that Squid correctly responds 400 to PPv2 header - BUG/MINOR: http: base32+src should use the big endian version of base32 - BUG/MEDIUM: connection: fix proxy v2 header again!
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.14 2014/07/27 16:33:36 fhajny Exp $
|
|
|
|
DISTNAME= haproxy-1.5.3
|
|
CATEGORIES= net www
|
|
MASTER_SITES= http://haproxy.1wt.eu/download/1.5/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} ADDLIB=${COMPILER_RPATH_FLAG}${PREFIX}/lib USE_ZLIB=1
|
|
INSTALL_MAKE_FLAGS+= TARGET=${TARGET}
|
|
INSTALL_MAKE_FLAGS+= PREFIX=${PREFIX}
|
|
INSTALL_MAKE_FLAGS+= DOCDIR=${PREFIX}/share/doc/${PKGBASE}
|
|
INSTALL_MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}
|
|
|
|
.include "options.mk"
|
|
|
|
RCD_SCRIPTS= haproxy
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
INSTALLATION_DIRS+= ${EGDIR}
|
|
|
|
.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 "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|