%bcond_with pfring %bcond_without hiredis %bcond_with mongodb %bcond_without debug Name: zmap Version: 2.1.1 Release: 3 Summary: Network scanner for Internet-wide network studies License: ASL 2.0 URL: https://zmap.io Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz Patch0: 0001-Fix-broken-conf-installation.patch BuildRequires: byacc BuildRequires: cmake BuildRequires: flex BuildRequires: gengetopt BuildRequires: gmp-devel %if %{with hiredis} BuildRequires: hiredis-devel %endif BuildRequires: json-c-devel BuildRequires: libpcap-devel %if %{with mongodb} BuildRequires: pkgconfig(libmongoc-1.0) %endif %description ZMap is an open-source network scanner that enables researchers to easily perform Internet-wide network studies. With a single machine and a well provisioned network uplink, ZMap is capable of performing a complete scan of the IPv4 address space in under 45 minutes, approaching the theoretical limit of gigabit Ethernet. ZMap can be used to study protocol adoption over time, monitor service availability, and help us better understand large systems distributed across the Internet. ========== WARNING ========== While ZMap is a powerful tool for researchers, please keep in mind that by running ZMap, you are potentially scanning the ENTIRE IPv4 address space and some users may not appreciate your scanning. We encourage ZMap users to respect requests to stop scanning and to exclude these networks from ongoing scanning. %prep %setup -q #%patch0 -p1 # Custom flags from upstream should be put in the front as preferred. sed -i 's|${CMAKE_C_FLAGS} ${GCCWARNINGS}|${GCCWARNINGS} ${CMAKE_C_FLAGS}|g;s|${CMAKE_EXE_LINKER_FLAGS} ${LDHARDENING}|${LDHARDENING} ${CMAKE_EXE_LINKER_FLAGS}|g' CMakeLists.txt %build %cmake -DWITH_JSON=ON \ %if %{with mongodb} -DWITH_MONGO=ON \ %endif %if %{with hiredis} -DWITH_REDIS=ON \ %endif -DWITH_PFRING=OFF %make_build chmod 644 -v examples/udp-probes/* find ./examples/ -type f -exec sed -i 's/\r$//' {} \+ %install %make_install %files %doc AUTHORS %license LICENSE %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/* %{_sbindir}/zmap %{_sbindir}/zblacklist %{_sbindir}/ztee %{_mandir}/man1/zmap.1* %{_mandir}/man1/zblacklist.1* %{_mandir}/man1/ztee.1* %changelog * Mon Dec 21 2015 Scott R. Shinn - 2.1.1-3 - Update to 2.1.1 * Tue Sep 29 2015 Peter Robinson 2.1.0-2 - rebuild (hiredis) * Thu Sep 03 2015 Christopher Meng - 2.1.0-1 - Update to 2.1.0 * Fri Jun 19 2015 Fedora Release Engineering - 1.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Feb 22 2015 Christopher Meng - 1.2.1-3 - Rebuilt for hiredis 0.12.1 * Mon Aug 18 2014 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jul 20 2014 Christopher Meng - 1.2.1-1 - Update to 1.2.1 * Sat Jun 07 2014 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Mar 12 2014 Christopher Meng - 1.2.0-1 - Update to 1.2.0 * Mon Jan 27 2014 Christopher Meng - 1.1.2-1 - Update to 1.1.2 * Thu Dec 19 2013 Christopher Meng - 1.1.1-1 - Update to 1.1.1 * Fri Nov 22 2013 Christopher Meng - 1.1.0-2 - Set 644 to examples. - Fix wrong line endings. * Tue Nov 19 2013 Christopher Meng - 1.1.0-1 - Update to 1.1.0 - Enable harden building. * Mon Aug 26 2013 Christopher Meng - 1.0.3-2 - Correct the license and summary. * Mon Aug 19 2013 Christopher Meng - 1.0.3-1 - Initial Package.