2003-01-24 20:37:55 +00:00
|
|
|
# New ports collection makefile for: mod_geoip
|
|
|
|
# Date created: 24 Jan 2003
|
|
|
|
# Whom: Sean Chittenden <seanc@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mod_geoip
|
2007-02-06 21:05:32 +00:00
|
|
|
PORTVERSION= 1.2.9
|
2007-07-22 19:53:52 +00:00
|
|
|
CATEGORIES= www geography
|
2003-01-24 20:37:55 +00:00
|
|
|
MASTER_SITES= http://www.maxmind.com/download/geoip/api/mod_geoip/
|
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
|
2006-12-13 16:14:17 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= An Apache module that provides the country code of the client's IP
|
2003-01-24 20:37:55 +00:00
|
|
|
|
2006-08-14 22:26:37 +00:00
|
|
|
LIB_DEPENDS= GeoIP.5:${PORTSDIR}/net/GeoIP
|
2003-01-24 20:37:55 +00:00
|
|
|
|
2007-02-06 21:05:32 +00:00
|
|
|
USE_APACHE= 1.3
|
2003-05-18 10:15:44 +00:00
|
|
|
|
2003-11-07 09:12:58 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-01-24 20:37:55 +00:00
|
|
|
|
2004-05-30 07:19:41 +00:00
|
|
|
PORTDOCS= Changes INSTALL README README.php
|
2003-01-24 20:37:55 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC} && \
|
2003-05-16 18:14:06 +00:00
|
|
|
${APXS} -c -L${LOCALBASE}/lib -I${LOCALBASE}/include -lGeoIP mod_geoip.c
|
2003-01-24 20:37:55 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${APXS} -i -A -n geoip ${WRKSRC}/mod_geoip.so
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/mod_geoip
|
2004-05-30 07:19:41 +00:00
|
|
|
.for f in ${PORTDOCS}
|
2003-01-24 20:37:55 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/mod_geoip/
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2003-05-18 10:15:44 +00:00
|
|
|
.include <bsd.port.post.mk>
|