aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_geoip/Makefile
blob: 5135dd0e2e3c1f69467003a22c47f905edb2019c (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
# New ports collection makefile for:    mod_geoip
# Date created:         24 Jan 2003
# Whom:             Sean Chittenden <seanc@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mod_geoip
PORTVERSION=    1.3.0
CATEGORIES= www geography
MASTER_SITES=   http://www.maxmind.com/download/geoip/api/mod_geoip/
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    An Apache module that provides the country code of the client's IP

BUILD_DEPENDS=  GeoIP>=1.4.4:${PORTSDIR}/net/GeoIP
RUN_DEPENDS=    GeoIP>=1.4.4:${PORTSDIR}/net/GeoIP

USE_APACHE= 1.3
AP_FAST_BUILD=  yes
AP_GENPLIST=    yes
AP_EXTRAS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib -lGeoIP

.include <bsd.port.pre.mk>

PORTDOCS=       Changes INSTALL README README.php

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

.include <bsd.port.post.mk>