Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=45ee53a219ee55a64340905697fe3442d4f8fa8d
commit 45ee53a219ee55a64340905697fe3442d4f8fa8d Author: Miklos Vajna <[email protected]> Date: Mon Nov 5 21:36:11 2012 +0100 lmsensors-3.3.2-3-x86_64 - drop sysvinit support diff --git a/source/apps/lmsensors/FrugalBuild b/source/apps/lmsensors/FrugalBuild index 520517b..7afaa0d 100644 --- a/source/apps/lmsensors/FrugalBuild +++ b/source/apps/lmsensors/FrugalBuild @@ -5,7 +5,7 @@ pkgname=lmsensors _F_archive_name=lm_sensors pkgver=3.3.2 -pkgrel=2 +pkgrel=3 pkgdesc="Linux System Hardware Monitor" url="http://www.lm-sensors.org/" groups=('apps') @@ -14,9 +14,8 @@ depends=('glibc') makedepends=('kernel-source') options=('force') up2date="Flasttar http://www.lm-sensors.org/wiki/Download" -source=(http://dl.lm-sensors.org/lm-sensors/releases/$_F_archive_name-$pkgver.tar.bz2 rc.lmsensors README.Frugalware) +source=(http://dl.lm-sensors.org/lm-sensors/releases/$_F_archive_name-$pkgver.tar.bz2 README.Frugalware) backup=(etc/{sensors3.conf,sysconfig/lm_sensors}) -_F_sysvinit_units=(lmsensors) _F_systemd_units=(lmsensors=e) Finclude systemd @@ -27,13 +26,11 @@ build() { make user || Fdie make DESTDIR=$Fdestdir PREFIX=/usr user_install || Fdie Frm usr/include/linux/ - Frcd lmsensors Fdoc README.Frugalware Ffilerel prog/init/lm_sensors.service /lib/systemd/system/$pkgname.service Fgenscriptlet } sha1sums=('5d0f026ad763124e8c2ad733b6e1ad5e6473993d' \ - 'f91892076a106c4aaee29f9611b9f004ddb392ab' \ 'b92e656dba5a89d79da0daa5f75189055a83c3bc') # optimization OK diff --git a/source/apps/lmsensors/messages/lmsensors.en b/source/apps/lmsensors/messages/lmsensors.en deleted file mode 100644 index cb3d61b..0000000 --- a/source/apps/lmsensors/messages/lmsensors.en +++ /dev/null @@ -1,2 +0,0 @@ -stoplmsensors="Unloading sensor modules: " -startlmsensors="Loading sensor modules: " diff --git a/source/apps/lmsensors/messages/lmsensors.hu b/source/apps/lmsensors/messages/lmsensors.hu deleted file mode 100644 index bb390a4..0000000 --- a/source/apps/lmsensors/messages/lmsensors.hu +++ /dev/null @@ -1,2 +0,0 @@ -stoplmsensors="Szenzor modulok eltávolítása: " -startlmsensors="Szenzor modulok betöltése: " diff --git a/source/apps/lmsensors/rc.lmsensors b/source/apps/lmsensors/rc.lmsensors deleted file mode 100644 index d6dd332..0000000 --- a/source/apps/lmsensors/rc.lmsensors +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -# -# chkconfig: 2345 26 74 -# description: sensors is used for monitoring motherboard sensor values. -# config: /etc/sysconfig/lm_sensors -# -# It uses a config file /etc/sysconfig/lm_sensors that contains the modules to -# be loaded/unloaded. That file is sourced into this one. - -# The format of that file a shell script that simply defines the modules -# in order as normal shell variables with the special names: -# MODULE_1, MODULE_2, MODULE_3, etc. - -. /etc/rc.d/rc.functions - -CONFIG=/etc/sysconfig/lm_sensors -[ -r "$CONFIG" ] || exit 0 -grep '^MODULE_' $CONFIG >/dev/null 2>&1 || exit 0 - -# Load config file -. "$CONFIG" - -if [ "$1" = "stop" ]; then - stop "$stoplmsensors" - modules=`grep \^MODULE_ $CONFIG | wc -l | tr -d ' '` - i=`expr $modules` - while [ $i -ge 0 ] ; do - module=`eval echo '$'MODULE_$i` - /sbin/modprobe -r $module >/dev/null 2>&1 - i=`expr $i - 1` - done - ok $? -elif [ "$1" = "restart" ]; then - "$0" stop - sleep 2 - "$0" start -else # start - start "$startlmsensors" - modules=`grep \^MODULE_ $CONFIG | wc -l | tr -d ' '` - i=0 - while [ $i -lt $modules ] ; do - module=`eval echo '$'MODULE_$i` - echo -n "${module} " - /sbin/modprobe $module >/dev/null 2>&1 - i=`expr $i + 1` - done - /usr/bin/sensors -s - ok $? -fi
_______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
