mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
7b849f772f
Sponsored by: Absolight
36 lines
987 B
Makefile
36 lines
987 B
Makefile
# Created by: Martin Matuska <mm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mod_geoip
|
|
CATEGORIES= www geography
|
|
PKGNAMEPREFIX= lighttpd-
|
|
DISTNAME= lighttpd-${PORTVERSION}
|
|
|
|
COMMENT= GeoIP module for lighttpd
|
|
|
|
LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP
|
|
BUILD_DEPENDS= ${LOCALBASE}/sbin/lighttpd:${PORTSDIR}/www/lighttpd
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/lighttpd:${PORTSDIR}/www/lighttpd
|
|
|
|
MASTERDIR= ${.CURDIR}/../lighttpd
|
|
DESCR= ${.CURDIR}/pkg-descr
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
|
|
PATCH_SITES+= LOCAL/mm
|
|
PATCHFILES+= lighttpd-1.4.26_mod_geoip.patch.gz
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src
|
|
ALL_TARGET= ${PORTNAME}.la
|
|
|
|
_BUILDING_LIGHTTPD_MODULE= yes
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/lighttpd
|
|
@${INSTALL_LIB} ${WRKSRC}/src/.libs/${PORTNAME}.so \
|
|
${STAGEDIR}${PREFIX}/lib/lighttpd
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/lighttpd/conf.d
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/config/conf.d/geoip.conf \
|
|
${STAGEDIR}${PREFIX}/etc/lighttpd/conf.d/geoip.conf.sample
|
|
|
|
.include "${MASTERDIR}/Makefile"
|