pghmcfc pushed to geoipupdate (el5). "Initial import (#1186889)."

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Apr 13 21:38:40 UTC 2015


>From f030ce0e834eb6066450ffcadbf44cb5f0a6111e Mon Sep 17 00:00:00 2001
From: "Philip A. Prindeville" <philipp at redfish-solutions.com>
Date: Sun, 1 Feb 2015 09:25:17 -0700
Subject: Initial import (#1186889).


diff --git a/.gitignore b/.gitignore
index e69de29..c6a9639 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/geoipupdate-2.1.0.tar.gz
diff --git a/geoipupdate.cron b/geoipupdate.cron
new file mode 100644
index 0000000..0f92e43
--- /dev/null
+++ b/geoipupdate.cron
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# This updates the IPv4 databases based on product numbers in /etc/GeoIP.conf
+geoipupdate > /dev/null
diff --git a/geoipupdate.spec b/geoipupdate.spec
new file mode 100644
index 0000000..eeb9846
--- /dev/null
+++ b/geoipupdate.spec
@@ -0,0 +1,83 @@
+# Noarch subpackages available from Fedora 10, RHEL6
+%global noarch_subpkgs 0%{?fedora} > 9 || 0%{?rhel} > 5
+
+%global _hardened_build 1
+
+Name:		geoipupdate
+Version:	2.1.0
+Release:	1%{?dist}
+Summary:	Update GeoIP2 and GeoIP Legacy binary databases from MaxMind
+
+Group:		Development/Tools
+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:	zlib-devel, libcurl-devel
+
+%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
+Group:		Development/Tools
+%if %{noarch_subpkgs}
+BuildArch:	noarch
+%endif
+Requires:	%{name}%{?_isa} = %{version}-%{release}, crontabs
+Provides:	GeoIP-cron = 1.6.0
+Obsoletes:	GeoIP-cron < 1.6.0
+
+%description cron
+Cron job for weekly updates to GeoIP2 and GeoIP Legacy database from MaxMind.
+
+%prep
+%setup -q
+
+
+%build
+%configure --disable-static --disable-dependency-tracking
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+%{__mkdir_p} %{buildroot}%{_docdir}/%{name}
+
+# fix up the config file to have geoipupdate fetch the free products by default
+%{__sed} -i \
+	-e 's/YOUR_USER_ID_HERE$/999999/' \
+	-e 's/YOUR_LICENSE_KEY_HERE$/000000000000/' \
+	-e 's/^\(ProductIds\) .*$/\1 506 517 533/' \
+	%{buildroot}%{_sysconfdir}/GeoIP.conf
+
+install -D -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.weekly/geoipupdate
+
+
+# LICENSE file is being omitted from release tarball. As soon as this issue:
+#   https://github.com/maxmind/geoipupdate/issues/25
+# is resolved we'll amend the spec file to include it in the packaging.
+
+# For now, see the LICENSE section in the README.md file below.
+
+%files
+%doc conf/GeoIP.conf.default README.md ChangeLog.md
+%config(noreplace) %{_sysconfdir}/GeoIP.conf
+%exclude %{_sysconfdir}/GeoIP.conf.default
+%{_bindir}/geoipupdate
+%{_mandir}/man1/geoipupdate.1.*
+%{_mandir}/man5/GeoIP.conf.5.*
+
+%files cron
+%config(noreplace) %{_sysconfdir}/cron.weekly/geoipupdate
+
+
+%changelog
+* Mon Jan 26 2015 Philip A. Prindeville <philipp at fedoraproject.org> - 2.1.0-1
+- Initial review package (generated by rpmdev-newspec).
+
diff --git a/sources b/sources
index e69de29..5321830 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9107d082f15c8e482f4b6f1080e7deaf  geoipupdate-2.1.0.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/geoipupdate.git/commit/?h=el5&id=f030ce0e834eb6066450ffcadbf44cb5f0a6111e


More information about the scm-commits mailing list