diff options
Diffstat (limited to 'homebrew/geoip/.make.sh-auto')
-rw-r--r-- | homebrew/geoip/.make.sh-auto | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/homebrew/geoip/.make.sh-auto b/homebrew/geoip/.make.sh-auto new file mode 100644 index 000000000..dab944eba --- /dev/null +++ b/homebrew/geoip/.make.sh-auto @@ -0,0 +1,9 @@ +pkg:setup +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? |