mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
f5948a1c7e
- The PCRE option allows one to link pound against libpcre for the regcomp() and regexec() functions instead of libc. This can make a substantial difference in CPU consumption with some workloads. Defaults to off. - The LIBTHR option links pound against the libthr for threading, instead of libpthread. This makes a *huge* difference when you deal with enough traffic. Defaults to on. Bump PORTREVISION. Approved by: anders (maintainer)
76 lines
1.7 KiB
Makefile
76 lines
1.7 KiB
Makefile
# New ports collection makefile for: pound
|
|
# Date created: 27 August 2002
|
|
# Whom: Anders Nordby <anders@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pound
|
|
PORTVERSION= 2.3.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= www net
|
|
MASTER_SITES= http://www.apsis.ch/pound/ \
|
|
ftp://ftp.nuug.no/pub/anders/distfiles/
|
|
DISTNAME= Pound-${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= anders@FreeBSD.org
|
|
COMMENT= Reverse proxy, load balancer and HTTP(S) frontend for web servers
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_OPENSSL= yes
|
|
USE_RC_SUBR= ${PORTNAME}.sh
|
|
|
|
SUB_LIST= NAME=${PORTNAME}
|
|
|
|
POUND_CFLAGS= ${CFLAGS}
|
|
POUND_LDFLAGS= ${LDFLAGS}
|
|
MAKE_ARGS+= F_CONF=${PREFIX}/etc/pound.cfg
|
|
|
|
MAN8= pound.8 poundctl.8
|
|
|
|
OPTIONS= DAEMON "Running as a daemon" on \
|
|
LIBTHR "Link against libthr for threading" on \
|
|
LOG "With Syslog support" on \
|
|
MSDAV "With the Microsoft WebDAV extensions support" off \
|
|
PCRE "Build with libpcre support" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITHOUT_DAEMON)
|
|
CONFIGURE_ARGS+= --disable-daemon
|
|
.endif
|
|
|
|
.if defined(WITHOUT_LOG)
|
|
CONFIGURE_ARGS+= --disable-log
|
|
.endif
|
|
|
|
.if defined(WITH_MSDAV)
|
|
CONFIGURE_ARGS+= --enable-msdav
|
|
.endif
|
|
|
|
.if defined(WITH_PCRE)
|
|
LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
|
|
POUND_CFLAGS+= "-I${LOCALBASE}/include"
|
|
POUND_LDFLAGS+= "-L${LOCALBASE}/lib"
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_LIBTHR)
|
|
PTHREAD_LIBS= -lthr
|
|
.endif
|
|
|
|
CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
|
CFLAGS="${POUND_CFLAGS}" \
|
|
CPPFLAGS="${POUND_CFLAGS}" \
|
|
LDFLAGS="${POUND_LDFLAGS}"
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/FAQ ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|