debian/0000755000000000000000000000000012151670461007171 5ustar debian/apache20000644000000000000000000000011712106074563010417 0ustar mod .libs/mod_geoip.so mod debian/geoip.load mod debian/geoip.conf debian/README.source0000644000000000000000000000014212120054043011331 0ustar To get a orig tarball and check a new upstream release, run make -f debian/rules get-orig-source debian/compat0000644000000000000000000000000212117077042010365 0ustar 9 debian/watch0000644000000000000000000000074112117276240010223 0ustar # Upstream file download and the download link doesn't contain the version number, there # isn't a way to write a meaningful watch file. # # To check the current upstream release, go to the package home page [1], # download and extract file [2]. # # ex. VERSION = $(shell tar tf mod_geoip2-latest.tar.gz | head -n1 | cut -d '_' -f3 | sed 's/\///g') # # [1] http://dev.maxmind.com/geoip/mod_geoip2 # [2] http://www.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2-latest.tar.gz debian/changelog0000644000000000000000000000664212147432563011057 0ustar libapache2-mod-geoip (1.2.8-2) unstable; urgency=low * Upload to unstable * Add Vcs-* fields (forgot in previous upload) -- Prach Pongpanich Thu, 23 May 2013 22:24:51 +0700 libapache2-mod-geoip (1.2.8-1) experimental; urgency=low * New maintainer. (Closes: #670999) * New upstream release. (Closes: #666795) - Support Apache 2.4 * Adapt "sourceful transition towards Apache 2.4" patch from Arno Töll - Replace apache2-threaded-dev with apache2-dev in Build-Depends - Drop apache2.2-common in Depends - Drop libapache2-mod-geoip.{install,postinst,postrm} - Add debian/apache2 file * Update copyright file to version 1.0 format * Bump debhelper compat to level 9 - Convert debian/rules to debhelper-7 style - Use dh $@ --with apache2 in d/rules - Remove package prefix libapache2-mod-geoip.{docs,dirs,examples}, it is useless when build a single binary package * Add get-orig-source in debian/rules and README.source thanks to Arno Töll * Update debian/watch and explain why doesn't work * Add Vcs-* fields in debian/control * Bump to Standards-Version 3.9.4, no changes needed -- Prach Pongpanich Mon, 13 Mar 2013 10:42:30 +0700 libapache2-mod-geoip (1.2.7-1) unstable; urgency=low * New upstream release (Closes: #655492) - Includes support for newer APIs from upstream - Includes IPv6 support, as a result, now requires GeoIP >= 1.4.8 * Bump to standards version 3.9.3.1 - Change to debian/rules to add build-arch/build-indep rules * Remove reference in Description: to only working with Apache 2.x, as Debian only ships one version of Apache now -- Nigel Jones Thu, 29 Mar 2012 11:25:43 +1300 libapache2-mod-geoip (1.2.5-2) unstable; urgency=low * Update package for review - Correct changelog format (for 1.2.5-1) - Change location of Homepage in debian/control - Alter Section tag to match ftpmaster's override * Update build-depends to GeoIP >= 1.4.3 * Enable GeoIPDBFile (geoip.conf) by default -- Nigel Jones Fri, 21 May 2010 11:02:39 +1200 libapache2-mod-geoip (1.2.5-1) unstable; urgency=low * New maintainer (Closes: #578179) * Update package to latest upstream (Closes: #556904) - fixes "Causes intermittent segfaults." (Closes: #497560) * Change description from Apache 2.0 to 2.x as the module will work with newer versions of Apache (Closes: #400980) * Packaging: Convert package to debhelper v7 and in compliance with current packaging guidelines - Updated 'compat' version to 7 - Switched to dpkg-source v3 -- Nigel Jones Thu, 20 May 2010 21:08:01 +1200 libapache2-mod-geoip (1.1.8-2) unstable; urgency=low * new apache version 2.2 (Closes: #391788) -- Michael Mende Sun, 08 Oct 2006 18:44:02 +0200 libapache2-mod-geoip (1.1.8-1) unstable; urgency=low * new upstream version, includes patch #357387 * build depends no longer on dpatch -- Michael Mende Sat, 06 May 2006 11:44:02 +0200 libapache2-mod-geoip (1.1.7-2) unstable; urgency=low * patch by dann frazier (Closes: #357387) * build depends now on dpatch -- Michael Mende Fri, 17 Mar 2006 18:24:20 +0200 libapache2-mod-geoip (1.1.7-1) unstable; urgency=low * Initial release (Closes: #297842) -- Michael Mende Sun, 05 Feb 2006 18:24:20 +0200 debian/copyright0000644000000000000000000000625712120000434011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: mod_geoip2 Source: http://www.maxmind.com/app/mod_geoip Files: * Copyright: 2004, MaxMind LLC. License: Apache-1.1 The Apache Software License, Version 1.1 . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. The end-user documentation included with the redistribution, if any, must include the following acknowledgment: "This product includes software developed by the MaxMind (http://www.maxmind.com/)." Alternately, this acknowledgment may appear in the software itself, if and wherever such third-party acknowledgments normally appear. . 4. The names "MaxMind" and "GeoIP" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact support@maxmind.com. . 5. Products derived from this software may not be called "GeoIP", nor may "MaxMind" appear in their name, without prior written permission of the MaxMind. . THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2006, Michael Mende 2010, Nigel Jones 2013, Prach Pongpanich License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . The complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. debian/geoip.conf0000644000000000000000000000013711713236015011140 0ustar GeoIPEnable On #GeoIPDBFile /usr/share/GeoIP/GeoIP.dat debian/geoip.load0000644000000000000000000000007611713236015011134 0ustar LoadModule geoip_module /usr/lib/apache2/modules/mod_geoip.so debian/examples0000644000000000000000000000001311713236015010720 0ustar README.php debian/docs0000644000000000000000000000000711713236015010035 0ustar README debian/control0000644000000000000000000000152012122544132010563 0ustar Source: libapache2-mod-geoip Section: httpd Priority: optional Maintainer: Prach Pongpanich Build-Depends: apache2-dev, debhelper (>= 9), libgeoip-dev (>=1.4.8) Standards-Version: 3.9.4 Vcs-Git: git://github.com/prachpub/libapache2-mod-geoip.git Vcs-Browser: https://github.com/prachpub/libapache2-mod-geoip Homepage: http://www.maxmind.com/app/mod_geoip Package: libapache2-mod-geoip Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: GeoIP support for apache2 This is an apache2 module for finding the country that a web request originated from. It uses the GeoIP library and database to perform the lookup. The module allows manipulation of client requests from within Apache based on the country of origin. . This module only works on Apache 2 servers. debian/dirs0000644000000000000000000000003011713236015010042 0ustar usr/lib/apache2/modules debian/source/0000755000000000000000000000000011713245440010467 5ustar debian/source/format0000644000000000000000000000001411713236015011673 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000301712120053742010243 0ustar #!/usr/bin/make -f # This makes no difference for usual debian/rules invokations, but the # get-orig-source target might be called from any directory by policy. PACKAGE_ROOT := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) PACKAGE_ROOT := $(realpath $(PACKAGE_ROOT)/..) VERSION := $(shell cd $(PACKAGE_ROOT) && dpkg-parsechangelog | perl -ne 'print $$1 if m/Version:\s*([\d\.]+)-\d+/') %: dh $@ --with apache2 override_dh_auto_clean: rm -f mod_geoip.la mod_geoip.lo mod_geoip.slo mod_geoip.o rm -rf .libs override_dh_auto_build: apxs2 -c -lGeoIP mod_geoip.c override_dh_auto_test: override_dh_auto_install: # Get orig-source and check new upstream version get-orig-source: [ -n "$(VERSION)" ] || exit 1 set -e && ( \ CURDIR=`pwd` ;\ TMPDIR=`mktemp -d` ;\ cd $${TMPDIR} ;\ wget http://www.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2-latest.tar.gz ;\ LATEST=`tar tf mod_geoip2-latest.tar.gz | head -n1 | cut -d'_' -f3 | sed 's/\///g'` ;\ if [ "$(VERSION)" != "$${LATEST}" ] ; then \ echo "A new upstream version is available: $${LATEST}" ;\ fi ;\ if [ -f "$${CURDIR}/libapache2-mod-geoip_$(VERSION).orig.tar.gz" ] ; then\ echo "Cannot overwrite libapache2-mod-geoip_$(VERSION).orig.tar.gz: File exists" ;\ else\ echo "Generating libapache2-mod-geoip_$(VERSION).orig.tar.gz" ;\ wget http://www.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_$(VERSION).tar.gz ;\ mv mod_geoip2_$(VERSION).tar.gz $${CURDIR}/libapache2-mod-geoip_$(VERSION).orig.tar.gz ;\ fi ;\ rm -rf $${TMPDIR} ;\ )