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
|
||||
Version: 0.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Thunderbolt device manager
|
||||
License: LGPLv2+
|
||||
URL: https://github.com/gicmo/bolt
|
||||
@ -35,7 +35,7 @@ mentioned tasks.
|
||||
cp %{SOURCE1} ./
|
||||
|
||||
%build
|
||||
%meson
|
||||
%meson -Ddb-path=%{_localstatedir}/lib/boltd
|
||||
%meson_build
|
||||
|
||||
%check
|
||||
@ -43,6 +43,8 @@ cp %{SOURCE1} ./
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
install -m0755 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/boltd
|
||||
|
||||
|
||||
%post
|
||||
%systemd_post %{name}.service
|
||||
@ -66,7 +68,12 @@ cp %{SOURCE1} ./
|
||||
%{_datadir}/polkit-1/rules.d/org.freedesktop.bolt.rules
|
||||
%{_datadir}/dbus-1/system-services/org.freedesktop.bolt.service
|
||||
%{_mandir}/man1/boltctl.1*
|
||||
%dir %{_localstatedir}/lib/boltd
|
||||
|
||||
%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
|
||||
- Initial upstream release
|
||||
|
Loading…
Reference in New Issue
Block a user