aboutsummaryrefslogtreecommitdiff
path: root/www/pound/Makefile
blob: fb3db4e6be18d4cc145ace9e77cc872969fd40cb (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
PORTNAME=	pound
PORTVERSION=	4.7
CATEGORIES=	www net
MASTER_SITES=	https://github.com/graygnuorg/pound/releases/download/v${PORTVERSION}/

MAINTAINER=	zeus@gnu.org.ua
COMMENT=	HTTP/HTTPS reverse-proxy and load-balancer
WWW=		https://github.com/graygnuorg/pound

LICENSE=	GPLv3+

USES=		cpe gmake ssl
CPE_VENDOR=	apsis
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-tcmalloc --disable-hoard
USE_RC_SUBR=	${PORTNAME}
TEST_TARGET=	check

SUB_FILES=	${PORTNAME}.cfg
SUB_LIST=	NAME=${PORTNAME}

PORTDOCS=	AUTHORS ChangeLog ChangeLog.apsis NEWS README THANKS

OPTIONS_DEFINE=	DOCS DSAPARAM PCRE
OPTIONS_DEFAULT=PCRE
DSAPARAM_DESC=	Generate DH parameters without using "safe" primes

PCRE_LIB_DEPENDS=	libpcre.so:devel/pcre
PCRE_USES=	localbase
PCRE_CONFIGURE_ENABLE=	pcreposix

post-patch-DSAPARAM-on:
	@${REINPLACE_CMD} -e '/openssl dhparam/s,-5,-dsaparam,' \
		${WRKSRC}/src/Makefile.in

post-install:
	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.cfg \
		${STAGEDIR}${PREFIX}/etc/${PORTNAME}.cfg.sample

post-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>