summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2011-10-14 17:08:16 +0000
committerJeremy Olexa <darkside@gentoo.org>2011-10-14 17:08:16 +0000
commit1721fad834be0aa6f2b554af11e01d33b930b239 (patch)
tree39cf2faa473e4959ad5456fd923cea61d607d22e /www-apache
parentVersion bump (diff)
downloadgentoo-2-1721fad834be0aa6f2b554af11e01d33b930b239.tar.gz
gentoo-2-1721fad834be0aa6f2b554af11e01d33b930b239.tar.bz2
gentoo-2-1721fad834be0aa6f2b554af11e01d33b930b239.zip
New Apache module. Original ebuild by Lance Albertson. bug 304675
(Portage version: 2.1.10.22/cvs/Linux x86_64)
Diffstat (limited to 'www-apache')
-rw-r--r--www-apache/mod_geoip2/ChangeLog10
-rw-r--r--www-apache/mod_geoip2/files/30_mod_geoip2.conf5
-rw-r--r--www-apache/mod_geoip2/metadata.xml5
-rw-r--r--www-apache/mod_geoip2/mod_geoip2-1.2.7.ebuild31
4 files changed, 51 insertions, 0 deletions
diff --git a/www-apache/mod_geoip2/ChangeLog b/www-apache/mod_geoip2/ChangeLog
new file mode 100644
index 000000000000..4c55963a70e5
--- /dev/null
+++ b/www-apache/mod_geoip2/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for www-apache/mod_geoip2
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_geoip2/ChangeLog,v 1.1 2011/10/14 17:08:16 darkside Exp $
+
+*mod_geoip2-1.2.7 (14 Oct 2011)
+
+ 14 Oct 2011; Jeremy Olexa <darkside@gentoo.org> +files/30_mod_geoip2.conf,
+ +mod_geoip2-1.2.7.ebuild, +metadata.xml:
+ New Apache module. Original ebuild by Lance Albertson. bug 304675
+
diff --git a/www-apache/mod_geoip2/files/30_mod_geoip2.conf b/www-apache/mod_geoip2/files/30_mod_geoip2.conf
new file mode 100644
index 000000000000..41206ad7ba0a
--- /dev/null
+++ b/www-apache/mod_geoip2/files/30_mod_geoip2.conf
@@ -0,0 +1,5 @@
+<IfDefine GEOIP>
+LoadModule geoip_module modules/mod_geoip.so
+</IfDefine>
+
+# vim: ts=4 filetype=apache
diff --git a/www-apache/mod_geoip2/metadata.xml b/www-apache/mod_geoip2/metadata.xml
new file mode 100644
index 000000000000..64a719ea1bfd
--- /dev/null
+++ b/www-apache/mod_geoip2/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>apache</herd>
+</pkgmetadata>
diff --git a/www-apache/mod_geoip2/mod_geoip2-1.2.7.ebuild b/www-apache/mod_geoip2/mod_geoip2-1.2.7.ebuild
new file mode 100644
index 000000000000..60a386b76524
--- /dev/null
+++ b/www-apache/mod_geoip2/mod_geoip2-1.2.7.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_geoip2/mod_geoip2-1.2.7.ebuild,v 1.1 2011/10/14 17:08:16 darkside Exp $
+
+inherit apache-module
+
+MY_P="${PN}_${PV}"
+MY_PN="${PN/2}"
+
+DESCRIPTION="Apache 2.x module for finding the country and city
+that a web request originated from"
+HOMEPAGE="http://www.maxmind.com/app/mod_geoip"
+SRC_URI="http://geolite.maxmind.com/download/geoip/api/mod_geoip2/${MY_P}.tar.gz"
+LICENSE="Apache-1.1"
+
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+SLOT="0"
+
+DEPEND=">=dev-libs/geoip-1.4.8"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+# See apache-module.eclass for more information.
+APACHE2_MOD_CONF="30_${PN}"
+APACHE2_MOD_FILE="${S}/.libs/${MY_PN}.so"
+APXS2_ARGS="-l GeoIP -c ${MY_PN}.c"
+DOCFILES="INSTALL README README.php Changes"
+
+need_apache2