Change db-path, create it during install
Fixes the issue that systemd could not start boltd because the db path was missing.
This commit is contained in:
parent
83f54ff8a5
commit
7a08f1e074
11
bolt.spec
11
bolt.spec
@ -1,6 +1,6 @@
|
|||||||
Name: bolt
|
Name: bolt
|
||||||
Version: 0.1
|
Version: 0.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Thunderbolt device manager
|
Summary: Thunderbolt device manager
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://github.com/gicmo/bolt
|
URL: https://github.com/gicmo/bolt
|
||||||
@ -35,7 +35,7 @@ mentioned tasks.
|
|||||||
cp %{SOURCE1} ./
|
cp %{SOURCE1} ./
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%meson
|
%meson -Ddb-path=%{_localstatedir}/lib/boltd
|
||||||
%meson_build
|
%meson_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -43,6 +43,8 @@ cp %{SOURCE1} ./
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
|
install -m0755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/boltd
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post %{name}.service
|
%systemd_post %{name}.service
|
||||||
@ -66,7 +68,12 @@ cp %{SOURCE1} ./
|
|||||||
%{_datadir}/polkit-1/rules.d/org.freedesktop.bolt.rules
|
%{_datadir}/polkit-1/rules.d/org.freedesktop.bolt.rules
|
||||||
%{_datadir}/dbus-1/system-services/org.freedesktop.bolt.service
|
%{_datadir}/dbus-1/system-services/org.freedesktop.bolt.service
|
||||||
%{_mandir}/man1/boltctl.1*
|
%{_mandir}/man1/boltctl.1*
|
||||||
|
%dir %{_localstatedir}/lib/boltd
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Dec 17 2017 Christian Kellner <ckellner@redhat.com> - 0.1-2
|
||||||
|
- Set database path to /var/lib/boltd, create it during
|
||||||
|
installation, which is needed for the service file to work.
|
||||||
|
|
||||||
* Thu Dec 14 2017 Christian Kellner <ckellner@redhat.com> - 0.1-1
|
* Thu Dec 14 2017 Christian Kellner <ckellner@redhat.com> - 0.1-1
|
||||||
- Initial upstream release
|
- Initial upstream release
|
||||||
|
Loading…
Reference in New Issue
Block a user