rpms/gypsy/devel 0001-Make-gypsy-run-as-a-system-service.patch, NONE, 1.1 gypsy.spec, 1.7, 1.8
Bastien Nocera
hadess at fedoraproject.org
Fri Jun 19 12:28:43 UTC 2009
Author: hadess
Update of /cvs/pkgs/rpms/gypsy/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29324
Modified Files:
gypsy.spec
Added Files:
0001-Make-gypsy-run-as-a-system-service.patch
Log Message:
* Fri Jun 19 2009 Bastien Nocera <bnocera at redhat.com> 0.6-9
- Gypsy is supposed to run as a system service, as root
0001-Make-gypsy-run-as-a-system-service.patch:
--- NEW FILE 0001-Make-gypsy-run-as-a-system-service.patch ---
>From bc78b39b170e6deda19327aa2ea1a08cdbc2a311 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess at hadess.net>
Date: Fri, 19 Jun 2009 12:59:24 +0100
Subject: [PATCH] Make gypsy run as a system service
Fix the location of the service file, and make sure gypsy gets
run as root.
---
configure.ac | 2 +-
org.freedesktop.Gypsy.service.in | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 7aa1b3b..a8169b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,7 +37,7 @@ DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d"
AC_SUBST(DBUS_SYS_DIR)
AC_DEFINE_UNQUOTED(DBUS_SYS_DIR, "$DBUS_SYS_DIR", [Where the system dir for D-Bus is])
-DBUS_SERVICES_DIR="${datadir}/dbus-1/services"
+DBUS_SERVICES_DIR="${datadir}/dbus-1/system-services"
AC_SUBST(DBUS_SERVICES_DIR)
AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where services dir for D-Bus is])
diff --git a/org.freedesktop.Gypsy.service.in b/org.freedesktop.Gypsy.service.in
index ae7b9ef..f93eed6 100644
--- a/org.freedesktop.Gypsy.service.in
+++ b/org.freedesktop.Gypsy.service.in
@@ -1,3 +1,4 @@
[D-BUS Service]
Name=org.freedesktop.Gypsy
Exec=@libexecdir@/gypsy-daemon
+User=root
--
1.6.2.2
Index: gypsy.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gypsy/devel/gypsy.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- gypsy.spec 4 Mar 2009 23:28:28 -0000 1.7
+++ gypsy.spec 19 Jun 2009 12:28:12 -0000 1.8
@@ -1,6 +1,6 @@
Name: gypsy
Version: 0.6
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: A GPS multiplexing daemon
Group: System Environment/Libraries
@@ -10,6 +10,8 @@ URL: http://gypsy.freedesktop
Source0: http://gypsy.freedesktop.org/gypsy-releases/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0: 0001-Make-gypsy-run-as-a-system-service.patch
+
BuildRequires: bluez-libs-devel
BuildRequires: dbus-devel
BuildRequires: dbus-glib-devel
@@ -17,6 +19,9 @@ BuildRequires: glib2-devel
BuildRequires: gtk-doc
BuildRequires: libxslt
+# For patch0
+BuildRequires: automake autoconf libtool
+
Requires: dbus
%description
@@ -46,6 +51,10 @@ This package contains developer document
%prep
%setup -q
+%patch0 -p1 -b .dbus
+libtoolize -f
+autoreconf
+
%build
%configure --disable-static
make %{?_smp_mflags}
@@ -66,7 +75,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-)
%doc AUTHORS COPYING COPYING.lib LICENSE
%{_sysconfdir}/dbus-1/system.d/Gypsy.conf
-%{_datadir}/dbus-1/services/org.freedesktop.Gypsy.service
+%{_datadir}/dbus-1/system-services/org.freedesktop.Gypsy.service
%{_libexecdir}/gypsy-daemon
%{_libdir}/libgypsy.so.0
%{_libdir}/libgypsy.so.0.0.0
@@ -82,6 +91,9 @@ rm -rf $RPM_BUILD_ROOT
%doc %{_datadir}/gtk-doc/html/gypsy
%changelog
+* Fri Jun 19 2009 Bastien Nocera <bnocera at redhat.com> 0.6-9
+- Gypsy is supposed to run as a system service, as root
+
* Wed Mar 4 2009 Peter Robinson <pbrobinson at gmail.com> 0.6-8
- Move docs to noarch, some spec file updates
More information about the fedora-extras-commits
mailing list