1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name GeoLiteCity |
---|
7 | version 20101101 |
---|
8 | categories databases devel net |
---|
9 | maintainers pixilla.com:brad |
---|
10 | platforms darwin |
---|
11 | description GeoIP Lite City database (libgeoip) |
---|
12 | long_description ${description} |
---|
13 | homepage http://www.maxmind.com/app/geolitecity |
---|
14 | master_sites http://geolite.maxmind.com/download/geoip/database |
---|
15 | |
---|
16 | extract.suffix .gz |
---|
17 | distname GeoLiteCity.dat |
---|
18 | |
---|
19 | checksums sha1 44b4c5d3e024ee8803b5c6074a4d20d884d7c985 \ |
---|
20 | rmd160 7a67d85d6faa569dc87aee9d9b8a4f3ea416fe96 |
---|
21 | |
---|
22 | depends_lib port:libgeoip |
---|
23 | |
---|
24 | worksrcdir GeoLiteCity |
---|
25 | |
---|
26 | pre-extract { |
---|
27 | xinstall -m 755 -d ${worksrcpath} |
---|
28 | } |
---|
29 | extract.post_args > ${worksrcdir}/${distname} |
---|
30 | |
---|
31 | use_configure no |
---|
32 | build {} |
---|
33 | |
---|
34 | destroot { |
---|
35 | set datadir ${destroot}${prefix}/share/GeoIP |
---|
36 | xinstall -m 755 -d ${datadir} |
---|
37 | xinstall ${worksrcpath}/${distname} ${datadir}/GeoIPCity.dat |
---|
38 | } |
---|
39 | |
---|
40 | livecheck.type moddate |
---|
41 | livecheck.url ${master_sites}/${distname}${extract.suffix} |
---|