parent
f5ec099487
commit
ac5ab51d73
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
[ -r conf ] && . conf
|
||||||
|
[ ! -r ${CONF_FILE:-/etc/fancontrol} ] && exit 1
|
||||||
|
exec /usr/bin/fancontrol ${CONF_FILE:-/etc/fancontrol}
|
|
@ -1,13 +1,12 @@
|
||||||
# Template file for 'lm_sensors'
|
# Template file for 'lm_sensors'
|
||||||
pkgname=lm_sensors
|
pkgname=lm_sensors
|
||||||
version=3.5.0
|
version=3.5.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="${pkgname/_/-}-${version//./-}"
|
wrksrc="${pkgname/_/-}-${version//./-}"
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_build_args="MACHINE=${XBPS_TARGET_MACHINE#-musl}"
|
make_build_args="MACHINE=${XBPS_TARGET_MACHINE#-musl}"
|
||||||
make_install_args="$make_build_args
|
make_install_args="${make_build_args} PREFIX=/usr SBINDIR=/usr/bin
|
||||||
PREFIX=/usr SBINDIR=/usr/bin MANDIR=/usr/share/man"
|
MANDIR=/usr/share/man"
|
||||||
conf_files="/etc/sensors3.conf"
|
|
||||||
hostmakedepends="flex perl"
|
hostmakedepends="flex perl"
|
||||||
depends="perl"
|
depends="perl"
|
||||||
short_desc="Utilities to read temperature/voltage/fan sensors"
|
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"
|
distfiles="https://github.com/lm-sensors/lm-sensors/archive/V${version//./-}.tar.gz"
|
||||||
checksum=f671c1d63a4cd8581b3a4a775fd7864a740b15ad046fe92038bcff5c5134d7e0
|
checksum=f671c1d63a4cd8581b3a4a775fd7864a740b15ad046fe92038bcff5c5134d7e0
|
||||||
|
|
||||||
|
conf_files="/etc/sensors3.conf"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
sed -i prog/*/Module.mk \
|
sed -i prog/*/Module.mk \
|
||||||
-e "/^MODULE_DIR :=/i LDFLAGS := ${LDFLAGS}" \
|
-e "/^MODULE_DIR :=/i LDFLAGS := ${LDFLAGS}" \
|
||||||
-e 's;$(CC) $(EXLDFLAGS);$(CC) $(LDFLAGS) $(EXLDFLAGS);'
|
-e 's;$(CC) $(EXLDFLAGS);$(CC) $(LDFLAGS) $(EXLDFLAGS);'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vsv fancontrol
|
||||||
|
}
|
||||||
|
|
||||||
libsensors_package() {
|
libsensors_package() {
|
||||||
short_desc="Library to read temperature/voltage/fan sensors"
|
short_desc="Library to read temperature/voltage/fan sensors"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
|
Loading…
Reference in New Issue