summaryrefslogtreecommitdiff
path: root/homebrew/geoip/.beer
blob: e9fa43d27a3f3c7c162cd61c72ae3f6ebbb5c218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
    "name": "Geoip",
    "description": "This library is for the GeoIP Legacy format (dat)",
    "url": "https://github.com/maxmind/geoip-api-c/releases/download/v1.6.12/GeoIP-1.6.12.tar.gz",
    "mirror": null,
    "homepage": "https://github.com/maxmind/geoip-api-c",
    "depends": [],
    "resource": [
        {
            "name": "database",
            "url": "https://src.fedoraproject.org/lookaside/pkgs/GeoIP/GeoIP.dat.gz/4bc1e8280fe2db0adc3fe48663b8926e/GeoIP.dat.gz"
        }
    ],
    "conflicts": [],
    "patches": [],
    "install": [
        "geoip_data = Pathname.new \"#{var}/GeoIP\"",
        "geoip_data.mkpath",
        "legacy_data = Pathname.new \"#{HOMEBREW_PREFIX}/share/GeoIP\"",
        "cp Dir[\"#{legacy_data}/*\"], geoip_data if legacy_data.exist?",
        "full = Pathname.new \"#{geoip_data}/GeoIP.dat\"",
        "ln_s \"GeoLiteCountry.dat\", full unless full.exist? || full.symlink?",
        "full = Pathname.new \"#{geoip_data}/GeoIPCity.dat\"",
        "ln_s \"GeoLiteCity.dat\", full unless full.exist? || full.symlink?"
    ],
    "version": "1.6.12",
    "file": "geoip.rb"
}