summaryrefslogtreecommitdiff
path: root/www/mod_extract_forwarded/Makefile
blob: eea3b5147d5b54a88f208877f67a4508fa4315ea (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
# Created by: Anders Nordby <anders@fix.no>
# $FreeBSD$

PORTNAME=	mod_extract_forwarded
PORTVERSION=	2.0.2
PORTREVISION=	4
CATEGORIES=	www
MASTER_SITES=	http://www.openinfo.co.uk/apache/
DISTNAME=	extract_forwarded-${DISTVERSION}

MAINTAINER=	kuriyama@FreeBSD.org
COMMENT=	An Apache module that can make proxied requests appear with client IP

OPTIONS_DEFINE=	YOSHFUJI
YOSHFUJI_DESC=	yoshfuji patch (support IPv6 addr in config, etc)
#OPTIONS_DEFAULT=	YOSHFUJI

USE_APACHE=	22
WRKSRC=		${WRKDIR}/extract_forwarded
PORTDOCS=	INSTALL README
MAKE_JOBS_SAFE=	yes
PATCH_STRIP=	-p1

AP_FAST_BUILD=	yes
AP_GENPLIST=	yes

# Workaround for UNIQUENAME v.s. OptionsNG problem.
#   http://lists.freebsd.org/pipermail/freebsd-ports/2012-June/075466.html
UNIQUENAME=	ap22-${PORTNAME}

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MYOSHFUJI}
EXTRA_PATCHES=	${FILESDIR}/extra-patch-yoshfuji
.else
EXTRA_PATCHES=	${FILESDIR}/extra-patch-mod_extract_forwarded.c
.endif

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}/
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif
	${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>