diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-01-19 06:01:39 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-01-19 06:02:39 +0100 |
commit | 9001858ce0bae3908a65f4090c909fb99be6c5f7 (patch) | |
tree | 4bf9383b95bb5da3aff2934e5572a8c7f0911165 /app-laptop/thinkfan/files | |
parent | app-laptop/thinkfan version bump to 1.0 (diff) | |
download | gentoo-9001858ce0bae3908a65f4090c909fb99be6c5f7.tar.gz gentoo-9001858ce0bae3908a65f4090c909fb99be6c5f7.tar.bz2 gentoo-9001858ce0bae3908a65f4090c909fb99be6c5f7.zip |
app-laptop/thinkfan: bump to v1.0.1
- fix DOCDIR
- modernize OpenRC runscript
Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'app-laptop/thinkfan/files')
-rw-r--r-- | app-laptop/thinkfan/files/thinkfan-1.0.1-update-runscript.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app-laptop/thinkfan/files/thinkfan-1.0.1-update-runscript.patch b/app-laptop/thinkfan/files/thinkfan-1.0.1-update-runscript.patch new file mode 100644 index 000000000000..a0896af3d264 --- /dev/null +++ b/app-laptop/thinkfan/files/thinkfan-1.0.1-update-runscript.patch @@ -0,0 +1,39 @@ +https://github.com/vmatare/thinkfan/pull/61 + +--- a/rcscripts/openrc/thinkfan.cmake ++++ b/rcscripts/openrc/thinkfan.cmake +@@ -1,26 +1,19 @@ + #!/sbin/openrc-run + ++command="@CMAKE_INSTALL_PREFIX@/sbin/thinkfan" ++command_args="-q -s5 -c /etc/thinkfan.conf" ++pidfile="@PID_FILE@" ++ + extra_started_commands="reload" + ++required_files="/etc/thinkfan.conf" ++ + depend() { + after modules + } + +-start() { +- ebegin "Starting thinkfan" +- start-stop-daemon --start --exec @CMAKE_INSTALL_PREFIX@/sbin/thinkfan -- -q -s5 -c /etc/thinkfan.conf +- eend $? +-} +- +-stop() { +- ebegin "Stopping thinkfan" +- start-stop-daemon --stop --exec @CMAKE_INSTALL_PREFIX@/sbin/thinkfan +- eend $? +-} +- + reload() { +- PID=$(<@PID_FILE@) +- ebegin "Sending SIGHUP to thinkfan($PID)" +- kill -HUP $PID ++ ebegin "Reloading ${SVCNAME}" ++ start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? + } |