[packages/dnsmasq] install dbus configuration when building with dbus support
atler
atler at pld-linux.org
Mon Jan 11 18:56:11 CET 2021
commit 90c6cdaeaf90f7f22fb6b53a85653895dbca2668
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jan 11 18:55:10 2021 +0100
install dbus configuration when building with dbus support
dnsmasq.spec | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/dnsmasq.spec b/dnsmasq.spec
index e54bc17..8de13e4 100644
--- a/dnsmasq.spec
+++ b/dnsmasq.spec
@@ -83,7 +83,7 @@ małe wykorzystanie zasobów i łatwa konfiguracja.
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d} \
+install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/dbus-1/system.d,/etc/sysconfig,/etc/rc.d/init.d} \
$RPM_BUILD_ROOT{%{systemdunitdir},%{_mandir}/man8,%{_datadir}/dnsmasq}
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
@@ -104,6 +104,10 @@ install -p trust-anchors.conf $RPM_BUILD_ROOT%{_datadir}/dnsmasq
%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{no,nb}
+%if %{with dbus}
+cp -p dbus/dnsmasq.conf $RPM_BUILD_ROOT/etc/dbus-1/system.d/dnsmasq.conf
+%endif
+
%find_lang %{name}
%clean
@@ -145,6 +149,7 @@ fi
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc CHANGELOG FAQ *.html contrib/{dnslist,dynamic-dnsmasq}
+%{?with_dbus:%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/dnsmasq.conf}
%attr(754,root,root) /etc/rc.d/init.d/dnsmasq
%{systemdunitdir}/dnsmasq.service
%attr(755,root,root) %{_sbindir}/dnsmasq
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dnsmasq.git/commitdiff/3927311597d94f030a3b6133765538e5360ef996
More information about the pld-cvs-commit
mailing list