2002-08-26 23:40:02 +00:00
|
|
|
# New ports collection makefile for: pound
|
|
|
|
# Date created: 27 August 2002
|
|
|
|
# Whom: Anders Nordby <anders@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pound
|
2009-01-19 00:22:58 +00:00
|
|
|
PORTVERSION= 2.4.4
|
2002-08-26 23:40:02 +00:00
|
|
|
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
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Reverse proxy, load balancer and HTTP(S) frontend for web servers
|
2002-08-26 23:40:02 +00:00
|
|
|
|
2003-01-28 00:11:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-07-22 22:49:41 +00:00
|
|
|
USE_OPENSSL= yes
|
2005-09-15 23:58:57 +00:00
|
|
|
USE_RC_SUBR= ${PORTNAME}.sh
|
|
|
|
|
|
|
|
SUB_LIST= NAME=${PORTNAME}
|
2002-08-26 23:40:02 +00:00
|
|
|
|
2007-10-09 14:58:18 +00:00
|
|
|
POUND_CFLAGS= ${CFLAGS}
|
|
|
|
POUND_LDFLAGS= ${LDFLAGS}
|
2003-01-28 00:11:44 +00:00
|
|
|
MAKE_ARGS+= F_CONF=${PREFIX}/etc/pound.cfg
|
2002-08-26 23:40:02 +00:00
|
|
|
|
2007-03-01 21:54:46 +00:00
|
|
|
MAN8= pound.8 poundctl.8
|
2002-08-26 23:40:02 +00:00
|
|
|
|
2005-09-15 23:58:57 +00:00
|
|
|
OPTIONS= DAEMON "Running as a daemon" on \
|
2007-10-09 14:58:18 +00:00
|
|
|
LIBTHR "Link against libthr for threading" on \
|
2005-09-15 23:58:57 +00:00
|
|
|
LOG "With Syslog support" on \
|
2007-10-09 14:58:18 +00:00
|
|
|
MSDAV "With the Microsoft WebDAV extensions support" off \
|
|
|
|
PCRE "Build with libpcre support" off
|
2005-09-15 23:58:57 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-03-18 21:12:38 +00:00
|
|
|
PORTDOCS= README FAQ CHANGELOG
|
|
|
|
|
2005-09-15 23:58:57 +00:00
|
|
|
.if defined(WITHOUT_DAEMON)
|
|
|
|
CONFIGURE_ARGS+= --disable-daemon
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_LOG)
|
2007-06-14 21:43:54 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-log
|
2005-09-15 23:58:57 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MSDAV)
|
|
|
|
CONFIGURE_ARGS+= --enable-msdav
|
|
|
|
.endif
|
|
|
|
|
2007-10-09 14:58:18 +00:00
|
|
|
.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}"
|
|
|
|
|
2003-07-22 22:49:41 +00:00
|
|
|
post-install:
|
2005-09-15 23:58:57 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2008-03-18 21:12:38 +00:00
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
|
|
.endfor
|
2005-09-15 23:58:57 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|