diff options
author | seanc <seanc@FreeBSD.org> | 2003-09-05 05:10:47 +0800 |
---|---|---|
committer | seanc <seanc@FreeBSD.org> | 2003-09-05 05:10:47 +0800 |
commit | 2faf4837c4d2a8ff57160f62adf877fab90eb2a1 (patch) | |
tree | 1e5db6cde33f88bab04133eda68022acb56c14bf | |
parent | b0121430e762ebb260365f5193d18a527ac3c373 (diff) | |
download | freebsd-ports-graphics-2faf4837c4d2a8ff57160f62adf877fab90eb2a1.tar.gz freebsd-ports-graphics-2faf4837c4d2a8ff57160f62adf877fab90eb2a1.tar.zst freebsd-ports-graphics-2faf4837c4d2a8ff57160f62adf877fab90eb2a1.zip |
Chase net/GeoIP's new API and update mod_geoip to 1.2.2
-rw-r--r-- | www/mod_geoip/Makefile | 3 | ||||
-rw-r--r-- | www/mod_geoip/distinfo | 2 | ||||
-rw-r--r-- | www/mod_geoip/files/patch-mod_geoip.c | 41 |
3 files changed, 2 insertions, 44 deletions
diff --git a/www/mod_geoip/Makefile b/www/mod_geoip/Makefile index 70b86956c8f..e8c5bbe801f 100644 --- a/www/mod_geoip/Makefile +++ b/www/mod_geoip/Makefile @@ -6,8 +6,7 @@ # PORTNAME= mod_geoip -PORTVERSION= 1.1.1 -PORTREVISION= 1 +PORTVERSION= 1.2.2 CATEGORIES= www MASTER_SITES= http://www.maxmind.com/download/geoip/api/mod_geoip/ DISTNAME= ${PORTNAME}_${PORTVERSION} diff --git a/www/mod_geoip/distinfo b/www/mod_geoip/distinfo index 89a4bb4af50..cdb8587a06c 100644 --- a/www/mod_geoip/distinfo +++ b/www/mod_geoip/distinfo @@ -1 +1 @@ -MD5 (mod_geoip_1.1.1.tar.gz) = 9696b839f4b754935b3f1f0671618075 +MD5 (mod_geoip_1.2.2.tar.gz) = 0f18b00a67c9dfc8d3ad50855bba8419 diff --git a/www/mod_geoip/files/patch-mod_geoip.c b/www/mod_geoip/files/patch-mod_geoip.c deleted file mode 100644 index f3e959fc623..00000000000 --- a/www/mod_geoip/files/patch-mod_geoip.c +++ /dev/null @@ -1,41 +0,0 @@ ---- mod_geoip.c.orig Mon May 19 15:03:19 2003 -+++ mod_geoip.c Mon May 19 15:08:36 2003 -@@ -209,7 +209,8 @@ - } - - databaseType = GeoIP_database_edition(cfg->gip); -- if (databaseType == GEOIP_COUNTRY_EDITION) { -+ switch (databaseType) { -+ case GEOIP_COUNTRY_EDITION: - country_id = GeoIP_country_id_by_addr(cfg->gip, ipaddr); - - if (country_id > 0) { -@@ -224,7 +225,8 @@ - ap_table_set(r->subprocess_env, "GEOIP_COUNTRY_NAME", country_name); - } - } -- } else if (databaseType == GEOIP_REGION_EDITION) { -+ break; -+ case GEOIP_REGION_EDITION: - giregion = GeoIP_region_by_name (cfg->gip, ipaddr); - if (giregion != NULL) { - if (cfg->GeoIPOutput & GEOIP_NOTES) { -@@ -241,7 +243,9 @@ - } - GeoIPRegion_delete(giregion); - } -- } else if (databaseType == GEOIP_CITY_EDITION) { -+ break; -+ case GEOIP_CITY_EDITION_REV0: -+ case GEOIP_CITY_EDITION_REV1: - gir = GeoIP_record_by_addr(cfg->gip, ipaddr); - if (gir != NULL) { - if (cfg->GeoIPOutput & GEOIP_NOTES) { -@@ -261,6 +265,7 @@ - ap_table_set(r->subprocess_env, "GEOIP_CITY", gir->city); - } - } -+ break; - } - return OK; - } |