aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_rpaf2/Makefile
blob: b4cbccb9e966a21ae203f6fdc77d500e48f0c359 (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
# Created by: Clement Laforet <clement@FreeBSD.org>
# $FreeBSD$

PORTNAME=   mod_rpaf
PORTVERSION=    0.8.4
DISTVERSIONPREFIX=  v
PORTREVISION=   1
CATEGORIES= www
PKGNAMESUFFIX=  2

MAINTAINER= apache@FreeBSD.org
COMMENT=    Make proxied requests appear with client IP

LICENSE=    APACHE20

USES=       apache:2.4+

USE_GITHUB= yes
GH_ACCOUNT= gnif

AP_FAST_BUILD=  yes
SHORTMODNAME=   rpaf

SRC_FILE=   mod_rpaf.c

APMOD_FILE= 200_mod_rpaf.conf.sample
PLIST_SUB+= APMOD_FILE=${APMOD_FILE}
PLIST_FILES=    @sample\ ${APACHEETCDIR}/modules.d/200_${PORTNAME}.conf.sample \
        ${APACHEMODDIR}/${PORTNAME}.so
SUB_FILES=  ${APMOD_FILE}

PORTDOCS=   README.md

OPTIONS_DEFINE= DOCS

post-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKDIR}/${APMOD_FILE} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d
    ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>