-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debian/Ubuntu packaging #58
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> Wed, 18 Jul 2018 21:12:01 +0200 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mod src/.libs/mod_maxminddb.so | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need this line? From the docs it sounds like we need to only list .so if we don't install it otherwise (which I think we would?) https://manpages.debian.org/unstable/apache2-dev/dh_apache2.1.en.html There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am by no means an expert, just toyed around with building this. |
||
mod debian/maxminddb.load | ||
mod debian/maxminddb.conf |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mod-maxminddb (1.1.0-1) unstable; urgency=medium | ||
|
||
* Initial release. | ||
|
||
-- Adam Cecile <[email protected]> Wed, 18 Jul 2018 21:12:01 +0200 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Source: mod-maxminddb | ||
Section: httpd | ||
Priority: optional | ||
Maintainer: Adam Cecile <[email protected]> | ||
Build-Depends: debhelper (>= 9), dh-apache2, apache2-dev, libmaxminddb-dev | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems incomplete, because after installing these packages a build attempt still fails for me with:
So it looks like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And, in turn, this test stuff seems to croak later as well, like this:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dpkg-buildpackage -us -uc builds just fine, perl module is just needed if you want to run tests. though would probably not use mod_perl but some cgi script as its more common to have this enabled for testing without loading in more modules. edit: I did a ./bootstrap first tho |
||
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. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
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". |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<IfModule mod_maxminddb.c> | ||
# For performance reasons, it's not recommended to turn GeoIP on serverwide, | ||
# but rather only in <Location> or <Directory> 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 | ||
</IfModule> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
LoadModule maxminddb_module /usr/lib/apache2/modules/mod_maxminddb.so |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (quilt) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version=4 | ||
opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%mod_maxminddb-$1.tar.gz%" \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is certainly a mouthful. What's the benefit in having the watch file in this situation? I looked at the uscan docs for a bit and I'm still not sure 😄. |
||
https://github.com/maxmind/mod_maxminddb/tags \ | ||
(?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a small typo here.