aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_geoip2/Makefile
blob: c8200d05530d55bc5456a7135829dd2daf0abc16 (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
# New ports collection makefile for:    mod_geoip2
# Date created:             26 Aug 2005
# Whom:                 Jukka A. Ukkonen <jau@iki.fi>
#
# $FreeBSD$
#

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

MAINTAINER= jau@iki.fi
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

MAKE_JOBS_SAFE=  yes

CONFLICTS=  mod_geoip-[0-9]*

WRKSRC=     ${WRKDIR}/${PORTNAME}_${PORTVERSION}

USE_APACHE= 2.0+
MODULENAME= mod_geoip
AP_FAST_BUILD=  yes
AP_GENPLIST=    yes
AP_INC+=    ${LOCALBASE}/include
AP_LIB+=    ${LOCALBASE}/lib -lGeoIP

SUB_FILES+= pkg-message
PORTDOCS=   Changes INSTALL README README.php

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>