Run the service as 'geoclue' user
This commit is contained in:
parent
690ae44990
commit
8f2f1764d6
@ -1,6 +1,6 @@
|
|||||||
Name: geoclue2
|
Name: geoclue2
|
||||||
Version: 1.99.4
|
Version: 1.99.4
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Geolocation service
|
Summary: Geolocation service
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -13,6 +13,7 @@ BuildRequires: intltool
|
|||||||
BuildRequires: itstool
|
BuildRequires: itstool
|
||||||
BuildRequires: json-glib-devel
|
BuildRequires: json-glib-devel
|
||||||
BuildRequires: libsoup-devel
|
BuildRequires: libsoup-devel
|
||||||
|
Requires(pre): shadow-utils
|
||||||
Requires: dbus
|
Requires: dbus
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -45,7 +46,7 @@ for running on IP address geolocation servers.
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure --with-dbus-service-user=geoclue
|
||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags} V=1
|
||||||
|
|
||||||
|
|
||||||
@ -53,6 +54,14 @@ make %{?_smp_mflags} V=1
|
|||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
|
|
||||||
|
%pre
|
||||||
|
getent group geoclue >/dev/null || groupadd -r geoclue
|
||||||
|
getent passwd geoclue >/dev/null || \
|
||||||
|
useradd -r -g geoclue -d / -s /sbin/nologin \
|
||||||
|
-c "User for geoclue" geoclue
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYING NEWS
|
%doc COPYING NEWS
|
||||||
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.GeoClue2.conf
|
||||||
@ -70,6 +79,9 @@ make %{?_smp_mflags} V=1
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 19 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.4-2
|
||||||
|
- Run the service as 'geoclue' user
|
||||||
|
|
||||||
* Wed Sep 18 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.4-1
|
* Wed Sep 18 2013 Kalev Lember <kalevlember@gmail.com> - 1.99.4-1
|
||||||
- Update to 1.99.4
|
- Update to 1.99.4
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user