| 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 GeoLiteCountry |
|---|
| 7 | version 20101101 |
|---|
| 8 | categories databases devel net |
|---|
| 9 | maintainers pixilla.com:brad |
|---|
| 10 | platforms darwin |
|---|
| 11 | description GeoIP Lite Country database (libgeoip) |
|---|
| 12 | long_description ${description} |
|---|
| 13 | homepage http://www.maxmind.com/app/geolitecountry |
|---|
| 14 | master_sites http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry |
|---|
| 15 | |
|---|
| 16 | extract.suffix .gz |
|---|
| 17 | distname GeoIP.dat |
|---|
| 18 | |
|---|
| 19 | checksums sha1 83bef42c89105c7040660ebacf526a304626cb50 \ |
|---|
| 20 | rmd160 c6171040e5891fb8267125a2db75dba3464048ac |
|---|
| 21 | |
|---|
| 22 | depends_lib port:libgeoip |
|---|
| 23 | |
|---|
| 24 | worksrcdir GeoLiteCountry |
|---|
| 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} |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | livecheck.type moddate |
|---|
| 41 | livecheck.url ${master_sites}/${distname}${extract.suffix} |
|---|