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:
parent
bbbdd383bf
commit
6ce328d8d3
@ -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
|
Thu Sep 13 23:21:43 UTC 2012 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -37,6 +37,8 @@ Patch4: lm_sensors-3.0.3-hint-at-kernel-extra-package.patch
|
|||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
ExcludeArch: s390 s390x
|
ExcludeArch: s390 s390x
|
||||||
|
BuildRequires: systemd
|
||||||
|
%{?systemd_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package includes programs that show data from some sensor chips.
|
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
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
||||||
install -m 0755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/lm_sensors
|
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
|
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
|
%post
|
||||||
|
%service_add_post lm_sensors.service
|
||||||
sh -c '
|
sh -c '
|
||||||
CONFIG=/etc/sysconfig/lm_sensors
|
CONFIG=/etc/sysconfig/lm_sensors
|
||||||
test -r "$CONFIG" || exit 0
|
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
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
%service_del_preun lm_sensors.service
|
||||||
%{stop_on_removal lm_sensors}
|
%{stop_on_removal lm_sensors}
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
%service_del_postun lm_sensors.service
|
||||||
%{insserv_cleanup}
|
%{insserv_cleanup}
|
||||||
|
|
||||||
%post -n libsensors4 -p /sbin/ldconfig
|
%post -n libsensors4 -p /sbin/ldconfig
|
||||||
@ -192,6 +200,7 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%{_unitdir}/lm_sensors.service
|
||||||
/etc/init.d/lm_sensors
|
/etc/init.d/lm_sensors
|
||||||
/usr/sbin/rclm_sensors
|
/usr/sbin/rclm_sensors
|
||||||
/usr/bin/*
|
/usr/bin/*
|
||||||
|
Loading…
Reference in New Issue
Block a user