2018-10-06 01:29:04 +03:00
|
|
|
%define major_version 4.4.1
|
2015-03-18 08:53:19 +00:00
|
|
|
%define patch_version %{nil}
|
2018-10-06 01:29:04 +03:00
|
|
|
%define var_dhcpd %{_var}/lib/dhcpd
|
|
|
|
%define var_dhclient %{_var}/lib/dhclient
|
2015-03-18 08:53:19 +00:00
|
|
|
|
2012-02-01 14:24:24 +04:00
|
|
|
Name: dhcp
|
|
|
|
Epoch: 3
|
2014-06-17 16:24:23 +04:00
|
|
|
Version: %{major_version}%{patch_version}
|
2018-10-10 00:08:09 +03:00
|
|
|
Release: 3
|
2014-06-17 16:24:23 +04:00
|
|
|
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client
|
2012-02-01 14:24:24 +04:00
|
|
|
License: Distributable
|
|
|
|
Group: System/Servers
|
2014-06-17 16:24:23 +04:00
|
|
|
URL: http://www.isc.org/software/dhcp
|
|
|
|
Source0: ftp://ftp.isc.org/isc/%{name}/%{major_version}%{patch_version}/%{name}-%{major_version}%{patch_version}.tar.gz
|
2018-10-08 12:35:21 +03:00
|
|
|
#Source1: ftp://ftp.isc.org/isc/%{name}/%{major_version}%{patch_version}/%{name}-%{major_version}%{patch_version}.tar.gz.sha512.asc
|
2012-02-01 14:24:24 +04:00
|
|
|
Source2: dhcpd.conf
|
|
|
|
Source4: dhcp-dynamic-dns-examples.tar.bz2
|
|
|
|
Source7: dhcpreport.pl
|
|
|
|
Source8: dhcpd-chroot.sh
|
|
|
|
# (eugeni) dhclient-exit-hooks script
|
|
|
|
Source9: dhclient-exit-hooks
|
2013-07-31 23:22:01 +04:00
|
|
|
Source10: draft-ietf-dhc-ldap-schema-01.txt
|
|
|
|
Source12: dhcpd.service
|
|
|
|
Source14: dhcpd6.service
|
|
|
|
Source16: dhcrelay.service
|
|
|
|
Source17: dhcpd.tmpfiles
|
|
|
|
Source18: dhclient.tmpfiles
|
|
|
|
Source19: dhcrelay.tmpfiles
|
2018-10-06 01:29:04 +03:00
|
|
|
# sysusers.d(5) (systemd-sysusers)
|
|
|
|
Source20: isc-dhcpd.conf
|
2018-10-08 14:52:23 +03:00
|
|
|
#Source21: isc-dhcp-client.conf
|
2018-10-08 13:52:05 +03:00
|
|
|
# Per-interface dhclient service from Arch Linux (modified)
|
2018-10-06 01:29:04 +03:00
|
|
|
Source22: dhclient@.service
|
2018-10-08 10:28:44 +03:00
|
|
|
Source100: ROSA-NEWS
|
2018-10-06 01:29:04 +03:00
|
|
|
|
2013-07-31 23:22:01 +04:00
|
|
|
Patch17: dhcp-4.2.0-add_timeout_when_NULL.patch
|
2014-06-17 16:24:23 +04:00
|
|
|
Patch18: dhcp-4.3.0-64_bit_lease_parse.patch
|
2018-10-08 10:28:44 +03:00
|
|
|
Patch19: Arch-0002-iproute2.patch
|
2018-10-08 13:52:05 +03:00
|
|
|
|
|
|
|
# Starting from dhcp 4.x built in Bind libs are used
|
|
|
|
#BuildRequires: bind-devel
|
2014-06-17 16:24:23 +04:00
|
|
|
BuildRequires: groff-base
|
|
|
|
BuildRequires: groff-for-man
|
|
|
|
BuildRequires: libtool
|
2012-02-01 14:24:24 +04:00
|
|
|
BuildRequires: openldap-devel
|
2014-06-17 16:24:23 +04:00
|
|
|
BuildRequires: systemd-units
|
2018-10-08 13:52:05 +03:00
|
|
|
# --with-ldap-gssapi
|
2018-10-08 14:02:00 +03:00
|
|
|
BuildRequires: krb5-devel
|
2018-10-08 13:52:05 +03:00
|
|
|
BuildRequires: pkgconfig(libcap-ng)
|
2014-06-17 16:24:23 +04:00
|
|
|
Requires(post,preun): rpm-helper
|
2018-10-10 00:09:37 +03:00
|
|
|
Requires: bash
|
2012-02-01 14:24:24 +04:00
|
|
|
|
|
|
|
%description
|
|
|
|
DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
|
|
|
|
individual devices on an IP network to get their own network configuration
|
|
|
|
information (IP address, subnetmask, broadcast address, etc.) from a DHCP
|
|
|
|
server. The overall purpose of DHCP is to make it easier to administer a
|
|
|
|
large network. The dhcp package includes the DHCP server and a DHCP relay
|
|
|
|
agent. You will also need to install the dhcp-client or dhcpcd package,
|
|
|
|
or pump or dhcpxd, which provides the DHCP client daemon, on client machines.
|
|
|
|
|
|
|
|
If you want the DHCP server and/or relay, you will also need to install the
|
|
|
|
dhcp-server and/or dhcp-relay packages.
|
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
%package common
|
2012-02-01 14:24:24 +04:00
|
|
|
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server
|
|
|
|
Group: System/Servers
|
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
%description common
|
2012-02-01 14:24:24 +04:00
|
|
|
DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
|
|
|
|
individual devices on an IP network to get their own network
|
|
|
|
configuration information (IP address, subnetmask, broadcast address,
|
|
|
|
etc.) from a DHCP server. The overall purpose of DHCP is to make it
|
|
|
|
easier to administer a large network. The dhcp package includes the
|
|
|
|
DHCP server and a DHCP relay agent.
|
|
|
|
|
|
|
|
You will also need to install the dhcp-client or dhcpcd package, or pump or
|
|
|
|
dhcpxd, which provides the DHCP client daemon, on client machines. If you
|
|
|
|
want the DHCP server and/or relay, you will also need to install the
|
|
|
|
dhcp-server and/or dhcp-relay packages.
|
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
%package doc
|
2012-02-01 14:24:24 +04:00
|
|
|
Summary: Documentation about the ISC DHCP server/client
|
|
|
|
Group: System/Servers
|
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
%description doc
|
2012-02-01 14:24:24 +04:00
|
|
|
This package contains RFC/API/protocol documentation about the ISC
|
|
|
|
DHCP server and client.
|
|
|
|
|
|
|
|
DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
|
|
|
|
individual devices on an IP network to get their own network
|
|
|
|
configuration information (IP address, subnetmask, broadcast address,
|
|
|
|
etc.) from a DHCP server. The overall purpose of DHCP is to make it
|
|
|
|
easier to administer a large network. The dhcp package includes the
|
|
|
|
DHCP server and a DHCP relay agent.
|
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
%package server
|
2012-02-01 14:24:24 +04:00
|
|
|
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server
|
|
|
|
Group: System/Servers
|
2014-06-17 16:24:23 +04:00
|
|
|
Requires: dhcp-common = %{EVRD}
|
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(post,preun): rpm-helper
|
2012-02-01 14:24:24 +04:00
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
%description server
|
2012-02-01 14:24:24 +04:00
|
|
|
DHCP server is the Internet Software Consortium (ISC) DHCP server for various
|
|
|
|
UNIX operating systems. It allows a UNIX mac hine to serve DHCP requests from
|
|
|
|
the network.
|
|
|
|
|
|
|
|
You should install dhcp-server if you want to set up a DHCP server on your
|
|
|
|
network. You will also need to install the base dhcp package.
|
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
%package client
|
2012-02-01 14:24:24 +04:00
|
|
|
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) client
|
|
|
|
Group: System/Servers
|
2014-06-17 16:24:23 +04:00
|
|
|
Requires: dhcp-common = %{EVRD}
|
|
|
|
Requires(post): systemd-units
|
2012-02-01 14:24:24 +04:00
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
%description client
|
2012-02-01 14:24:24 +04:00
|
|
|
DHCP client is the Internet Software Consortium (ISC) DHCP client for various
|
|
|
|
UNIX operating systems. It allows a UNIX mac hine to obtain it's networking
|
|
|
|
parameters from a DHCP server.
|
|
|
|
|
|
|
|
You should install dhcp-client if you want to use the ISC DHCP client instead
|
|
|
|
of the Red Hat DHCP client, pump, or dhcpcd, or dhcpxd. You will also need to
|
|
|
|
install the base dhcp package.
|
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
%package relay
|
2012-02-01 14:24:24 +04:00
|
|
|
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) relay
|
|
|
|
Group: System/Servers
|
2014-06-17 16:24:23 +04:00
|
|
|
Requires: dhcp-common = %{EVRD}
|
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(post,preun): rpm-helper
|
2012-02-01 14:24:24 +04:00
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
%description relay
|
2012-02-01 14:24:24 +04:00
|
|
|
DHCP relay is the Internet Software Consortium (ISC) relay agent for DHCP
|
|
|
|
packets. It is used on a subnet with DHCP clients to "relay" their requests
|
|
|
|
to a subnet that has a DHCP server on it. Because DHCP packets can be
|
|
|
|
broadcast, they will not be routed off of the local subnet. The DHCP relay
|
|
|
|
takes care of this for the client. You will need to set the environment
|
2014-06-17 16:24:23 +04:00
|
|
|
variable SERVERS and optionally OPTIONS in /etc/sysconfig/dhcrelay before
|
2012-02-01 14:24:24 +04:00
|
|
|
starting the server.
|
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
%package devel
|
2012-02-01 14:24:24 +04:00
|
|
|
Summary: Development headers and libraries for the dhcpctl API
|
|
|
|
Group: Development/Other
|
2014-06-17 16:24:23 +04:00
|
|
|
Requires: dhcp-common = %{EVRD}
|
2012-02-01 14:24:24 +04:00
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
%description devel
|
2012-02-01 14:24:24 +04:00
|
|
|
DHCP devel contains all of the libraries and headers for developing with the
|
|
|
|
Internet Software Consortium (ISC) dhcpctl API.
|
|
|
|
|
2015-03-18 08:53:19 +00:00
|
|
|
%package -n openldap-schemas-%{name}
|
|
|
|
summary: OpenLDAP schema files from %{name}-%{EVRD} source tree
|
|
|
|
Group: Databases
|
|
|
|
BuildArch: noarch
|
2015-03-23 11:41:16 +00:00
|
|
|
Requires(pre): openldap-config
|
2015-03-18 08:53:19 +00:00
|
|
|
|
2012-02-01 14:24:24 +04:00
|
|
|
%prep
|
2018-10-08 13:02:39 +03:00
|
|
|
%setup -q -n %{name}-%{major_version}%{patch_version}
|
|
|
|
#%setup
|
2018-10-08 12:35:21 +03:00
|
|
|
pushd bind ; tar -xvf bind.tar.gz >/dev/null ; popd
|
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
# Handle cases in add_timeout() where the function is called with a NULL
|
|
|
|
# value for the 'when' parameter
|
|
|
|
%patch17 -p1 -b .dracut
|
|
|
|
# Ensure 64-bit platforms parse lease file dates & times correctly
|
|
|
|
%patch18 -p1 -b .64-bit_lease_parse
|
2018-10-08 12:35:21 +03:00
|
|
|
# change ipconfig to modern ip (from Arch)
|
2018-10-08 10:28:44 +03:00
|
|
|
%patch19 -p1
|
2018-10-10 01:27:24 +03:00
|
|
|
# change hardcoded paths from /sbin/dhc* to /usr/sbin/dhc*, if there are any
|
|
|
|
sed -i 'includes/dhcpd.h' -e 's,\"/sbin/dhc,\"/usr/sbin/dhc,g' || true
|
2018-10-08 10:28:44 +03:00
|
|
|
|
2012-02-01 14:24:24 +04:00
|
|
|
%build
|
2013-11-07 14:47:27 +04:00
|
|
|
%serverbuild_hardened
|
|
|
|
%configure2_5x \
|
2018-10-06 01:29:04 +03:00
|
|
|
--with-srv-lease-file=%{var_dhcpd}/dhcpd.leases \
|
|
|
|
--with-srv6-lease-file=%{var_dhcpd}/dhcpd6.leases \
|
|
|
|
--with-cli-lease-file=%{var_dhclient}/dhclient.leases \
|
|
|
|
--with-cli6-lease-file=%{var_dhclient}/dhclient6.leases \
|
2014-06-17 16:24:23 +04:00
|
|
|
--with-srv-pid-file=/run/dhcpd/dhcpd.pid \
|
|
|
|
--with-srv6-pid-file=/run/dhcpd/dhcpd6.pid \
|
|
|
|
--with-cli-pid-file=/run/dhclient/dhclient.pid \
|
|
|
|
--with-cli6-pid-file=/run/dhclient/dhclient6.pid \
|
|
|
|
--with-relay-pid-file=/run/dhcrelay/dhcrelay.pid \
|
2018-10-08 12:35:21 +03:00
|
|
|
--enable-paranoia \
|
|
|
|
--enable-early-chroot \
|
2018-10-08 13:52:05 +03:00
|
|
|
--with-ldap \
|
|
|
|
--with-ldapcrypto \
|
|
|
|
--with-ldap-gssapi
|
2018-10-08 12:35:21 +03:00
|
|
|
make
|
2012-02-01 14:24:24 +04:00
|
|
|
|
|
|
|
%install
|
2014-06-17 16:24:23 +04:00
|
|
|
|
2012-02-01 14:24:24 +04:00
|
|
|
%makeinstall_std
|
|
|
|
|
2018-10-08 12:35:21 +03:00
|
|
|
install -m0644 %{SOURCE10} doc
|
2018-10-08 13:02:39 +03:00
|
|
|
install -m0644 %{SOURCE100} ROSA-NEWS
|
2018-10-08 14:55:28 +03:00
|
|
|
install -m 755 client/scripts/linux %{buildroot}%{_sbindir}/dhclient-script
|
2013-07-31 23:22:01 +04:00
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
install -d %{buildroot}%{_unitdir}
|
|
|
|
install -m 644 %{SOURCE12} %{buildroot}%{_unitdir}/dhcpd.service
|
|
|
|
install -m 644 %{SOURCE14} %{buildroot}%{_unitdir}/dhcpd6.service
|
|
|
|
install -m 644 %{SOURCE16} %{buildroot}%{_unitdir}/dhcrelay.service
|
2018-10-06 01:29:04 +03:00
|
|
|
install -m 644 %{SOURCE22} %{buildroot}%{_unitdir}/
|
2013-11-07 14:47:27 +04:00
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
install -D -p -m 644 %{SOURCE17} %{buildroot}%{_tmpfilesdir}/dhcpd.conf
|
|
|
|
install -D -p -m 644 %{SOURCE18} %{buildroot}%{_tmpfilesdir}/dhclient.conf
|
|
|
|
install -D -p -m 644 %{SOURCE19} %{buildroot}%{_tmpfilesdir}/dhcrelay.conf
|
2013-11-07 14:47:27 +04:00
|
|
|
|
2018-10-06 01:29:04 +03:00
|
|
|
install -d %{buildroot}%{_sysusersdir}
|
|
|
|
install -m 644 %{SOURCE20} %{buildroot}%{_sysusersdir}/
|
2018-10-08 14:52:23 +03:00
|
|
|
#install -m 644 %{SOURCE21} %{buildroot}%{_sysusersdir}/
|
2018-10-06 01:29:04 +03:00
|
|
|
|
2014-06-17 16:24:23 +04:00
|
|
|
install -m 755 %{SOURCE7} %{SOURCE8} %{buildroot}%{_sbindir}
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}
|
|
|
|
install -m 755 contrib/ldap/dhcpd-conf-to-ldap %{buildroot}%{_sbindir}
|
2012-02-01 14:24:24 +04:00
|
|
|
|
|
|
|
# install exit-hooks script to /etc/
|
2014-06-17 16:24:23 +04:00
|
|
|
install -m 755 %{SOURCE9} %{buildroot}%{_sysconfdir}
|
2012-02-01 14:24:24 +04:00
|
|
|
|
2013-07-31 23:22:01 +04:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/sysconfig
|
2012-02-01 14:24:24 +04:00
|
|
|
cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcpd <<EOF
|
|
|
|
# You can set here various option for dhcpd
|
|
|
|
|
|
|
|
# Which configuration file to use.
|
2014-06-17 16:24:23 +04:00
|
|
|
# CONFIGFILE="/etc/dhcpd.conf"
|
2012-02-01 14:24:24 +04:00
|
|
|
|
|
|
|
# Where to store the lease state information.
|
2018-10-06 01:29:04 +03:00
|
|
|
# LEASEFILE="%{var_dhcpd}/dhcpd.leases"
|
2012-02-01 14:24:24 +04:00
|
|
|
|
|
|
|
# Define INTERFACES to limit which network interfaces dhcpd listens on.
|
|
|
|
# The default null value causes dhcpd to listen on all interfaces.
|
2014-06-17 16:24:23 +04:00
|
|
|
#INTERFACES=""
|
2012-02-01 14:24:24 +04:00
|
|
|
|
|
|
|
# Define OPTIONS with any other options to pass to the dhcpd server.
|
|
|
|
# See dhcpd(8) for available options and syntax.
|
|
|
|
OPTIONS="-q"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcrelay <<EOF
|
|
|
|
# Define SERVERS with a list of one or more DHCP servers where
|
|
|
|
# DHCP packets are to be relayed to and from. This is mandatory.
|
|
|
|
#SERVERS="10.11.12.13 10.9.8.7"
|
|
|
|
SERVERS=""
|
|
|
|
|
|
|
|
# Define OPTIONS with any other options to pass to the dhcrelay server.
|
|
|
|
# See dhcrelay(8) for available options and syntax.
|
|
|
|
#OPTIONS="-q -i eth0 -i eth1"
|
|
|
|
OPTIONS="-q"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
find . -type d -exec chmod 0755 {} \;
|
|
|
|
find . -type f -exec chmod 0644 {} \;
|
|
|
|
|
|
|
|
rm -rf doc/ja_JP.eucJP
|
|
|
|
|
|
|
|
# remove empty files
|
2015-03-18 08:53:19 +00:00
|
|
|
|
2012-02-01 14:24:24 +04:00
|
|
|
find -size 0 |grep ldap | xargs rm -rf
|
|
|
|
|
|
|
|
# remove unwanted file
|
2014-06-17 16:24:23 +04:00
|
|
|
rm -f %{buildroot}%{_sysconfdir}/dhclient.conf.example
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/dhcpd.conf.example
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
|
|
|
|
2015-03-18 08:53:19 +00:00
|
|
|
# Prepare schema files to be included into OpenLDAP configuration
|
2015-03-19 13:43:45 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/openldap/{schema,slapd.d}
|
|
|
|
install -m 0644 contrib/ldap/dhcp.schema %{buildroot}%{_sysconfdir}/openldap/schema/
|
|
|
|
install -m 0644 contrib/ldap/README.ldap %{buildroot}%{_sysconfdir}/openldap/schema/README.%{name}
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/openldap/slapd.d/%{name}.conf <<EOF
|
|
|
|
# If interested in storing DHCP leases in your instance of OpenLDAP,
|
|
|
|
# load this file or copy uncommented lines below to your slapd.conf.
|
|
|
|
#
|
|
|
|
# For details see:
|
|
|
|
# %{_sysconfdir}/openldap/schema/README.%{name}
|
|
|
|
#
|
2015-04-01 10:23:28 +00:00
|
|
|
# You may also find 'dhcpd-conf-to-ldap' script from
|
|
|
|
# dhcp-server package useful.
|
2015-03-19 13:43:45 +00:00
|
|
|
|
|
|
|
include %{_sysconfdir}/openldap/schema/dhcp.schema
|
|
|
|
|
|
|
|
EOF
|
2015-03-18 08:53:19 +00:00
|
|
|
|
2012-02-01 14:24:24 +04:00
|
|
|
%post server
|
|
|
|
%_post_service dhcpd
|
2015-03-18 10:30:47 +00:00
|
|
|
%tmpfiles_create dhcpd.conf
|
2018-10-06 01:29:04 +03:00
|
|
|
%sysusers_create isc-dhcpd.conf
|
|
|
|
# migrate from root:root as it was before ROSA package v4.4.1
|
|
|
|
# create this directory if it does not esist and then chmod it to allow dhcpd to work properly
|
|
|
|
[ ! -d %{var_dhcpd}/ ] && mkdir -p %{var_dhcpd}/
|
|
|
|
[ -d %{var_dhcpd} ] && chown -R isc-dhcpd:isc-dhcpd %{var_dhcpd}/
|
2012-02-01 14:24:24 +04:00
|
|
|
|
|
|
|
%preun server
|
|
|
|
%_preun_service dhcpd
|
|
|
|
|
|
|
|
%post relay
|
|
|
|
%_post_service dhcrelay
|
2015-03-18 10:30:47 +00:00
|
|
|
%tmpfiles_create dhcrelay.conf
|
2012-02-01 14:24:24 +04:00
|
|
|
|
|
|
|
%preun relay
|
|
|
|
%_preun_service dhcrelay
|
|
|
|
|
|
|
|
%post client
|
2018-10-06 01:29:04 +03:00
|
|
|
# migrate from root:root as it was before ROSA package v4.4.1
|
|
|
|
# create this directory if it does not esist and then chmod it to allow dhcpd to work properly
|
|
|
|
[ ! -d %{var_dhclient}/ ] && mkdir -p %{var_dhclient}/
|
2015-03-18 10:30:47 +00:00
|
|
|
%tmpfiles_create dhclient.conf
|
2012-02-01 14:24:24 +04:00
|
|
|
|
2018-10-06 01:29:04 +03:00
|
|
|
%postun server
|
|
|
|
# Migrate from dhcpd user created by scripts
|
|
|
|
# to a dynamic user by systemd-sysusers
|
|
|
|
%_postun_userdel dhcpd 2>&1 >/dev/null || true
|
2012-02-01 14:24:24 +04:00
|
|
|
|
|
|
|
%files common
|
2018-10-06 01:29:04 +03:00
|
|
|
%doc README ROSA-NEWS contrib/ldap/README.ldap RELNOTES
|
2012-02-01 14:24:24 +04:00
|
|
|
%doc contrib/3.0b1-lease-convert
|
|
|
|
%{_mandir}/man5/dhcp-options.5*
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc doc/*
|
|
|
|
|
|
|
|
%files server
|
2014-06-17 16:24:23 +04:00
|
|
|
%doc server/dhcpd.conf.example tests/failover contrib/ldap/dhcp.schema
|
2013-07-31 23:22:01 +04:00
|
|
|
%{_unitdir}/dhcpd.service
|
|
|
|
%{_unitdir}/dhcpd6.service
|
2014-06-17 16:24:23 +04:00
|
|
|
%{_tmpfilesdir}/dhcpd.conf
|
2012-02-01 14:24:24 +04:00
|
|
|
%config(noreplace) %{_sysconfdir}/dhcpd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/dhclient-exit-hooks
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/dhcpd
|
|
|
|
%{_sbindir}/dhcpd
|
|
|
|
%{_sbindir}/dhcpreport.pl
|
|
|
|
%{_sbindir}/dhcpd-conf-to-ldap
|
|
|
|
%{_sbindir}/dhcpd-chroot.sh
|
|
|
|
%{_bindir}/omshell
|
|
|
|
%{_mandir}/man1/omshell.1*
|
2014-06-17 16:24:23 +04:00
|
|
|
%{_mandir}/man3/omapi.3*
|
2012-02-01 14:24:24 +04:00
|
|
|
%{_mandir}/man5/dhcpd.conf.5*
|
|
|
|
%{_mandir}/man5/dhcpd.leases.5*
|
|
|
|
%{_mandir}/man5/dhcp-eval.5*
|
|
|
|
%{_mandir}/man8/dhcpd.8*
|
2018-10-08 12:35:21 +03:00
|
|
|
%config %{_sysusersdir}/isc-dhcpd.conf
|
2012-02-01 14:24:24 +04:00
|
|
|
|
|
|
|
%files relay
|
2013-07-31 23:22:01 +04:00
|
|
|
%{_unitdir}/dhcrelay.service
|
2014-06-17 16:24:23 +04:00
|
|
|
%{_tmpfilesdir}/dhcrelay.conf
|
2012-02-01 14:24:24 +04:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/dhcrelay
|
|
|
|
%{_sbindir}/dhcrelay
|
|
|
|
%{_mandir}/man8/dhcrelay.8*
|
|
|
|
|
|
|
|
%files client
|
2014-06-17 16:24:23 +04:00
|
|
|
%doc client/dhclient.conf.example
|
2018-10-08 14:57:25 +03:00
|
|
|
%attr (0755,root,root) %{_sbindir}/dhclient-script
|
2014-06-17 16:24:23 +04:00
|
|
|
%{_tmpfilesdir}/dhclient.conf
|
2018-10-06 01:29:04 +03:00
|
|
|
%{_unitdir}/dhclient@.service
|
2018-10-08 14:57:25 +03:00
|
|
|
%{_sbindir}/dhclient
|
2012-02-01 14:24:24 +04:00
|
|
|
%{_mandir}/man5/dhclient.conf.5*
|
|
|
|
%{_mandir}/man5/dhclient.leases.5*
|
|
|
|
%{_mandir}/man8/dhclient.8*
|
|
|
|
%{_mandir}/man8/dhclient-script.8*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/*
|
2013-07-31 23:22:01 +04:00
|
|
|
%{_mandir}/man3/*
|
2014-06-17 16:24:23 +04:00
|
|
|
%exclude %{_mandir}/man3/omapi.3*
|
|
|
|
|
2015-03-18 08:53:19 +00:00
|
|
|
%files -n openldap-schemas-%{name}
|
2015-03-19 13:43:45 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/openldap/schema/*
|
2015-03-23 11:41:16 +00:00
|
|
|
%attr(750,ldap,ldap) %config(noreplace) %{_sysconfdir}/openldap/slapd.d/%{name}.conf
|