diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 00000000..84022725 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,10 @@ +libapache2-mod-maxminddb for Debian +----------------------------------- + +This package requires non-free MaxMind database files. +Some of them can be dowloaded for free using geoipupdate package. +They will be installed in /var/lib/GeoIP folder. + +More information at: https://dev.maxmind.com/geoip/geoip2/geolite2/ + + -- Adam Cecile Wed, 18 Jul 2018 21:12:01 +0200 diff --git a/debian/apache2 b/debian/apache2 new file mode 100644 index 00000000..85a91a15 --- /dev/null +++ b/debian/apache2 @@ -0,0 +1,3 @@ +mod src/.libs/mod_maxminddb.so +mod debian/maxminddb.load +mod debian/maxminddb.conf diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..902a0187 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +mod-maxminddb (1.1.0-1) unstable; urgency=medium + + * Initial release. + + -- Adam Cecile Wed, 18 Jul 2018 21:12:01 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..8e15ff3f --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: mod-maxminddb +Section: httpd +Priority: optional +Maintainer: Adam Cecile +Build-Depends: debhelper (>= 9), dh-apache2, apache2-dev, libmaxminddb-dev +Standards-Version: 4.1.3 +Homepage: https://github.com/maxmind/mod_maxminddb/ + +Package: libapache2-mod-maxminddb +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: geoipupdate +Description: Query MaxMind DB (geo-localisation) files + Query MaxMind DB files to perform actions based on geo-localisation. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..5a1f979a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mod-maxminddb +Source: https://github.com/maxmind/mod_maxminddb/releases + +Files: * +Copyright: 2013-2014 MaxMind, Inc. +License: Apache-2.0 + +Files: debian/* +Copyright: 2018 Adam Cecile +License: Apache-2.0 + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + https://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + . + On Debian systems, the complete text of the Apache version 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". diff --git a/debian/docs b/debian/docs new file mode 100644 index 00000000..b43bf86b --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/maxminddb.conf b/debian/maxminddb.conf new file mode 100644 index 00000000..781271d0 --- /dev/null +++ b/debian/maxminddb.conf @@ -0,0 +1,14 @@ + + # For performance reasons, it's not recommended to turn GeoIP on serverwide, + # but rather only in or blocks where it's actually + # needed. + # + # See configuration examples in: + # /usr/share/doc/libapache2-mod-maxminddb/README.md.gz + # + # Please also take a few seconds reading + # /usr/share/doc/libapache2-mod-maxminddb/README.Debian + # to understand how to get MaxMind database files + # + MaxMindDBEnable Off + diff --git a/debian/maxminddb.load b/debian/maxminddb.load new file mode 100644 index 00000000..3c770366 --- /dev/null +++ b/debian/maxminddb.load @@ -0,0 +1 @@ +LoadModule maxminddb_module /usr/lib/apache2/modules/mod_maxminddb.so diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..9954b142 --- /dev/null +++ b/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +DESTDIR := debian/libapache2-mod-maxminddb + +%: + dh $@ --with apache2 + +override_dh_auto_install: + +override_dh_installdocs: + dh_installdocs + sed -i 's!/usr/local/share/GeoIP/!/var/lib/GeoIP/!g' \ + $(DESTDIR)/usr/share/doc/libapache2-mod-maxminddb/README.md + +dh_installchangelogs: + dh_installchangelogs Changes.md diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 00000000..ff964850 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%mod_maxminddb-$1.tar.gz%" \ + https://github.com/maxmind/mod_maxminddb/tags \ + (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate