blob: e3934d66fd68d1e085563df659ddcb94a6358d44 (
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
|
# 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"
|