diff options
Diffstat (limited to 'net/haproxy/Makefile')
-rw-r--r-- | net/haproxy/Makefile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile new file mode 100644 index 00000000000..97df2d2ce00 --- /dev/null +++ b/net/haproxy/Makefile @@ -0,0 +1,54 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/10/31 23:34:07 morr Exp $ + +DISTNAME= haproxy-1.4.18 +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 + +PKG_DESTDIR_SUPPORT= user-destdir + +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} + +EGDIR= ${PREFIX}/share/examples/${PKGBASE} +INSTALLATION_DIRS= ${EGDIR} share/examples/rc.d + +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "NetBSD" +RCD_SCRIPTS= haproxy +INSTALLATION_DIRS+= share/examples/rc.d +.endif + +.if ${OPSYS} == "NetBSD" +TARGET=netbsd +.elif ${OPSYS} == "FreeBSD" +TARGET=freebsd +.elif ${OPSYS} == "OpenBSD" +TARGET=openbsd +.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 + +post-install: + ${INSTALL_DATA} ${WRKSRC}/examples/haproxy.cfg ${DESTDIR}${EGDIR}/ + +.include "../../mk/bsd.pkg.mk" |