summaryrefslogtreecommitdiff
path: root/contrib/fedora
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-11-03 17:01:00 +0100
committerLubomir Rintel <lkundrak@v3.sk>2016-11-03 17:56:13 +0100
commitb8785c8c3c1fdbf20e110fd164c9d32c605d3448 (patch)
treeac2d1064dc7280c329954eef87101d94d085232e /contrib/fedora
parent7491e51ac0266a65374a63262a87011912a42be8 (diff)
downloadNetworkManager-b8785c8c3c1fdbf20e110fd164c9d32c605d3448.tar.gz
Revert "contrib/rpm: add NetworkManager-config-dhcp-dhclient package"
This probably needs more discussion, maybe there's a better solution than a separate RPM package for a single line of configuration. Related: https://pagure.io/fedora-comps/pull-request/62 This reverts commit 209b5a57fd03b6e1d1814a3020017f4404279264.
Diffstat (limited to 'contrib/fedora')
-rw-r--r--contrib/fedora/rpm/05-dhcp-dhclient.conf11
-rw-r--r--contrib/fedora/rpm/NetworkManager.spec22
-rwxr-xr-xcontrib/fedora/rpm/build.sh2
3 files changed, 1 insertions, 34 deletions
diff --git a/contrib/fedora/rpm/05-dhcp-dhclient.conf b/contrib/fedora/rpm/05-dhcp-dhclient.conf
deleted file mode 100644
index 7f15de6f9c..0000000000
--- a/contrib/fedora/rpm/05-dhcp-dhclient.conf
+++ /dev/null
@@ -1,11 +0,0 @@
-# Provided by NetworkManager-config-dhcp-dhclient package
-# to enable dhclient dhcp plugin by default.
-#
-# Do not modify this file, instead
-# - uninstall the package NetworkManager-config-dhcp-dhclient
-# - shadow the file with /etc/NetworkManager/conf.d/05-dhcp-dhclient.conf
-# - overwrite main.dhcp setting in a configuration file in /etc
-#
-# See man NetworkManager.conf(5)
-[main]
-dhcp=dhclient
diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec
index 33015b84d5..e9b0e7a24a 100644
--- a/contrib/fedora/rpm/NetworkManager.spec
+++ b/contrib/fedora/rpm/NetworkManager.spec
@@ -25,7 +25,6 @@
%global epoch_version 1
%global obsoletes_device_plugins 1:0.9.9.95-1
-%global obsoletes_dhclient 1:1.5.0
%global systemd_dir %{_prefix}/lib/systemd/system
%global nmlibdir %{_prefix}/lib/%{name}
@@ -107,7 +106,6 @@ Source: __SOURCE1__
Source1: NetworkManager.conf
Source2: 00-server.conf
Source3: 20-connectivity-fedora.conf
-Source4: 05-dhcp-dhclient.conf
#Patch1: 0001-some.patch
@@ -117,6 +115,7 @@ Requires(postun): systemd
Requires: dbus >= %{dbus_version}
Requires: glib2 >= %{glib2_version}
+Requires: dhclient >= 12:4.1.0
Requires: libnl3 >= %{libnl3_version}
Requires: %{name}-libnm%{?_isa} = %{epoch}:%{version}-%{release}
Requires: ppp = %{ppp_version}
@@ -329,18 +328,6 @@ ethernet devices with no carrier.
This package is intended to be installed by default for server
deployments.
-%package config-dhcp-dhclient
-Summary: NetworkManager config file to use dhclient as DHCP plugin
-Group: System Environment/Base
-BuildArch: noarch
-Requires: dhclient >= 12:4.1.0
-Provides: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
-Obsoletes: %{name} < %{obsoletes_dhclient}
-
-%description config-dhcp-dhclient
-This adds a NetworkManager configuration file to configure dhclient
-as DHCP plugin.
-
%package dispatcher-routing-rules
Summary: NetworkManager dispatcher file for advanced routing rules
Group: System Environment/Base
@@ -434,7 +421,6 @@ intltoolize --automake --copy --force
--with-setting-plugins-default='ifcfg-rh,ibft' \
--with-config-dns-rc-manager-default=symlink \
--with-config-logging-backend-default=journal \
- --with-config-dhcp-default=internal \
--enable-json-validation
make %{?_smp_mflags}
@@ -455,7 +441,6 @@ mkdir -p %{buildroot}%{nmlibdir}/conf.d
mkdir -p %{buildroot}%{nmlibdir}/VPN
cp %{SOURCE2} %{buildroot}%{nmlibdir}/conf.d/
cp %{SOURCE3} %{buildroot}%{nmlibdir}/conf.d/
-cp %{SOURCE4} %{buildroot}%{nmlibdir}/conf.d/
# create a VPN directory
mkdir -p %{buildroot}%{_sysconfdir}/NetworkManager/VPN
@@ -674,11 +659,6 @@ fi
%dir %{nmlibdir}/conf.d
%{nmlibdir}/conf.d/00-server.conf
-%files config-dhcp-dhclient
-%dir %{nmlibdir}
-%dir %{nmlibdir}/conf.d
-%{nmlibdir}/conf.d/05-dhcp-dhclient.conf
-
%files dispatcher-routing-rules
%{_sysconfdir}/%{name}/dispatcher.d/10-ifcfg-rh-routes.sh
%{_sysconfdir}/%{name}/dispatcher.d/no-wait.d/10-ifcfg-rh-routes.sh
diff --git a/contrib/fedora/rpm/build.sh b/contrib/fedora/rpm/build.sh
index 38288edc00..35336bad15 100755
--- a/contrib/fedora/rpm/build.sh
+++ b/contrib/fedora/rpm/build.sh
@@ -119,7 +119,6 @@ fi
SOURCE_NETWORKMANAGER_CONF="$(abs_path "$SOURCE_NETWORKMANAGER_CONF" "$SCRIPTDIR/NetworkManager.conf")" || die "invalid \$SOURCE_NETWORKMANAGER_CONF argument"
SOURCE_CONFIG_SERVER="$(abs_path "$SOURCE_CONFIG_SERVER" "$SCRIPTDIR/00-server.conf")" || die "invalid \$SOURCE_CONFIG_SERVER argument"
SOURCE_CONFIG_CONNECTIVITY_FEDORA="$(abs_path "$SOURCE_CONFIG_CONNECTIVITY_FEDORA" "$SCRIPTDIR/20-connectivity-fedora.conf")" || die "invalid \$SOURCE_CONFIG_CONNECTIVITY_FEDORA argument"
-SOURCE_CONFIG_DHCP_DHCLIENT="$(abs_path "$SOURCE_CONFIG_DHCP_DHCLIENT" "$SCRIPTDIR/05-dhcp-dhclient.conf")" || die "invalid \$SOURCE_CONFIG_DHCP_DHCLIENT argument"
TEMP="$(mktemp -d "$SCRIPTDIR/NetworkManager.$DATE.XXXXXX")"
TEMPBASE="$(basename "$TEMP")"
@@ -157,7 +156,6 @@ cp "$SOURCE" "$TEMP/SOURCES/" || die "Could not copy source $SOURCE to $TEMP/SOU
cp "$SOURCE_NETWORKMANAGER_CONF" "$TEMP/SOURCES/NetworkManager.conf" || die "Could not copy source $SOURCE_NETWORKMANAGER_CONF to $TEMP/SOURCES"
cp "$SOURCE_CONFIG_SERVER" "$TEMP/SOURCES/00-server.conf" || die "Could not copy source $SOURCE_CONFIG_SERVER to $TEMP/SOURCES"
cp "$SOURCE_CONFIG_CONNECTIVITY_FEDORA" "$TEMP/SOURCES/20-connectivity-fedora.conf" || die "Could not copy source $SOURCE_CONFIG_CONNECTIVITY_FEDORA to $TEMP/SOURCES"
-cp "$SOURCE_CONFIG_DHCP_DHCLIENT" "$TEMP/SOURCES/05-dhcp-dhclient.conf" || die "Could not copy source $SOURCE_CONFIG_DHCP_DHCLIENT to $TEMP/SOURCES"
write_changelog