1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name mod_geoip |
---|
7 | version 1.2.7 |
---|
8 | categories www |
---|
9 | platforms darwin |
---|
10 | maintainers nomaintainer |
---|
11 | description mod_geoip is an apache2 module that detects for stuff via GeoIP databases. |
---|
12 | long_description ${description} |
---|
13 | |
---|
14 | homepage http://www.maxmind.com/ |
---|
15 | master_sites http://geolite.maxmind.com/download/geoip/api/mod_geoip2/ |
---|
16 | |
---|
17 | distfiles mod_geoip2_${version}.tar.gz |
---|
18 | |
---|
19 | checksums \ |
---|
20 | md5 76514ad0e8adb8cd8231c5e3646d03fd \ |
---|
21 | sha1 0b23848d459415d979171efbb635e67568ae2816 \ |
---|
22 | rmd160 53892855810bd6a6578a3ae82d6a3acaf13173d3 |
---|
23 | |
---|
24 | depends_lib port:apache2 |
---|
25 | |
---|
26 | use_configure no |
---|
27 | |
---|
28 | worksrcdir mod_geoip2_${version} |
---|
29 | |
---|
30 | build.cmd ${prefix}/apache2/bin/apxs |
---|
31 | build.target |
---|
32 | build.args -L${prefix}/lib -lGeoIP -c -o mod_geoip.so mod_geoip.c |
---|
33 | |
---|
34 | destroot { |
---|
35 | xinstall -m 755 -d ${destroot}${prefix}/apache2/modules \ |
---|
36 | ${destroot}${prefix}/share/doc/${name} |
---|
37 | xinstall -m 755 ${worksrcpath}/.libs/mod_geoip.so \ |
---|
38 | ${destroot}${prefix}/apache2/modules |
---|
39 | xinstall -m 644 -W ${worksrcpath} Changes INSTALL README README.php \ |
---|
40 | ${destroot}${prefix}/share/doc/${name} |
---|
41 | } |
---|