diff --git a/srcpkgs/lm_sensors/files/fancontrol/run b/srcpkgs/lm_sensors/files/fancontrol/run new file mode 100644 index 00000000000..f04fce8d648 --- /dev/null +++ b/srcpkgs/lm_sensors/files/fancontrol/run @@ -0,0 +1,4 @@ +#!/bin/sh +[ -r conf ] && . conf +[ ! -r ${CONF_FILE:-/etc/fancontrol} ] && exit 1 +exec /usr/bin/fancontrol ${CONF_FILE:-/etc/fancontrol} diff --git a/srcpkgs/lm_sensors/template b/srcpkgs/lm_sensors/template index a1223b2e7e6..2e021cd1c4f 100644 --- a/srcpkgs/lm_sensors/template +++ b/srcpkgs/lm_sensors/template @@ -1,13 +1,12 @@ # Template file for 'lm_sensors' pkgname=lm_sensors version=3.5.0 -revision=1 +revision=2 wrksrc="${pkgname/_/-}-${version//./-}" build_style=gnu-makefile make_build_args="MACHINE=${XBPS_TARGET_MACHINE#-musl}" -make_install_args="$make_build_args - PREFIX=/usr SBINDIR=/usr/bin MANDIR=/usr/share/man" -conf_files="/etc/sensors3.conf" +make_install_args="${make_build_args} PREFIX=/usr SBINDIR=/usr/bin + MANDIR=/usr/share/man" hostmakedepends="flex perl" depends="perl" short_desc="Utilities to read temperature/voltage/fan sensors" @@ -17,12 +16,18 @@ homepage="https://github.com/lm-sensors/lm-sensors" distfiles="https://github.com/lm-sensors/lm-sensors/archive/V${version//./-}.tar.gz" checksum=f671c1d63a4cd8581b3a4a775fd7864a740b15ad046fe92038bcff5c5134d7e0 +conf_files="/etc/sensors3.conf" + pre_build() { sed -i prog/*/Module.mk \ -e "/^MODULE_DIR :=/i LDFLAGS := ${LDFLAGS}" \ -e 's;$(CC) $(EXLDFLAGS);$(CC) $(LDFLAGS) $(EXLDFLAGS);' } +post_install() { + vsv fancontrol +} + libsensors_package() { short_desc="Library to read temperature/voltage/fan sensors" pkg_install() {