initial commit of file from CVS for geoipupdate on Fri 14 Jul 13:48:10 BST 2023
This commit is contained in:
parent
ac0b055fda
commit
76aefad161
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
*.rpm
|
||||||
|
*.log
|
||||||
|
*spec-20*
|
21
Makefile
Normal file
21
Makefile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Makefile for source rpm: geoipupdate
|
||||||
|
# $Id: Makefile,v 1.1 2021/04/13 03:50:55 jpp Exp $
|
||||||
|
NAME := geoipupdate
|
||||||
|
SPECFILE = $(firstword $(wildcard *.spec))
|
||||||
|
|
||||||
|
define find-makefile-common
|
||||||
|
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||||
|
|
||||||
|
ifeq ($(MAKEFILE_COMMON),)
|
||||||
|
# attept a checkout
|
||||||
|
define checkout-makefile-common
|
||||||
|
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(MAKEFILE_COMMON)
|
@ -1,3 +1,11 @@
|
|||||||
# geoipupdate
|
# geoipupdate
|
||||||
|
|
||||||
3rd Party (Maintained by Koozali) git repo for geoipupdate smeserver
|
3rd Party (Maintained by Koozali) git repo for geoipupdate smeserver
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
<br />*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.*
|
||||||
|
*Once it has been checked, then this comment will be deleted*
|
||||||
|
<br />
|
||||||
|
|
||||||
|
GeoIPUpdate is a package for Linux and Mac OS X that provides an easy to use interface for downloading and managing the GeoIP2 and GeoLite2 databases from MaxMind. The package is designed to keep the GeoIP2 or GeoLite2 databases up-to-date and readily available for use with GeoIP-based applications.
|
||||||
|
1
contriborbase
Normal file
1
contriborbase
Normal file
@ -0,0 +1 @@
|
|||||||
|
sme10
|
BIN
geoipupdate-3.1.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
geoipupdate-3.1.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
4
geoipupdate.cron
Normal file
4
geoipupdate.cron
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# This updates the IPv4 databases based on product numbers in /etc/GeoIP.conf
|
||||||
|
geoipupdate > /dev/null
|
240
geoipupdate.spec
Normal file
240
geoipupdate.spec
Normal file
@ -0,0 +1,240 @@
|
|||||||
|
%global _hardened_build 1
|
||||||
|
|
||||||
|
Name: geoipupdate
|
||||||
|
Version: 3.1.1
|
||||||
|
Release: 2.1%{?dist}
|
||||||
|
Summary: Update GeoIP2 and GeoIP Legacy binary databases from MaxMind
|
||||||
|
License: GPLv2
|
||||||
|
URL: http://dev.maxmind.com/geoip/geoipupdate/
|
||||||
|
Source0: http://github.com/maxmind/geoipupdate/releases/download/v%{version}/geoipupdate-%{version}.tar.gz
|
||||||
|
Source1: geoipupdate.cron
|
||||||
|
BuildRequires: coreutils
|
||||||
|
BuildRequires: crontabs
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: libcurl-devel
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: sed
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
|
||||||
|
# Legacy databases fetched by cron6 sub-package no longer available
|
||||||
|
Obsoletes: geoipupdate-cron6 < %{version}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
The GeoIP Update program performs automatic updates of GeoIP2 and GeoIP
|
||||||
|
Legacy binary databases.
|
||||||
|
|
||||||
|
%package cron
|
||||||
|
Summary: Cron job to do weekly updates of GeoIP databases
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: crontabs
|
||||||
|
Obsoletes: GeoIP-update < 1.6.0
|
||||||
|
Provides: GeoIP-update = 1.6.0
|
||||||
|
|
||||||
|
%description cron
|
||||||
|
Cron job for weekly updates to GeoIP2 and GeoIP Legacy binary databases from
|
||||||
|
MaxMind.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-static --disable-dependency-tracking
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
# We'll package the documentation ourselves
|
||||||
|
rm -rf %{buildroot}%{_datadir}/doc/geoipupdate
|
||||||
|
|
||||||
|
install -D -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.weekly/geoipupdate
|
||||||
|
|
||||||
|
%files
|
||||||
|
%if 0%{?_licensedir:1}
|
||||||
|
%license LICENSE
|
||||||
|
%else
|
||||||
|
%doc LICENSE
|
||||||
|
%endif
|
||||||
|
%doc conf/GeoIP.conf.default README.md ChangeLog.md
|
||||||
|
%config(noreplace) %{_sysconfdir}/GeoIP.conf
|
||||||
|
%{_bindir}/geoipupdate
|
||||||
|
%dir %{_datadir}/GeoIP/
|
||||||
|
%{_mandir}/man1/geoipupdate.1*
|
||||||
|
%{_mandir}/man5/GeoIP.conf.5*
|
||||||
|
|
||||||
|
%files cron
|
||||||
|
%config(noreplace) %{_sysconfdir}/cron.weekly/geoipupdate
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 14 2023 BogusDateBot
|
||||||
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
||||||
|
by assuming the date is correct and changing the weekday.
|
||||||
|
Mon Apr 12 2020 --> Mon Apr 06 2020 or Sun Apr 12 2020 or Mon Apr 13 2020 or ....
|
||||||
|
|
||||||
|
* Sun Apr 12 2020 Jean-Philippe Pialasse <tests@pialasse.com> - 3.1.1-2.1
|
||||||
|
Mon Apr 12 2020 --> Mon Apr 06 2020 or Sun Apr 12 2020 or Mon Apr 13 2020 or ....
|
||||||
|
- import to SME10
|
||||||
|
|
||||||
|
* Mon Jan 21 2019 Paul Howarth <paul@city-fan.org> - 3.1.1-2
|
||||||
|
- Don't try to update the free legacy GeoIP databases as they are no longer
|
||||||
|
distributed by upstream
|
||||||
|
- Drop the cron6 sub-package as the files it tries to download are no longer
|
||||||
|
distributed by upstream
|
||||||
|
|
||||||
|
* Tue Sep 11 2018 Paul Howarth <paul@city-fan.org> - 3.1.1-1
|
||||||
|
- Update to 3.1.1
|
||||||
|
- Allow parsing of license keys longer than 12 characters
|
||||||
|
|
||||||
|
* Fri Aug 17 2018 Paul Howarth <paul@city-fan.org> - 3.1.0-1
|
||||||
|
- Update to 3.1.0
|
||||||
|
Changes in version 3.0.0:
|
||||||
|
- BREAKING CHANGE: When downloading the free databases without a MaxMind
|
||||||
|
account, you must either not have 'AccountID', 'UserId', or 'LicenseKey'
|
||||||
|
set in your configuration file or they must be set to the zero values
|
||||||
|
previously recommended in our documentation; any other value will cause an
|
||||||
|
authorization error
|
||||||
|
- BREAKING CHANGE: The configuration options 'Protocol',
|
||||||
|
'SkipPeerVerification', and `SkipHostnameVerification` are no longer
|
||||||
|
supported; if they are present in the configuration file, they will be
|
||||||
|
ignored - HTTPS with peer and hostname verification will be used on all
|
||||||
|
requests
|
||||||
|
- BREAKING CHANGE: The configuration file must have the 'AccountID' or the
|
||||||
|
deprecated 'UserId' when downloading a paid database; previously, when
|
||||||
|
downloading the GeoIP Legacy Country database, you were able to only
|
||||||
|
provide the 'LicenseKey'
|
||||||
|
- IMPORTANT: 'geoipupdate-pureperl.pl' has been removed and will no longer be
|
||||||
|
distributed with 'geoipupdate'; this Perl script had known issues and did
|
||||||
|
not have feature parity with the C implementation
|
||||||
|
- This program no longer uses the following endpoints:
|
||||||
|
'/app/update_getipaddr', '/app/update', and '/app/update_secure';
|
||||||
|
'/geoip/databases/{edition_id}/update' is now used instead
|
||||||
|
- Fixed issue in 'gu_strnlen()' dereferencing a pointer before checking that
|
||||||
|
it was in array bounds
|
||||||
|
- We now update the default GeoIP.conf during installation so that directory
|
||||||
|
paths match build parameters; previously this config always said the data
|
||||||
|
directory was under /usr/local/share which was not always accurate
|
||||||
|
- Improve the error checking and display the underlying reason for the error
|
||||||
|
when possible (GH#82)
|
||||||
|
- Document that the 'LockFile' is not removed from the filesystem after a
|
||||||
|
successful exit from the program (GH#79)
|
||||||
|
- Make default configuration directory agree with default installation
|
||||||
|
directory
|
||||||
|
Changes in version 3.0.1:
|
||||||
|
- When there were no updates available, 3.0.0 incorrectly returned an exit
|
||||||
|
code of 1 instead of 0; this release reverts to the pre-3.0.0 behavior,
|
||||||
|
returning an exit code of 0 in this case
|
||||||
|
Changes in version 3.1.0:
|
||||||
|
- This version restores the ability to use the 'AccountID'/'UserId' 999999
|
||||||
|
along with an all-zero license key when downloading free databases;
|
||||||
|
however, the use of this combination is not recommended and may break in
|
||||||
|
future versions
|
||||||
|
- When printing verbose output, only the first four characters of the
|
||||||
|
'LicenseKey' will now be displayed
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Oct 31 2017 Paul Howarth <paul@city-fan.org> - 2.5.0-1
|
||||||
|
- Update to 2.5.0
|
||||||
|
- Replace use of strnlen() due to lack of universal availability (GH#71)
|
||||||
|
- Document the 'LockFile' option in the 'GeoIP.conf' man page (GH#64)
|
||||||
|
- Remove unused base64 library (GH#68)
|
||||||
|
- Add the new configuration option 'PreserveFileTimes'; if set, the
|
||||||
|
downloaded files will get the same modification times as their original on
|
||||||
|
the server (default is '0') (GH#63)
|
||||||
|
- Use the correct types when calling 'curl_easy_setopt()'; this fixes
|
||||||
|
warnings generated by libcurl's 'typecheck-gcc.h' (GH#61)
|
||||||
|
- In 'GeoIP.conf', the 'UserId' option was renamed to 'AccountID' and the
|
||||||
|
'ProductIds' option was renamed to 'EditionIDs'; the old options will
|
||||||
|
continue to work, but upgrading to the new names is recommended for
|
||||||
|
forward compatibility
|
||||||
|
|
||||||
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri May 26 2017 Paul Howarth <paul@city-fan.org> - 2.4.0-1
|
||||||
|
- Update to 2.4.0
|
||||||
|
- geoipupdate now checks that the database directory is writable: if it is
|
||||||
|
not, it reports the problem and aborts
|
||||||
|
- geoipupdate now acquires a lock when starting up to ensure only one
|
||||||
|
instance may run at a time: a new option, 'LockFile', exists to set the
|
||||||
|
file to use as a lock ('.geoipupdate.lock' in the database directory by
|
||||||
|
default)
|
||||||
|
- geoipupdate now prints out additional information from the server when a
|
||||||
|
download request results in something other than HTTP status 2xx; this
|
||||||
|
provides more information when the API does not respond with a database
|
||||||
|
file
|
||||||
|
- ${datarootdir}/GeoIP is now created on 'make install' (GH#29)
|
||||||
|
- Previously, a variable named 'ERROR' was used, which caused issues building
|
||||||
|
on Windows (GH#36)
|
||||||
|
- Drop EL-5 support
|
||||||
|
- Drop BuildRoot: and Group: tags
|
||||||
|
- Drop explicit buildroot cleaning in %%install section
|
||||||
|
- Drop explicit %%clean section
|
||||||
|
- noarch subpackages always available now
|
||||||
|
- libcurl-devel always available now
|
||||||
|
|
||||||
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 5 2017 Paul Howarth <paul@city-fan.org> - 2.3.1-1
|
||||||
|
- Update to 2.3.1
|
||||||
|
- geoipupdate now uses TCP keep-alive when compiled with cURL 7.25 or
|
||||||
|
greater
|
||||||
|
- Previously, on an invalid gzip file, geoipupdate would output binary data
|
||||||
|
to stderr; it now displays an appropriate error message
|
||||||
|
- Install README, ChangeLog, GeoIP.conf.default etc. into docdir (GH#33)
|
||||||
|
- $(sysconfdir) is now created if it doesn't exist (GH#33)
|
||||||
|
- The sample config file is now usable (GH#33)
|
||||||
|
|
||||||
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 22 2016 Paul Howarth <paul@city-fan.org> - 2.2.2-1
|
||||||
|
- Update to 2.2.2
|
||||||
|
- geoipupdate now calls fsync on the database directory after a rename to
|
||||||
|
make it durable in the event of a crash
|
||||||
|
- Update autotools patch
|
||||||
|
|
||||||
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Apr 13 2015 Paul Howarth <paul@city-fan.org> - 2.2.1-2
|
||||||
|
- Split patch for upstream issue #26 into separate patches for upstream changes
|
||||||
|
and effect of running autotools
|
||||||
|
|
||||||
|
* Wed Mar 4 2015 Philip A. Prindeville <philipp@fedoraproject.org> - 2.2.1-1
|
||||||
|
- Update to 2.2.1
|
||||||
|
- geoipupdate now verifies the MD5 of the new database before deploying it;
|
||||||
|
if the database MD5 does not match the expected MD5, geoipupdate will exit
|
||||||
|
with an error
|
||||||
|
- The copy of 'base64.c' and 'base64.h' was switched to a version under
|
||||||
|
GPLv2+ to prevent a license conflict
|
||||||
|
- The 'LICENSE' file was added to the distribution
|
||||||
|
- Several issues in the documentation were fixed
|
||||||
|
- Use interim fix for upstream issue #26 until it's accepted:
|
||||||
|
https://github.com/maxmind/geoipupdate/issues/26
|
||||||
|
- Add buildroot and clean, BR: curl-devel rather than libcurl-devel for
|
||||||
|
EL-5 compatibility
|
||||||
|
|
||||||
|
* Tue Feb 10 2015 Paul Howarth <paul@city-fan.org> - 2.1.0-4
|
||||||
|
- New geoipupdate6 cron script written in Perl that doesn't download the data
|
||||||
|
if it hasn't changed
|
||||||
|
|
||||||
|
* Fri Feb 6 2015 Paul Howarth <paul@city-fan.org> - 2.1.0-3
|
||||||
|
- Add cron6 subpackage, equivalent to old GeoIP-update6 package
|
||||||
|
- Revise obsoletes/provides
|
||||||
|
|
||||||
|
* Sun Feb 1 2015 Philip A. Prindeville <philipp@fedoraproject.org> - 2.1.0-2
|
||||||
|
- Remove architecture-specific dependency in noarch subpackage
|
||||||
|
|
||||||
|
* Mon Jan 26 2015 Philip A. Prindeville <philipp@fedoraproject.org> - 2.1.0-1
|
||||||
|
- Initial review package (generated by rpmdev-newspec)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user