File dhcpd-pools.spec of Package dhcpd-pools

# spec file for package dhcpd-pools
# Copyright (c) 2020 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

Name:           dhcpd-pools
Version:        3.1
Release:        0
Summary:        ISC DHCP pool analysis
License:        BSD-2-Clause
Group:          Productivity/Networking/Other
BuildRequires:  uthash-devel
Requires:       dhcp-server

This is dhcpd-pools ISC dhcp shared network and pool range usage
analysis. Purpose of command is to count usage ratio of each IP range
and shared network pool which ISC dhcpd is in control of users of the
command are most likely ISPs and other organizations that have large
IP space.
This tools can also be used as a Icinga/Nagios plugin.

%setup -q

%configure \
    --with-dhcpd-conf=%{_sysconfdir}/dhcpd.conf \
    --with-dhcpd-leases=%{_localstatedir}/lib/dhcp/db/dhcpd.leases \

mv %{buildroot}/%{_datadir}/dhcpd-pools/{nagios.conf,} %{buildroot}/%{_docdir}/%{name}/samples/

%make_build check

%license COPYING

openSUSE Build Service is sponsored by