diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/lm_sensors/APKBUILD | 7 | ||||
-rw-r--r-- | main/lm_sensors/lm_sensors.initd | 98 |
2 files changed, 1 insertions, 104 deletions
diff --git a/main/lm_sensors/APKBUILD b/main/lm_sensors/APKBUILD index 4a8c5e2382..e2c0bd1a2b 100644 --- a/main/lm_sensors/APKBUILD +++ b/main/lm_sensors/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lm_sensors pkgver=3.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring." url="http://www.lm-sensors.org/" arch="all" @@ -17,7 +17,6 @@ source="http://pkgs.fedoraproject.org/repo/pkgs/lm_sensors/lm_sensors-3.4.0.tar. sensors-detect-alpine.patch musl-fix-includes.patch fancontrol.initd - lm_sensors.initd sensord.confd sensord.initd " @@ -56,7 +55,6 @@ package() { cd "$srcdir" install -Dm755 fancontrol.initd "$pkgdir"/etc/init.d/fancontrol - install -Dm755 lm_sensors.initd "$pkgdir"/etc/init.d/lm_sensors } detect() { @@ -81,20 +79,17 @@ md5sums="c03675ae9d43d60322110c679416901a lm_sensors-3.4.0.tar.bz2 8e508dcb4e35c2b05154ea0efae08a19 sensors-detect-alpine.patch 9411b5410420df8251c6e6c9c958fd89 musl-fix-includes.patch a0d35e054e9b0abb286c71f2212515f7 fancontrol.initd -c6f63b21f866b2141f2f0eefce933bd6 lm_sensors.initd 82e075236a61334abb3adf46280380d3 sensord.confd 8e4b68b7cf6d3f29a320af2dc2f5c1eb sensord.initd" sha256sums="e0579016081a262dd23eafe1d22b41ebde78921e73a1dcef71e05e424340061f lm_sensors-3.4.0.tar.bz2 8a18ea7ebea7b85f8ef518adba4445f08002b5a749b74bae174fc6496c818b5b sensors-detect-alpine.patch e9bf572221a262bb53cefc86bea4d3d957a1e7962e6b3c0c2917fb3945bb7545 musl-fix-includes.patch 1b108ed9e856bd1defdfe94ee6d299c50cc09bac1b70f865d83542ac7ae7c98c fancontrol.initd -efa7e79859b19b40a8fde672f24246c17257b76ca0c76588cef170034759d14d lm_sensors.initd 02230edf5efbb0a4de3840cd76f9ebf431c57a246fa7388e9dbeb0fe26fe7b8d sensord.confd 756ca3a1e138d10dd73246df3c3ff174330f351e7c4ca15e4bf888a0e3bb162a sensord.initd" sha512sums="993064bd14b855c1ae8c057e89313df5b3d5efe441fb2e8c3e508f42bb15658564df2563fac8fabbdb0d650dfdbc694037736c748d45cb9d85dfb8fb5a3d1ea9 lm_sensors-3.4.0.tar.bz2 794cf2aaa2a9e809c6b67f4c888a89064bba3e5b9333a9f0101a92372c25012e506fa48e86523f57cf30e5c2a808bc38058fd8640c870ea6b48faab44794cfbb sensors-detect-alpine.patch 333751cb580c94f2d32ef5520d2f2acc0ef7e1cd4a6390ea75cae4c755fbdfcade1805c979ba3319905f1267bdc120a6746e6f70d89e0c72a8c2faefd34a9e79 musl-fix-includes.patch 04756c3844033dc7897e1348181140a43f8470c1bb863f1524b21bbe6be2f13fbf17ac3a68270c96a70d8c148124fea569d1ef75619bbe383e15ec705ea18b21 fancontrol.initd -9744b109948f3be0f01e9f31a54835f1f89d2696d764e4bcc558c02bcc47202413adac9e2230e21c581b6fe80979198b8335afbb9556873f867bdfe81795b5d5 lm_sensors.initd a77d81ab7ded085ba19e4c637e93268f889ccb8ce9e008a210ae135cb6e2140be07e5d455cf7fcc1084fd57cfbfb3f2bb37207123aebe9566f78b5183806fd7d sensord.confd 9ba515ce646a45c4604ca5be266e9caf2a0742cc6c3742301c302495ff3d63f1d58db54d2d9e898ac7ced0e5cf7c516b9ee6653e7940efc60eb333b0c0dafa36 sensord.initd" diff --git a/main/lm_sensors/lm_sensors.initd b/main/lm_sensors/lm_sensors.initd deleted file mode 100644 index f4aabda608..0000000000 --- a/main/lm_sensors/lm_sensors.initd +++ /dev/null @@ -1,98 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/files/lm_sensors-3-init.d,v 1.1 2008/03/17 07:59:28 dberkholz Exp $ - -checkconfig() { - if [ ! -f /etc/conf.d/lm_sensors ]; then - eerror "/etc/conf.d/lm_sensors does not exist, try running sensors-detect" - return 1 - fi - - if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then - if [ -z "${HWMON_MODULES}" ]; then - eerror "HWMON_MODULES is not set in /etc/conf.d/lm_sensors, try running sensors-detect" - return 1 - fi - fi -} - -start() { - checkconfig || return 1 - - if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then - einfo "Loading lm_sensors modules..." - - mount | grep sysfs >/dev/null 2>&1 - if [ ${?} = 0 ]; then - if ! ( [ -e /sys/i2c ] || [ -e /sys/bus/i2c ] ); then - ebegin " Loading i2c-core" - modprobe i2c-core >/dev/null 2>&1 - if [ ${?} != 0 ]; then - eerror " Could not load i2c-core!" - eend 1 - fi - ( [ -e /sys/i2c ] || [ -e /sys/bus/i2c ] ) || return 1 - eend 0 - fi - elif ! [ -e /proc/sys/dev/sensors ]; then - ebegin " Loading i2c-proc" - modprobe i2c-proc >/dev/null 2>&1 - if [ ${?} != 0 ]; then - eerror " Could not load i2c-proc!" - eend 1 - fi - [ -e /proc/sys/dev/sensors ] || return 1 - eend 0 - fi - - for module in ${BUS_MODULES}; do - ebegin " Loading ${module}" - modprobe ${module} >/dev/null 2>&1 - eend $? - done - - for module in ${HWMON_MODULES}; do - ebegin " Loading ${module}" - modprobe ${module} >/dev/null 2>&1 - eend $? - done - fi - - if [ "${INITSENSORS}" = "yes" ]; then - if ! [ -f /etc/sensors3.conf ]; then - eerror "/etc/sensors3.conf does not exist!" - return 1 - fi - - ebegin "Initializing sensors" - /usr/bin/sensors -s >/dev/null 2>&1 - eend ${?} - fi -} - -stop() { - checkconfig || return 1 - - if [ "${LOADMODULES}" = "yes" -a -f /proc/modules ]; then - einfo "Unloading lm_sensors modules..." - - for module in ${HWMON_MODULES}; do - ebegin " Unloading ${module}" - rmmod ${module} >/dev/null 2>&1 - eend $? - done - - for module in ${BUS_MODULES}; do - ebegin " Unloading ${module}" - rmmod ${module} >/dev/null 2>&1 - eend $? - done - - if [ -e /proc/sys/dev/sensors ] ; then - ebegin " Unloading i2c-proc" - rmmod i2c-proc >/dev/null 2>&1 - eend $? - fi - fi -} |