Move the NetworkManager dispatcher script out of /etc

It's not user configuration and shouldn't ever have been there. Except for that
it used to be the only location NetworkManager looked into. With NetworkManager
1.20 that is no longer the case and the dispatcher scripts can be moved to
/usr/lib.
epel9
Lubomir Rintel 5 years ago
parent f96b2ccfcc
commit 38afc62ebd

@ -23,9 +23,15 @@
%global pending_upgrade_path %{_localstatedir}/lib/rpm-state/puppet %global pending_upgrade_path %{_localstatedir}/lib/rpm-state/puppet
%global pending_upgrade_file %{pending_upgrade_path}/upgrade_pending %global pending_upgrade_file %{pending_upgrade_path}/upgrade_pending
%if 0%{?fedora} > 30 || 0%{?rhel} > 8
%global nm_dispatcher_dir %{buildroot}%{_prefix}/lib/NetworkManager
%else
%global nm_dispatcher_dir %{buildroot}%{_sysconfdir}/NetworkManager
%endif
Name: puppet Name: puppet
Version: 5.5.10 Version: 5.5.10
Release: 5%{?dist} Release: 6%{?dist}
Summary: A network tool for managing many disparate systems Summary: A network tool for managing many disparate systems
License: ASL 2.0 License: ASL 2.0
URL: http://puppetlabs.com URL: http://puppetlabs.com
@ -189,10 +195,10 @@ rm %{buildroot}%{_sysconfdir}/puppet/hiera.yaml
# /etc/resolv.conf and such (https://bugzilla.redhat.com/532085). # /etc/resolv.conf and such (https://bugzilla.redhat.com/532085).
%if 0%{?_with_systemd} %if 0%{?_with_systemd}
install -Dpv -m0755 %{SOURCE3} \ install -Dpv -m0755 %{SOURCE3} \
%{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/98-%{name} %{buildroot}%{nm_dispatcher_dir}/dispatcher.d/98-%{name}
%else %else
install -Dpv -m0755 %{SOURCE2} \ install -Dpv -m0755 %{SOURCE2} \
%{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/98-%{name} %{buildroot}%{nm_dispatcher_dir}/dispatcher.d/98-%{name}
%endif %endif
# Install the ext/ directory to %%{_datadir}/%%{name} # Install the ext/ directory to %%{_datadir}/%%{name}
@ -235,9 +241,9 @@ mkdir -p %{buildroot}%{_sysconfdir}/%{name}/modules
%{_tmpfilesdir}/%{name}.conf %{_tmpfilesdir}/%{name}.conf
%endif %endif
%config(noreplace) %{_sysconfdir}/logrotate.d/puppet %config(noreplace) %{_sysconfdir}/logrotate.d/puppet
%dir %{_sysconfdir}/NetworkManager %dir %{nm_dispatcher_dir}
%dir %{_sysconfdir}/NetworkManager/dispatcher.d %dir %{nm_dispatcher_dir}/dispatcher.d
%{_sysconfdir}/NetworkManager/dispatcher.d/98-puppet %{nm_dispatcher_dir}/dispatcher.d/98-puppet
%files headless %files headless
%doc README.md examples %doc README.md examples
@ -383,6 +389,9 @@ fi
exit 0 exit 0
%changelog %changelog
* Thu Aug 22 2019 Lubomir Rintel <lkundrak@v3.sk> - 5.5.10-6
- Move the NetworkManager dispatcher script out of /etc
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.10-5 * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.10-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save