2005-02-05 05:56:28 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2005/02/05 10:56:28 alek Exp $
|
2003-06-27 11:06:13 -04:00
|
|
|
|
|
|
|
COMMENT= "Apache module for finding the country of web requests"
|
|
|
|
|
|
|
|
# This port currently only works with archs supporting dynamic loading
|
|
|
|
# and has Apache that supports DSO's.
|
2005-02-05 05:56:28 -05:00
|
|
|
SHARED_ONLY= Yes
|
2003-06-27 11:06:13 -04:00
|
|
|
|
2004-11-14 16:40:35 -05:00
|
|
|
DISTNAME= mod_geoip_1.2.6
|
2005-02-05 05:56:28 -05:00
|
|
|
PKGNAME= mod_geoip-1.2.6p0
|
2003-06-27 11:06:13 -04:00
|
|
|
CATEGORIES= www
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.maxmind.com/app/mod_geoip
|
|
|
|
MASTER_SITES= http://www.maxmind.com/download/geoip/api/mod_geoip/
|
|
|
|
|
|
|
|
# Apache Software License
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2004-11-14 16:40:35 -05:00
|
|
|
LIB_DEPENDS= GeoIP.4::net/GeoIP
|
2003-06-27 11:06:13 -04:00
|
|
|
|
|
|
|
FLAGS= -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
APXS= /usr/sbin/apxs
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${APXS} -c -o mod_geoip.so ${FLAGS} -lGeoIP mod_geoip.c
|
|
|
|
@sed 's,!!PREFIX!!,${PREFIX},' \
|
|
|
|
< ${FILESDIR}/mod_geoip-enable \
|
|
|
|
> ${WRKBUILD}/mod_geoip-enable
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/mod_geoip.so ${PREFIX}/lib
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/mod_geoip-enable ${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_geoip
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mod_geoip
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|