Ticket #27335: Portfile

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