From 6ce328d8d3583ae77d0e5b42c9344c903a6be813a88d497fc8e62d8a8cf41d8a Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 1 Nov 2012 17:17:08 +0000 Subject: [PATCH] Accepting request 139902 from home:elvigia:branches:Base:System - lm_sensors systemd service file missing [bnc#768354] OBS-URL: https://build.opensuse.org/request/show/139902 OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=52 --- sensors.changes | 5 +++++ sensors.spec | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/sensors.changes b/sensors.changes index 5a31998..9a52fa7 100644 --- a/sensors.changes +++ b/sensors.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 1 02:22:53 UTC 2012 - crrodriguez@opensuse.org + +- lm_sensors systemd service file missing [bnc#768354] + ------------------------------------------------------------------- Thu Sep 13 23:21:43 UTC 2012 - jengelh@inai.de diff --git a/sensors.spec b/sensors.spec index a5c2ad1..6df22a8 100644 --- a/sensors.spec +++ b/sensors.spec @@ -37,6 +37,8 @@ Patch4: lm_sensors-3.0.3-hint-at-kernel-extra-package.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build ExcludeArch: s390 s390x +BuildRequires: systemd +%{?systemd_requires} %description This package includes programs that show data from some sensor chips. @@ -155,8 +157,12 @@ make %{?_smp_mflags} PROG_EXTRA:=sensord BUILD_STATIC_LIB:=0 PREFIX=%{_prefix} M mkdir -p $RPM_BUILD_ROOT/etc/init.d install -m 0755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/lm_sensors ln -sf /etc/init.d/lm_sensors $RPM_BUILD_ROOT/usr/sbin/rclm_sensors + install -D -m 0644 prog/init/lm_sensors.service %{buildroot}%{_unitdir}/lm_sensors.service +%pre +%service_add_pre lm_sensors.service %post +%service_add_post lm_sensors.service sh -c ' CONFIG=/etc/sysconfig/lm_sensors test -r "$CONFIG" || exit 0 @@ -181,9 +187,11 @@ if test -e /etc/modprobe.d/lm_sensors -a ! -e /etc/modprobe.d/lm_sensors.conf ; fi %preun +%service_del_preun lm_sensors.service %{stop_on_removal lm_sensors} %postun +%service_del_postun lm_sensors.service %{insserv_cleanup} %post -n libsensors4 -p /sbin/ldconfig @@ -192,6 +200,7 @@ fi %files %defattr(-,root,root) +%{_unitdir}/lm_sensors.service /etc/init.d/lm_sensors /usr/sbin/rclm_sensors /usr/bin/*