lm_sensors: add fancontrol service

closes #7897
This commit is contained in:
maxice8 2019-01-28 23:24:45 -02:00 committed by maxice8
parent f5ec099487
commit ac5ab51d73
2 changed files with 13 additions and 4 deletions

View File

@ -0,0 +1,4 @@
#!/bin/sh
[ -r conf ] && . conf
[ ! -r ${CONF_FILE:-/etc/fancontrol} ] && exit 1
exec /usr/bin/fancontrol ${CONF_FILE:-/etc/fancontrol}

View File

@ -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() {