commit d70fb5cf12d3af89404c6e78efe6b535a271f800f6fafd04db8c66201fba03ef Author: Adrian Schröter Date: Tue Oct 1 08:37:39 2024 +0200 Sync from SUSE:SLFO:Main geolite2legacy revision 486c2434523deb1d7e1b6a3e7355c97a diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..e296e34 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + 0 + 0+git%cd.%h + https://github.com/sherpya/geolite2legacy.git + git + enable + + + xz + *.tar + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..542b315 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/sherpya/geolite2legacy.git + 05733c435f0faa3e375bfa1c386695216e1b9e6a \ No newline at end of file diff --git a/geolite2legacy-0+git20210326.05733c4.tar.xz b/geolite2legacy-0+git20210326.05733c4.tar.xz new file mode 100644 index 0000000..dcb3684 --- /dev/null +++ b/geolite2legacy-0+git20210326.05733c4.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ba3d3c44a618c9b081b9cca287f78e185a37487cd6705eb8b40ba2969864d17 +size 232776 diff --git a/geolite2legacy.changes b/geolite2legacy.changes new file mode 100644 index 0000000..9481eac --- /dev/null +++ b/geolite2legacy.changes @@ -0,0 +1,40 @@ +------------------------------------------------------------------- +Mon Aug 22 14:29:24 UTC 2022 - valentin.lefebvre@suse.com + +- Update to version 0+git20210326.05733c4: + * cleanup + * conditional ipaddr only for python < 3.3 + * Use correct docker image name on README + * fix ASN + * add python3 compatibility using built-in module ipaddress + * use custom comment in country file + * geolite2legacy: pep8 + * geoname2fips: added tipical filenames to help + * geoname2fips: some country names changed after 20200505 + * geoname2fips: fixed Vlaams-Brabant spelling + * Dockerfile to run the converter inside Docker container + * Use realpath to determine fips file location + * Automatically determine output file name +- remove patches fixed in upstream + * 0001-Automatically-determine-output-file-name.patch + * 0001-Use-realpath-to-determine-fips-file-location.patch + +------------------------------------------------------------------- +Mon Mar 16 13:36:11 UTC 2020 - pgajdos@suse.com + +- require python3-ipaddr + +------------------------------------------------------------------- +Fri Jan 03 09:38:56 UTC 2020 - lnussel@suse.de + +- Update to version 0+git20200101.56d8a4f: + * silence pycharm warning + * add version in comment using dirname inside zip + * use geoname2fips.csv in script dir if not specified + * remap country code from AS to AP (GH-6) + * correct city v6 database version + +------------------------------------------------------------------- +Mon Dec 30 12:48:37 UTC 2019 - Ludwig Nussel + +- initial package diff --git a/geolite2legacy.spec b/geolite2legacy.spec new file mode 100644 index 0000000..84640b9 --- /dev/null +++ b/geolite2legacy.spec @@ -0,0 +1,52 @@ +# +# spec file for package geolite2legacy +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: geolite2legacy +Version: 0+git20210326.05733c4 +Release: 0 +Summary: GeoLite2 (CSV) to Legacy format converter +License: MIT +URL: https://github.com/sherpya/geolite2legacy +Source: %{name}-%{version}.tar.xz +Requires: python3-ipaddr +BuildArch: noarch + +%description +Script to convert the GeoLite2 CSV database to Legacy GeoIP +format. Note that GeoIP is deprecated by upstream and should be +replaced by GeoLite2. + +%prep +%autosetup +sed -i -e 's/env python3\?/python3/' *.py + +%build + +%install +mkdir -p %{buildroot}%{_datadir}/geolite2legacy %{buildroot}%{_bindir} +install -m 755 geolite2legacy.py geoname2fips.py %{buildroot}%{_datadir}/geolite2legacy +install -m 644 geoname2fips.csv pygeoip_const.py %{buildroot}%{_datadir}/geolite2legacy +ln -s %{_datadir}/geolite2legacy/geolite2legacy.py %{buildroot}%{_bindir}/geolite2legacy + +%files +%license LICENSE +%doc README.md +%{_bindir}/geolite2legacy +%{_datadir}/geolite2legacy + +%changelog