Package: geoip # GeoIP(1) databases obsoleted by upstream. All users should move to # GeoIP2 databases to use with the libmaxminddb library. # geoipupdate was removed from geoip and moved to its own upstream at 1.6.0. # Can't update here until libGeoIP.dylib changes its install_name. Version: 1.5.2 Revision: 1 Description: IP address to country lookup tool License: LGPL Maintainer: Benjamin Reed BuildDepends: << autoconf2.6, automake1.15, libtool2, fink-package-precedence << Depends: %N-shlibs (= %v-%r) Source: https://github.com/maxmind/geoip-api-c/archive/v%v.tar.gz Source-Checksum: SHA256(4968c7ace7cc6c65009e179351bc259ded431daa3eca5a82709005bceda20f7c) SourceRename: %n-api-c-%v.tar.gz # upstream removed all v1 databases. #Source2: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz Source2: mirror:sourceforge:fink/GeoIP-20150718.dat.gz #Source2Rename: GeoIP-20150718.dat.gz Source2ExtractDir: geoip-api-c-%v/data Source2-Checksum: SHA256(df6ab63f886f3e09d17d08cf271e3908545d774ab0317de3b5752a86115c4cf9) #PatchFile: %n.patch #PatchFile-MD5: 9123c57d25da76d408dca2ba059c0b81 ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info --disable-static CompileScript: << cd data; gunzip GeoIP-20150718.dat.gz; mv GeoIP-20150718.dat GeoIP.dat autoreconf -fi ./configure %c make fink-package-precedence --prohibit-bdep=%n-dev . << # Tests require tarball that contains data/GeoIP.dat InfoTest: << TestScript: make check || exit 2 << InstallScript: make -j1 install DESTDIR=%d DocFiles: AUTHORS COPYING INSTALL LICENSE NEWS* README* TODO SplitOff: << Package: %N-dev Description: Headers and static libraries for GeoIP Depends: %N (= %v-%r) BuildDependsOnly: true Files: include lib/*.la lib/libGeoIP.dylib lib/libGeoIPUpdate.dylib << SplitOff2: << Package: %N-shlibs Description: Shared libraries for GeoIP Files: lib/*.dylib Shlibs: << %p/lib/libGeoIP.1.dylib 7.0.0 %n (>= 1.5.1-1) %p/lib/libGeoIPUpdate.0.dylib 1.0.0 %n (>= 1.3.5-1) << << ConfFiles: %p/etc/GeoIP.conf Homepage: http://dev.maxmind.com/geoip/legacy/downloadable DescUsage: << GeoIP is a C library that enables the user to find the country that any IP address or hostname originates from. It contains a free GeoIP Country database that is updated every month. This database simply contains IP blocks as keys, and countries as values. This database should be more complete and accurate than using reverse DNS lookups. We also offer a paid database that has greater accuracy than the free version, as well as paid databases with city level resolution. For more details see: http://www.maxmind.com/app/geoip_country http://www.maxmind.com/app/products << DescPackaging: << There's something weird in the generated autotools bits: reruns ./configure at start of make and sometimes fails when trying to manipulate .deps files. Redoing them self-consistently from scatch seems to solve it. Add missing exec_prefix to geoip.pc (some versions of pkg-config abort as soon as they encounter a broken .pc). <<