From 942be0e6216d49946fd57db7e253c442964e2d3d Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Feb 05 2019 07:30:37 +0000 Subject: new release 2.0.0 subpackage ipv6calcweb: remove dependency Perl(Proc::ProcessTable) add dependency libmaxminddb-devel --- diff --git a/.gitignore b/.gitignore index 8faf9e0..b85c62d 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ ipv6calc-0.73.0.tar.gz /ipv6calc-1.0.0.tar.gz /ipv6calc-1.0.0-8522fb6b.patch /ipv6calc-1.1.0.tar.gz +/ipv6calc-2.0.0.tar.gz diff --git a/ipv6calc.spec b/ipv6calc.spec index 536bb7c..fc2c673 100644 --- a/ipv6calc.spec +++ b/ipv6calc.spec @@ -15,15 +15,14 @@ Summary: IPv6 address format change and calculation utility Name: ipv6calc -Version: 1.1.0 -Release: 30%{?gittag}%{?dist} +Version: 2.0.0 +Release: 31%{?gittag}%{?dist} URL: http://www.deepspace6.net/projects/%{name}.html License: GPLv2 %if 0%{?gitcommit:1} Source: https://github.com/pbiering/%{name}/archive/%{gitcommit}/%{name}-%{gitcommit}.tar.gz %else Source: ftp://ftp.bieringer.de/pub/linux/IPv6/ipv6calc/%{name}-%{version}.tar.gz -Patch1: ipv6calc-1.1.0-57d4b44f-9573d560.patch %endif BuildRequires: gcc BuildRequires: openssl-devel @@ -58,6 +57,10 @@ Conflicts: ipv6calc-libs %define enable_dbip 1 %endif +%if "%{?_without_mmdb:0}%{?!_without_mmdb:1}" == "1" +%define enable_mmdb 1 +%endif + %if "%{?_without_external:0}%{?!_without_external:1}" == "1" %define enable_external 1 %endif @@ -82,6 +85,10 @@ BuildRequires: db4-devel BuildRequires: libdb-devel %endif +%if %{enable_mmdb} +BuildRequires: libmaxminddb-devel +%endif + # RPM license macro detector %define rpm_license_extra %(echo "%{_defaultlicensedir}" | grep -q defaultlicensedir && echo 0 || echo 1) @@ -114,10 +121,18 @@ Support for following databases default directory for downloaded db files: %{geoip_db} (requires also external library on system) + - GeoIP v2 %{?enable_mmdb:ENABLED}%{?!enable_mmdb:DISABLED} + default directory for downloaded db files: %{geoip_db} + (requires also external library on system) + - db-ip.com %{?enable_dbip:ENABLED}%{?!enable_dbip:DISABLED} (once generated database files are found on system) default directory for generated db files: %{dbip_db} + - db-ip.com v2 %{?enable_mmdb:ENABLED}%{?!enable_mmdb:DISABLED} + (once generated database files are found on system) + default directory for generated db files: %{dbip_db} + - External %{?enable_external:ENABLED}%{?!enable_external:DISABLED} default directory for generated db files: %{external_db} @@ -127,6 +142,7 @@ Available rpmbuild rebuild options: --without ip2location --without geoip --without dbip + --without mmdb (which disables GeoIP v2 and db-ip.com v2) --without external --without shared --without mod_ipv6calc @@ -135,8 +151,8 @@ Available rpmbuild rebuild options: %package ipv6calcweb Summary: IP address information web utility Requires: ipv6calc httpd -Requires: perl(URI) perl(Digest::SHA1) perl(Digest::MD5) perl(HTML::Entities) perl(Proc::ProcessTable) -BuildRequires: perl(URI) perl(Digest::SHA1) perl(Digest::MD5) perl(HTML::Entities) perl(Proc::ProcessTable) +Requires: perl(URI) perl(Digest::SHA1) perl(Digest::MD5) perl(HTML::Entities) +BuildRequires: perl(URI) perl(Digest::SHA1) perl(Digest::MD5) perl(HTML::Entities) %description ipv6calcweb ipv6calcweb contains a CGI program and a configuration file for @@ -177,7 +193,6 @@ By default the module is disabled. %setup -q -n %{name}-%{gitcommit} %else %setup -q -%patch1 -p1 %endif %configure \ @@ -189,6 +204,7 @@ By default the module is disabled. --with-geoip-db=%{geoip_db} \ %{?enable_dbip:--enable-dbip} \ --with-dbip-db=%{dbip_db} \ + %{?enable_mmdb:--enable-mmdb --with-mmdb-dynamic} \ %{?enable_external:--enable-external} \ --with-external-db=%{external_db} \ %{?enable_shared:--enable-shared} \ @@ -232,14 +248,24 @@ done # db directory install -d %{buildroot}%{external_db} +# selinux +install -d %{buildroot}%{_datadir}/%{name}/selinux + # ipv6calcweb install -d %{buildroot}%{_sysconfdir}/httpd/conf.d install -d %{buildroot}%{_localstatedir}/www/cgi-bin -install ipv6calcweb/ipv6calcweb.conf %{buildroot}%{_sysconfdir}/httpd/conf.d -install -m 755 ipv6calcweb/ipv6calcweb.cgi %{buildroot}%{_localstatedir}/www/cgi-bin +install ipv6calcweb/ipv6calcweb.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/ +install -m 755 ipv6calcweb/ipv6calcweb.cgi %{buildroot}%{_localstatedir}/www/cgi-bin/ +install -m 644 ipv6calcweb/ipv6calcweb-databases-in-var.te %{buildroot}%{_datadir}/%{name}/selinux/ + +# mod_ipv6calc +install -d %{buildroot}%{_datadir}/%{name}/examples/mod_ipv6calc +install -m 755 mod_ipv6calc/ipv6calc.cgi %{buildroot}%{_datadir}/%{name}/examples/mod_ipv6calc +%clean +rm -rf %{buildroot} %check @@ -267,6 +293,9 @@ install -m 755 ipv6calcweb/ipv6calcweb.cgi %{buildroot}%{_localstatedir}/www/cg # tools %attr(755,-,-) %{_datadir}/%{name}/tools/* +# selinux +%attr(644,-,-) %{_datadir}/%{name}/selinux/* + # shared library %{?enable_shared:%attr(755,-,-) %{_libdir}/libipv6calc*} @@ -276,7 +305,9 @@ install -m 755 ipv6calcweb/ipv6calcweb.cgi %{buildroot}%{_localstatedir}/www/cg # examples %attr(755,-,-) %{_datadir}/%{name}/examples/*/*.pl %attr(755,-,-) %{_datadir}/%{name}/examples/*/*.sh -%{_datadir}/%{name}/examples/* +%{_datadir}/%{name}/examples/ipv6loganon/ +%{_datadir}/%{name}/examples/ipv6logconv/ +%{_datadir}/%{name}/examples/ipv6logstats/ %files ipv6calcweb @@ -306,6 +337,8 @@ install -m 755 ipv6calcweb/ipv6calcweb.cgi %{buildroot}%{_localstatedir}/www/cg %config(noreplace) %{_httpd_confdir}/ipv6calc.conf %attr(755,-,-) %{_httpd_moddir}/mod_ipv6calc.so +%attr(755,-,-) %{_datadir}/%{name}/examples/mod_ipv6calc/ipv6calc.cgi + %post /usr/sbin/ldconfig @@ -316,6 +349,11 @@ install -m 755 ipv6calcweb/ipv6calcweb.cgi %{buildroot}%{_localstatedir}/www/cg %changelog +* Tue Feb 05 2019 Peter Bieringer - 2.2.0-31 +- new release 2.0.0 +- subpackage ipv6calcweb: remove dependency Perl(Proc::ProcessTable) +- add dependency libmaxminddb-devel + * Fri Feb 01 2019 Fedora Release Engineering - 1.1.0-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index 70bc518..d50a369 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ipv6calc-1.1.0.tar.gz) = 8fe2a4717f2be4ceae051b635d4329b8c438d9741e9a99a3c12cc1c0d0daef89325cc9beb7ca65da3c671586ce2a596191962118005aeaaf7cfe33a1d4549101 +SHA512 (ipv6calc-2.0.0.tar.gz) = 6763c27399529b1cc22bdffd84e1fb412d8fe7e20fa7c120fa9a231c0d24e2dde5c285856166ed71e498c93574baaf9d87c4ffb50b2a8511d71b7af4f35c3f25