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
This commit is contained in:
Dr. Werner Fink 2012-11-01 17:17:08 +00:00 committed by Git OBS Bridge
parent bbbdd383bf
commit 6ce328d8d3
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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/*