summaryrefslogtreecommitdiff
path: root/www/ap-rpaf/Makefile
blob: 891a272b7b8f7df133a1ebb268a676028a4b0e97 (plain)
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
# $NetBSD: Makefile,v 1.6 2007/03/19 16:35:51 tv Exp $
#

DISTNAME=		mod_rpaf-0.5
PKGNAME=		${APACHE_PKG_PREFIX}-rpaf-0.5
CATEGORIES=		www
MASTER_SITES=		http://stderr.net/apache/rpaf/download/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://stderr.net/apache/rpaf/
COMMENT=		Remaps reverse-proxied connections to "real" requesting IPs

CONFLICTS=		ap-rpaf-[0-9]*

APACHE_MODULE=		yes
INSTALLATION_DIRS=	share/doc

.include "../../mk/bsd.prefs.mk"
.include "../../mk/apache.mk"

do-build:
	cd ${WRKSRC} && ${APXS} -c mod_rpaf.c

do-install:
	cd ${WRKSRC} && ${APXS} -n rpaf_module -i mod_rpaf.${APXS_SUFFIX}
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mod_rpaf.txt

APXS_SUFFIX?=		so

.if ${PKG_APACHE} != "apache13"
APXS_SUFFIX=		la
do-configure:
	${RM} -f ${WRKSRC}/mod_rpaf.c
	${CP} -f ${WRKSRC}/mod_rpaf-2.0.c ${WRKSRC}/mod_rpaf.c
.endif

.include "../../mk/bsd.pkg.mk"