Skip to content

Instantly share code, notes, and snippets.

@truatpasteurdotfr
Created April 9, 2018 07:33
Show Gist options
  • Save truatpasteurdotfr/854358d089abdfa3e3eab0c25dc60cba to your computer and use it in GitHub Desktop.
Save truatpasteurdotfr/854358d089abdfa3e3eab0c25dc60cba to your computer and use it in GitHub Desktop.
grepcidr spec file
Name: grepcidr
Version: 2.0
Summary: grepcidr 2.0 - Filter IPv4 and IPv6 addresses matching CIDR patterns
Group: Applications/Productivity
URL: http://www.pc-tools.net/unix/grepcidr/
Source: http://www.pc-tools.net/files/unix/grepcidr-2.0.tar.gz
Vendor: Jem Berkes <[email protected]>
Packager: Tru Huynh <[email protected]>
License: GPLv3
Release: 1%{?dist}
BuildRequires: make gcc
%description
grepcidr can be used to filter a list of IP addresses against one or more
Classless Inter-Domain Routing (CIDR) specifications. As with grep, there are
options to invert matching and load patterns from a file. grepcidr is capable
of efficiently processing large numbers of IPs and networks.
%prep
%setup -n %{name}-%{version}
%build
make
%install
make install PREFIX=%{buildroot}/%{_prefix}
%files
%defattr(755,root,root,-)
%{_bindir}/grepcidr
%{_mandir}/man1/grepcidr.1.gz
%changelog
* Mon Apr 9 2018 Tru Huynh <[email protected]> -
- Initial rpm package for grepcidr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment