mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
b7fc7ba655
- adopt new Makefile header Port build fails on local exp-run with apache24 with error: 'conn_rec' has no member named 'remote_ip' or various other apache22 specific functions/parameters with hat apache@
42 lines
920 B
Makefile
42 lines
920 B
Makefile
# Created by: Jukka A. Ukkonen <jau@iki.fi>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mod_geoip2
|
|
PORTVERSION= 1.2.7
|
|
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
|
|
|
|
LICENSE= AL2
|
|
|
|
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= 22
|
|
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>
|