blob: 07ca78aaf5a35fe5a7a1ceb5a67b5f0e4cf2a71b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# New ports collection makefile for: pound
# Date created: 27 August 2002
# Whom: Anders Nordby <anders@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pound
PORTVERSION= 2.4.5
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>
PORTDOCS= README FAQ CHANGELOG
.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}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|