9c603c3
Create NetworkManager-config-server package
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
This configuration file, when placed into into
|
|
2
|
+
/etc/NetworkManager/conf.d changes NetworkManager's behavior to
|
|
3
|
+
what's expected on "traditional UNIX server" type deployments.
|
|
4
|
+
|
|
5
|
+
See "man NetworkManager.conf" for more information about these
|
|
6
|
+
and other keys.
|
|
7
|
+
|
|
8
|
+
# Do not edit this file; it will be overwritten on upgrades. If you
|
|
9
|
+
# want to override the values here, or set additional values, you can
|
|
10
|
+
do so by adding another file (eg, "99-local.conf") to this directory
|
|
11
|
+
and setting keys there.
|
|
12
|
+
|
|
13
|
+
[main]
|
|
14
|
+
Do not do automatic (DHCP/SLAAC) configuration on ethernet devices
|
|
15
|
+
with no other matching connections.
|
|
16
|
+
no-auto-default=*
|
|
17
|
+
|
|
18
|
+
Ignore the carrier (cable plugged in) state when attempting to
|
|
19
|
+
activate static-IP connections.
|
|
20
|
+
ignore-carrier=*
|
|
@@ -25,13 +25,14 @@ Name: NetworkManager
|
|
|
25
25
|
Summary: Network connection manager and user applications
|
|
26
26
|
Epoch: 1
|
|
27
27
|
Version: 0.9.9.0
|
|
28
|
-
Release:
|
|
28
|
+
Release: 8%{snapshot}%{?dist}
|
|
29
29
|
Group: System Environment/Base
|
|
30
30
|
License: GPLv2+
|
|
31
31
|
URL: http://www.gnome.org/projects/NetworkManager/
|
|
32
32
|
|
|
33
33
|
Source: %{name}-%{realversion}%{snapshot}.tar.bz2
|
|
34
34
|
Source1: NetworkManager.conf
|
|
35
|
+
Source2: 00-server.conf
|
|
35
36
|
Patch1: explain-dns1-dns2.patch
|
|
36
37
|
|
|
37
38
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
@@ -162,6 +163,20 @@ Requires: dbus-glib-devel >= %{dbus_glib_version}
|
|
|
162
163
|
This package contains the header and pkg-config files for development applications using
|
|
163
164
|
NetworkManager functionality from applications that use glib.
|
|
164
165
|
|
|
166
|
+
%package config-server
|
|
167
|
+
Summary: NetworkManager config file for "server-like" defaults
|
|
168
|
+
Group: System Environment/Base
|
|
169
|
+
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
|
170
|
+
|
|
171
|
+
%description config-server
|
|
172
|
+
This adds a NetworkManager configuration file to make it behave more
|
|
173
|
+
like the old "network" service. In particular, it stops NetworkManager
|
|
174
|
+
from automatically running DHCP on unconfigured ethernet devices, and
|
|
175
|
+
allows connections with static IP addresses to be brought up even on
|
|
176
|
+
ethernet devices with no carrier.
|
|
177
|
+
|
|
178
|
+
This package is intended to be installed by default for server
|
|
179
|
+
deployments.
|
|
165
180
|
|
|
166
181
|
%prep
|
|
167
182
|
%setup -q -n NetworkManager-%{realversion}
|
|
@@ -216,6 +231,9 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
216
231
|
|
|
217
232
|
%{__cp} %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/
|
|
218
233
|
|
|
234
|
+
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf.d
|
|
235
|
+
%{__cp} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/conf.d
|
|
236
|
+
|
|
219
237
|
# create a VPN directory
|
|
220
238
|
%{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/NetworkManager/VPN
|
|
221
239
|
|
|
@@ -374,7 +392,14 @@ exit 0
|
|
|
374
392
|
%dir %{_datadir}/gtk-doc/html/libnm-util
|
|
375
393
|
%{_datadir}/gtk-doc/html/libnm-util/*
|
|
376
394
|
|
|
395
|
+
%files config-server
|
|
396
|
+
%defattr(-,root,root,0755)
|
|
397
|
+
%config %{_sysconfdir}/%{name}/conf.d/00-server.conf
|
|
398
|
+
|
|
377
399
|
%changelog
|
|
400
|
+
* Thu Jul 25 2013 Dan Winship <danw@redhat.com> - 0.9.9.0-8.git20130724
|
|
401
|
+
- Create NetworkManager-config-server package
|
|
402
|
+
|
|
378
403
|
* Wed Jul 24 2013 Dan Williams <dcbw@redhat.com> - 0.9.9.0-7.git20130724
|
|
379
404
|
- Update to git snapshot
|
|
380
405
|
|