Ticket #27334: Portfile

File Portfile, 1.2 KB (added by pixilla (Bradley Giesbrecht), 13 years ago)
Line 
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
4PortSystem          1.0
5
6name                GeoLiteCity
7version             20101101
8categories          databases devel net
9maintainers         pixilla.com:brad
10platforms           darwin
11description         GeoIP Lite City database (libgeoip)
12long_description    ${description}
13homepage            http://www.maxmind.com/app/geolitecity
14master_sites        http://geolite.maxmind.com/download/geoip/database
15
16extract.suffix      .gz
17distname            GeoLiteCity.dat
18
19checksums           sha1    44b4c5d3e024ee8803b5c6074a4d20d884d7c985 \
20                    rmd160  7a67d85d6faa569dc87aee9d9b8a4f3ea416fe96
21
22depends_lib         port:libgeoip
23
24worksrcdir          GeoLiteCity
25
26pre-extract {
27    xinstall -m 755 -d ${worksrcpath}
28}
29extract.post_args   > ${worksrcdir}/${distname}
30
31use_configure       no
32build {}
33
34destroot  {
35    set datadir ${destroot}${prefix}/share/GeoIP
36    xinstall -m 755 -d ${datadir}
37    xinstall ${worksrcpath}/${distname} ${datadir}/GeoIPCity.dat
38}
39
40livecheck.type      moddate
41livecheck.url       ${master_sites}/${distname}${extract.suffix}