From c0eefb292f539e87d685db92caac9f0d311f7add Mon Sep 17 00:00:00 2001 From: Evan Gates Date: Thu, 13 Feb 2025 06:40:56 -0700 Subject: [PATCH] thermald: allow conf file Check for and source a conf file in thermald's run file to allow custom options. Get rid of an excess 2>&1 redirection since the script starts with exec 2>&1 already. --- srcpkgs/thermald/files/thermald/run | 3 ++- srcpkgs/thermald/template | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/thermald/files/thermald/run b/srcpkgs/thermald/files/thermald/run index 0df85a0b8af..2bd4db04b41 100644 --- a/srcpkgs/thermald/files/thermald/run +++ b/srcpkgs/thermald/files/thermald/run @@ -1,4 +1,5 @@ #!/bin/sh exec 2>&1 sv check dbus >/dev/null || exit 1 -exec thermald --no-daemon --dbus-enable 2>&1 +[ -r conf ] && . ./conf +exec thermald ${OPTS:=--no-daemon --dbus-enable} diff --git a/srcpkgs/thermald/template b/srcpkgs/thermald/template index 190d18c7e54..492225206af 100644 --- a/srcpkgs/thermald/template +++ b/srcpkgs/thermald/template @@ -1,7 +1,7 @@ # Template file for 'thermald' pkgname=thermald version=2.5.8 -revision=1 +revision=2 archs="i686* x86_64*" build_style=gnu-configure hostmakedepends="automake pkg-config glib-devel gtk-doc autoconf-archive"