Added several patches because upstream is dead. Fixes bugs 120350, 171208, 173821...
authorWulf Krueger <philantrop@gentoo.org>
Sun, 15 Apr 2007 02:03:53 +0000 (02:03 +0000)
committerWulf Krueger <philantrop@gentoo.org>
Sun, 15 Apr 2007 02:03:53 +0000 (02:03 +0000)
Package-Manager: portage-2.1.2.3

kde-misc/ksensors/ChangeLog
kde-misc/ksensors/Manifest
kde-misc/ksensors/files/digest-ksensors-0.7.3-r1 [new file with mode: 0644]
kde-misc/ksensors/files/ksensors-0.7.3-hddtemp-path.patch [new file with mode: 0644]
kde-misc/ksensors/files/ksensors-0.7.3-ibm-acpi.patch [new file with mode: 0644]
kde-misc/ksensors/files/ksensors.desktop [new file with mode: 0644]
kde-misc/ksensors/ksensors-0.7.3-r1.ebuild [new file with mode: 0644]

index 3545051ea623d2a33cde2063bf5dbbfead6ba57b..fae347c5301710ea8466896519bead4c8c7b3aab 100644 (file)
@@ -1,6 +1,15 @@
 # ChangeLog for kde-misc/ksensors
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-misc/ksensors/ChangeLog,v 1.10 2006/09/29 13:39:22 deathwing00 Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/kde-misc/ksensors/ChangeLog,v 1.11 2007/04/15 02:03:53 philantrop Exp $
+
+*ksensors-0.7.3-r1 (15 Apr 2007)
+
+  15 Apr 2007; philantrop@gentoo.org
+  +files/ksensors-0.7.3-hddtemp-path.patch,
+  +files/ksensors-0.7.3-ibm-acpi.patch, +files/ksensors.desktop,
+  +ksensors-0.7.3-r1.ebuild:
+  Added several patches because upstream is dead. Fixes bugs 120350, 171208,
+  173821, 116661.
 
   29 Sep 2006; Ioannis Aslanidis <deathwing00@gentoo.org>
   ksensors-0.7.3.ebuild:
index bb2a7a3f22bea36a29492c8af6887d92eeb080ed..d0635e910cd86b6891f481f52f8b7226598cc3d7 100644 (file)
@@ -1,15 +1,32 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
+AUX ksensors-0.7.3-hddtemp-path.patch 985 RMD160 81fb67dc03f35a0d6f2e75aeeb792928b5a60524 SHA1 ac94f09ea0a107214c888093e8487369f0dedca1 SHA256 63796036434a9b790bf9159b2129ab05f8ff598f36148061f0b18ec578095b84
+MD5 36c2119f9a0aa0dba13b519c15639621 files/ksensors-0.7.3-hddtemp-path.patch 985
+RMD160 81fb67dc03f35a0d6f2e75aeeb792928b5a60524 files/ksensors-0.7.3-hddtemp-path.patch 985
+SHA256 63796036434a9b790bf9159b2129ab05f8ff598f36148061f0b18ec578095b84 files/ksensors-0.7.3-hddtemp-path.patch 985
+AUX ksensors-0.7.3-ibm-acpi.patch 7208 RMD160 24c621c0f92a9efb0866093995340c0732bac936 SHA1 3ae4701a0036ec5dfaf0358c800fc66489972027 SHA256 c02cbb90769ace5a76b6b8c049609325a9afec4dfa004c95d75a907f573afd46
+MD5 b52baf2dc9dc049dd0b4b8765c8a903c files/ksensors-0.7.3-ibm-acpi.patch 7208
+RMD160 24c621c0f92a9efb0866093995340c0732bac936 files/ksensors-0.7.3-ibm-acpi.patch 7208
+SHA256 c02cbb90769ace5a76b6b8c049609325a9afec4dfa004c95d75a907f573afd46 files/ksensors-0.7.3-ibm-acpi.patch 7208
+AUX ksensors.desktop 673 RMD160 223eb10929fce7fcbf0bf4e18310a99c786be666 SHA1 e35881b675d9182b2381378ed64d89c9e3311258 SHA256 f637d105f1cb4e4190bcd2ebeff7f0532120c22e0ecadc24376b26bff5b299ff
+MD5 df542ebba9f7a70092d9ff4ba1ee4bb7 files/ksensors.desktop 673
+RMD160 223eb10929fce7fcbf0bf4e18310a99c786be666 files/ksensors.desktop 673
+SHA256 f637d105f1cb4e4190bcd2ebeff7f0532120c22e0ecadc24376b26bff5b299ff files/ksensors.desktop 673
 DIST ksensors-0.7.3.tar.gz 864466 RMD160 e4f35ca5b17d326eaee0b718ce683118c4c71b11 SHA1 8d1c56c707aa4200e568f73d8fee0913a08e50cd SHA256 ca1f91cae6303a661fb7b08549cb4813ad43880aaba26297cab7f08904e96660
+DIST ksensors_0.7.3-13.diff.gz 18201 RMD160 bb7e3463ca0d9a834b5eb06afc95100de7c4263c SHA1 720d82370439a6ff61fc42a8bb28da5f534e439f SHA256 063819ac7e3f11afee022a3994684f942e35af2ee7e3f0c917d10093de09454b
+EBUILD ksensors-0.7.3-r1.ebuild 1587 RMD160 8caf0d1174dc0d9febee8b104725083f26ee2976 SHA1 1b026adbac7d91c2240bccb810d7eab704efb17f SHA256 fe40c791a435acbd4cc5b05ce14cd1845bcee4ffeb8b30e108d7c3b51dd4d40a
+MD5 2f9b5e1ddb6dbcdaa7ae3bb6c9df208c ksensors-0.7.3-r1.ebuild 1587
+RMD160 8caf0d1174dc0d9febee8b104725083f26ee2976 ksensors-0.7.3-r1.ebuild 1587
+SHA256 fe40c791a435acbd4cc5b05ce14cd1845bcee4ffeb8b30e108d7c3b51dd4d40a ksensors-0.7.3-r1.ebuild 1587
 EBUILD ksensors-0.7.3.ebuild 585 RMD160 bd059334e7eacbbec579c3b1048580c8aa04a952 SHA1 9be2e8682cff4e45954702a03ea5accfc924c09a SHA256 aa7ef4f990557803f47ec2424790d5cfa99b53958a8cfea407516e4a8629b5f5
 MD5 766a53124a016c624411f6914d408c47 ksensors-0.7.3.ebuild 585
 RMD160 bd059334e7eacbbec579c3b1048580c8aa04a952 ksensors-0.7.3.ebuild 585
 SHA256 aa7ef4f990557803f47ec2424790d5cfa99b53958a8cfea407516e4a8629b5f5 ksensors-0.7.3.ebuild 585
-MISC ChangeLog 3185 RMD160 100c77145fe1427b60e46215b547ef7520140c88 SHA1 00b7336ba4827cbf06c7f7f511e4165fdf337343 SHA256 de792331cc2352d3810c4071526d00f48f9a0612481cb6d6eee25ae189a9af4b
-MD5 34bb298a632af49876c7b74cbb90f805 ChangeLog 3185
-RMD160 100c77145fe1427b60e46215b547ef7520140c88 ChangeLog 3185
-SHA256 de792331cc2352d3810c4071526d00f48f9a0612481cb6d6eee25ae189a9af4b ChangeLog 3185
+MISC ChangeLog 3489 RMD160 e1f0de965934b7020bab0f7d8835e759546039e6 SHA1 2b6ada15293ea211df09b94cc5f406a90cfc7a87 SHA256 a860ee5f2a167b623ee9fbd9c417d5eaa3de59dbadb8566e2130d28232f5e2dc
+MD5 444b035e805b26e8a0c3c9e145db25d2 ChangeLog 3489
+RMD160 e1f0de965934b7020bab0f7d8835e759546039e6 ChangeLog 3489
+SHA256 a860ee5f2a167b623ee9fbd9c417d5eaa3de59dbadb8566e2130d28232f5e2dc ChangeLog 3489
 MISC metadata.xml 156 RMD160 ecce3b981f150c45ae1e84e2d208e678d6124259 SHA1 b64f7c0b4e5db816d82ad19848f72118af129d35 SHA256 2f4da28506b9d4185f320f67a6191d30c7a921217ed4447ed46ea0bc4aefc79a
 MD5 acc03a4b12bb0433a57e95bd253b9501 metadata.xml 156
 RMD160 ecce3b981f150c45ae1e84e2d208e678d6124259 metadata.xml 156
@@ -17,10 +34,13 @@ SHA256 2f4da28506b9d4185f320f67a6191d30c7a921217ed4447ed46ea0bc4aefc79a metadata
 MD5 2ecc7cf536b968d7143acc1027d815a7 files/digest-ksensors-0.7.3 244
 RMD160 31e30eee6976e0120746b1d96dae2722558639cc files/digest-ksensors-0.7.3 244
 SHA256 ca9b8a90c01c587b58e646b7f7b80bcf70a0e096906dedce3773ad4460e4a027 files/digest-ksensors-0.7.3 244
+MD5 ccb17fe9a8f6f168d4828706cce26828 files/digest-ksensors-0.7.3-r1 497
+RMD160 c77fee8e9db848b0af1449c158104068325f9f20 files/digest-ksensors-0.7.3-r1 497
+SHA256 46e8fc40c3113c03d8b47bfb4508b6ffee7bcaddba1dd87f6bf1ceb304e6ec4d files/digest-ksensors-0.7.3-r1 497
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
+Version: GnuPG v2.0.3 (GNU/Linux)
 
-iD8DBQFFHSIGQVeVlgLp4x8RAg84AKCBSvU22JLFucU3tpLtAdAYjggfzQCdHozZ
-MhVWzjWKFP6oSUOhxOUaSEQ=
-=fbs7
+iD8DBQFGIYgWCkvF58q80IkRAmnhAJsG/Zc5yGhDTzDETVYSEpSk4ODa4wCghiCC
+mq2yZE1yKL+fJO+ClowFCjA=
+=w8/t
 -----END PGP SIGNATURE-----
diff --git a/kde-misc/ksensors/files/digest-ksensors-0.7.3-r1 b/kde-misc/ksensors/files/digest-ksensors-0.7.3-r1
new file mode 100644 (file)
index 0000000..7e31891
--- /dev/null
@@ -0,0 +1,6 @@
+MD5 4f6c5d7dea5e637e772d17f1e547d6f1 ksensors-0.7.3.tar.gz 864466
+RMD160 e4f35ca5b17d326eaee0b718ce683118c4c71b11 ksensors-0.7.3.tar.gz 864466
+SHA256 ca1f91cae6303a661fb7b08549cb4813ad43880aaba26297cab7f08904e96660 ksensors-0.7.3.tar.gz 864466
+MD5 6568816bdd50ab9bf10c4184250bf232 ksensors_0.7.3-13.diff.gz 18201
+RMD160 bb7e3463ca0d9a834b5eb06afc95100de7c4263c ksensors_0.7.3-13.diff.gz 18201
+SHA256 063819ac7e3f11afee022a3994684f942e35af2ee7e3f0c917d10093de09454b ksensors_0.7.3-13.diff.gz 18201
diff --git a/kde-misc/ksensors/files/ksensors-0.7.3-hddtemp-path.patch b/kde-misc/ksensors/files/ksensors-0.7.3-hddtemp-path.patch
new file mode 100644 (file)
index 0000000..2eb32ad
--- /dev/null
@@ -0,0 +1,29 @@
+--- ksensors-0.7.3.orig/src/hdsensorslist.cpp  2007-04-15 02:15:32.000000000 +0200
++++ ksensors-0.7.3/src/hdsensorslist.cpp       2007-04-15 02:18:27.000000000 +0200
+@@ -46,7 +46,7 @@
+  for(QStringList::Iterator it = disks.begin(); it != disks.end(); ++it ) {
+    ProcessExec proc;
+-   proc << "hddtemp" << "-q";
++   proc << "/usr/sbin/hddtemp" << "-q";
+    proc << *it;
+    if(proc.runAndWait()) {
+      double value;
+@@ -87,7 +87,7 @@
+  if(params.count()>0) {
+    process= new ProcessExec;
+-   *process << "hddtemp" << "-q" << params;
++   *process << "/usr/sbin/hddtemp" << "-q" << params;
+    connect( process, SIGNAL(processExited(KProcess *)), this, SLOT(slotProcessExited(KProcess *)) );
+    process->run();
+  }
+@@ -139,7 +139,7 @@
+ {
+  ProcessExec proc;
+- proc << "hddtemp" << "-v" ;
++ proc << "/usr/sbin/hddtemp" << "-v" ;
+  if(proc.runAndWait()) {
+    if(proc.getStdoutData().contains("ERROR")==0) return true;
+    qWarning("HddTemp Error:\n%s", proc.getStdoutData().ascii());
diff --git a/kde-misc/ksensors/files/ksensors-0.7.3-ibm-acpi.patch b/kde-misc/ksensors/files/ksensors-0.7.3-ibm-acpi.patch
new file mode 100644 (file)
index 0000000..79e2f16
--- /dev/null
@@ -0,0 +1,222 @@
+--- ksensors-0.7.3.orig/src/i8ksensorslist.cpp 2003-10-27 06:44:40.000000000 +0800
++++ ksensors-0.7.3/src/i8ksensorslist.cpp      2005-12-25 11:48:51.000000000 +0800
+@@ -65,7 +65,70 @@
+       rightFan->readConfig();
+   }
+-  if ( (acpiAvail=(AcpiAvailable()==0)) )
++  if (ibmAcpiAvail=(IbmAcpiAvailable()==0))
++  {
++      cpuTempAcpiIbm= new Sensor(this);
++      cpuTempAcpiIbm->setType(Sensor::lmTemp);
++      cpuTempAcpiIbm->setName("cputemp");
++      cpuTempAcpiIbm->setDescription("CPU Temp");
++      cpuTempAcpiIbm->setValueMax  (80 , Sensor::dgCelsius);
++      cpuTempAcpiIbm->setValueMin  ( 0 , Sensor::dgCelsius);
++      cpuTempAcpiIbm->setValueIdeal(30 , Sensor::dgCelsius);
++      cpuTempAcpiIbm->setValue     ( 0 , Sensor::dgCelsius);
++      cpuTempAcpiIbm->readConfig();
++
++      pciTempAcpiIbm= new Sensor(this);
++      pciTempAcpiIbm->setType(Sensor::lmTemp);
++      pciTempAcpiIbm->setName("pictmp");
++      pciTempAcpiIbm->setDescription("Mini PCI Temp");
++      pciTempAcpiIbm->setValueMax  (55 , Sensor::dgCelsius);
++      pciTempAcpiIbm->setValueMin  ( 0 , Sensor::dgCelsius);
++      pciTempAcpiIbm->setValueIdeal(25 , Sensor::dgCelsius);
++      pciTempAcpiIbm->setValue     ( 0 , Sensor::dgCelsius);
++      pciTempAcpiIbm->readConfig();
++
++      hddTempAcpiIbm= new Sensor(this);
++      hddTempAcpiIbm->setType(Sensor::lmTemp);
++      hddTempAcpiIbm->setName("hddtmp");
++      hddTempAcpiIbm->setDescription("HDD Temp");
++      hddTempAcpiIbm->setValueMax  (40 , Sensor::dgCelsius);
++      hddTempAcpiIbm->setValueMin  ( 0 , Sensor::dgCelsius);
++      hddTempAcpiIbm->setValueIdeal(20 , Sensor::dgCelsius);
++      hddTempAcpiIbm->setValue     ( 0 , Sensor::dgCelsius);
++      hddTempAcpiIbm->readConfig();
++
++      gpuTempAcpiIbm= new Sensor(this);
++      gpuTempAcpiIbm->setType(Sensor::lmTemp);
++      gpuTempAcpiIbm->setName("gputmp");
++      gpuTempAcpiIbm->setDescription("GPU Temp");
++      gpuTempAcpiIbm->setValueMax  (60 , Sensor::dgCelsius);
++      gpuTempAcpiIbm->setValueMin  ( 0 , Sensor::dgCelsius);
++      gpuTempAcpiIbm->setValueIdeal(25 , Sensor::dgCelsius);
++      gpuTempAcpiIbm->setValue     ( 0 , Sensor::dgCelsius);
++      gpuTempAcpiIbm->readConfig();
++
++      bat0TempAcpiIbm= new Sensor(this);
++      bat0TempAcpiIbm->setType(Sensor::lmTemp);
++      bat0TempAcpiIbm->setName("bat0tmp");
++      bat0TempAcpiIbm->setDescription("BAT0 Temp");
++      bat0TempAcpiIbm->setValueMax  (40 , Sensor::dgCelsius);
++      bat0TempAcpiIbm->setValueMin  ( 0 , Sensor::dgCelsius);
++      bat0TempAcpiIbm->setValueIdeal(30 , Sensor::dgCelsius);
++      bat0TempAcpiIbm->setValue     ( 0 , Sensor::dgCelsius);
++      bat0TempAcpiIbm->readConfig();
++
++      bat1TempAcpiIbm= new Sensor(this);
++      bat1TempAcpiIbm->setType(Sensor::lmTemp);
++      bat1TempAcpiIbm->setName("bat1tmp");
++      bat1TempAcpiIbm->setDescription("BAT1 Temp");
++      bat1TempAcpiIbm->setValueMax  (40 , Sensor::dgCelsius);
++      bat1TempAcpiIbm->setValueMin  ( 0 , Sensor::dgCelsius);
++      bat1TempAcpiIbm->setValueIdeal(30 , Sensor::dgCelsius);
++      bat1TempAcpiIbm->setValue     ( 0 , Sensor::dgCelsius);
++      bat1TempAcpiIbm->readConfig();
++  }
++
++  if ( (!ibmAcpiAvail) && (acpiAvail=(AcpiAvailable()==0)) )
+   {
+       cpuTempAcpi= new Sensor(this);
+       cpuTempAcpi->setType(Sensor::lmTemp);
+@@ -77,35 +140,51 @@
+       cpuTempAcpi->setValue     (30 , Sensor::dgCelsius);
+       cpuTempAcpi->readConfig();
+   }
+-
+   updateSensors();
+ }
+ I8KSensorsList::~I8KSensorsList(){
+ }
+-
+ void I8KSensorsList::updateSensors()
+ {
+-double t,f1,f2;
++double t,f1,f2, ct,pt,ht,gt,bt0,na0,bt1,na1;
+   if(i8kAvail && !getI8KInfo(&t,&f1,&f2)) {
+     cpuTemp->setValue(t,Sensor::dgCelsius);
+     leftFan->setValue(f1);
+     rightFan->setValue(f2);
+   }
+-  if(acpiAvail && !getAcpiTemperature(&t)) {
++
++  if(ibmAcpiAvail && !getIbmAcpiTemperature(&ct,&pt,&ht,&gt,&bt0,&na0,&bt1,&na1)) {
++    cpuTempAcpiIbm->setValue(ct,Sensor::dgCelsius);
++    pciTempAcpiIbm->setValue(pt,Sensor::dgCelsius);
++    hddTempAcpiIbm->setValue(ht,Sensor::dgCelsius);
++    gpuTempAcpiIbm->setValue(gt,Sensor::dgCelsius);
++    bat0TempAcpiIbm->setValue(bt0,Sensor::dgCelsius);
++    bat1TempAcpiIbm->setValue(bt1,Sensor::dgCelsius);
++  }
++
++  if(!ibmAcpiAvail && acpiAvail && !getAcpiTemperature(&t)) {
+     cpuTempAcpi->setValue(t,Sensor::dgCelsius);
+   }
+-}
++}
+ int I8KSensorsList::AcpiAvailable()
+ {
+  double t;
++
+  return  getAcpiTemperature(&t);
+ }
++int I8KSensorsList::IbmAcpiAvailable()
++{
++ double t0,t1,t2,t3,t4,t5,t6,t7;
++
++ return  getIbmAcpiTemperature(&t0,&t1,&t2,&t3,&t4,&t5,&t6,&t7);
++}
++
+ int I8KSensorsList::I8KOnlyAvailable()
+ {
+ double d1,d2,d3;
+@@ -122,7 +201,7 @@
+   case -3: qWarning("I18K Warning: Only format version 1.0 is supported. Inform the author.");         break;
+  }
+- return (result==0 ||  AcpiAvailable()==0);
++ return (result==0 ||  AcpiAvailable()==0 ||  IbmAcpiAvailable()==0);
+ }
+--- ksensors-0.7.3.orig/src/i8ksensorslist.h   2003-10-27 06:29:33.000000000 +0800
++++ ksensors-0.7.3/src/i8ksensorslist.h        2005-12-25 10:30:14.000000000 +0800
+@@ -42,13 +42,25 @@
+   bool i8kAvail;
+   bool acpiAvail;
++  bool ibmAcpiAvail;
+   Sensor *cpuTempAcpi;
++
++  Sensor *cpuTempAcpiIbm;
++  Sensor *pciTempAcpiIbm;
++  Sensor *hddTempAcpiIbm;
++  Sensor *gpuTempAcpiIbm;
++  Sensor *bat0TempAcpiIbm;
++  Sensor *na0TempAcpiIbm;
++  Sensor *bat1TempAcpiIbm;
++  Sensor *na1TempAcpiIbm;
++
+   Sensor *cpuTemp;
+   Sensor *leftFan;
+   Sensor *rightFan;
+   static int AcpiAvailable();
++  static int IbmAcpiAvailable();
+   static int I8KOnlyAvailable();
+ };
+
+--- ksensors-0.7.3.orig/src/procinfo.cpp       2003-10-27 06:45:41.000000000 +0800
++++ ksensors-0.7.3/src/procinfo.cpp    2005-12-25 12:31:12.000000000 +0800
+@@ -84,7 +84,8 @@
+ {
+ char buf[128];
+-    if(read_file("/proc/acpi/thermal_zone/THRM/temperature", buf, sizeof(buf))<= 0)  return -1;
++    if((read_file("/proc/acpi/thermal_zone/THRM/temperature", buf, sizeof(buf))<= 0) &&
++     (read_file("/proc/acpi/thermal_zone/THM0/temperature", buf, sizeof(buf))<= 0)) return -1;
+     sscanf(buf, "temperature: %lf C", cpuTemp);
+@@ -92,6 +93,23 @@
+ }
++// ********* IBM Acpi *************************************
++// cat /proc/acpi/ibm/thermal (ibm_acpi module) if available
++// temperatures:   46 45 34 48 32 -128 29 -128
++
++int getIbmAcpiTemperature(double *cpuTemp, double *pciTemp, double *hddTemp, double *gpuTemp,
++  double *bat0Temp, double *na0Temp, double *bat1Temp, double *na1Temp)
++{
++char buf[128];
++
++    if(read_file("/proc/acpi/ibm/thermal", buf, sizeof(buf))<= 0) return -1;
++
++    sscanf(buf, "temperatures: %lf %lf %lf %lf %lf %lf %lf %lf", cpuTemp, pciTemp, hddTemp, gpuTemp,
++      bat0Temp, na0Temp, bat1Temp, na1Temp);
++
++    return 0;
++}
++
+ int getMemInfo(int *RamTotal,int *RamUsed,int *SwapTotal, int *SwapUsed)
+ {
+ char buf[4096];
+@@ -138,7 +156,7 @@
+  if(read_file("/proc/stat", buf, sizeof(buf)) <= 0) return false;
+- sscanf(buf, "cpu %u %u %u %u",user,nice,system,idle);
++ sscanf(buf, "cpu %d %d %d %d",user,nice,system,idle);
+  return true;
+ }
+
+--- ksensors-0.7.3.orig/src/procinfo.h 2003-10-27 06:28:46.000000000 +0800
++++ ksensors-0.7.3/src/procinfo.h      2005-12-25 10:24:11.000000000 +0800
+@@ -21,3 +21,5 @@
+ int  getUpTime();
+ int getI8KInfo(double *cpuTemp,  double *leftFan, double *rightFan);
+ int getAcpiTemperature(double *cpuTemp);
++int getIbmAcpiTemperature(double *cpuTemp, double *pciTemp, double *hddTemp, double *gpuTemp,
++  double *bat0Temp, double *na0Temp, double *bat1Temp, double *na1Temp);
diff --git a/kde-misc/ksensors/files/ksensors.desktop b/kde-misc/ksensors/files/ksensors.desktop
new file mode 100644 (file)
index 0000000..c028abe
--- /dev/null
@@ -0,0 +1,15 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=ksensors
+Exec=ksensors
+Icon=ksensors
+Type=Application
+Comment=KSensors - A nice lmsensors frontend for KDE
+Comment[cs]=KSensors - Pěkné rozhraní pro lmsemsors v KDE
+Comment[de]=KSensors - Ein benutzerfreundliches lmsensors Frontend für KDE
+Comment[es]=KSensors - Un agradable lmsensors frontend para KDE
+Comment[fr]=KSensors - Un frontend sympatique pour lm-sensors et KDE
+Comment[nb]=KSensors - Ett behagelig lmsensors-grensesnitt for KDE
+Comment[nl]=KSensors - Een gebruiksvriendelijke interface voor KDE
+Comment[pl]=KSensors - Ładny frondend lmsensors dla KDE
+Comment[sv]=KSensors - Ett trevligt gränssnitt mot lmsensors för KDE
diff --git a/kde-misc/ksensors/ksensors-0.7.3-r1.ebuild b/kde-misc/ksensors/ksensors-0.7.3-r1.ebuild
new file mode 100644 (file)
index 0000000..1ab0b5e
--- /dev/null
@@ -0,0 +1,64 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-misc/ksensors/ksensors-0.7.3-r1.ebuild,v 1.1 2007/04/15 02:03:53 philantrop Exp $
+
+inherit kde
+
+DESCRIPTION="KSensors - a nice lm_sensors frontend for KDE"
+SRC_URI="mirror://sourceforge/ksensors/${P}.tar.gz
+               mirror://debian/pool/main/k/ksensors/${PN}_${PV}-13.diff.gz"
+HOMEPAGE="http://ksensors.sourceforge.net/"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="hddtemp ibmacpi"
+
+DEPEND=">=sys-apps/lm_sensors-2.6.3"
+
+RDEPEND="${DEPEND}
+               hddtemp? ( >=app-admin/hddtemp-0.3_beta15-r1 )"
+
+need-kde 3
+
+src_unpack() {
+       kde_src_unpack
+
+       cd ${WORKDIR}
+
+       # Debian patchset, fixes bugs 120350, 171208, 173821
+       epatch ${PN}_${PV}-13.diff
+
+       # On Gentoo hddtemp resides in /usr/sbin which is not in the user's
+       # path. Thus, call hddtemp with full path.
+       use hddtemp && epatch ${FILESDIR}/${P}-hddtemp-path.patch
+
+       # User-contributed patch, fixes bug 116661
+       use ibmacpi && epatch ${FILESDIR}/${P}-ibm-acpi.patch
+}
+
+src_install() {
+       kde_src_install
+
+       dodoc README AUTHORS TODO ChangeLog FAQ INSTALL NEWS
+       dodoc LEEME LIESMICH LISEZMOI
+
+       docinto debian
+       dodoc debian/{changelog,copyright}
+       doman debian/ksensors.1
+
+       # Remove obsolete menu entry
+       rm -fR ${D}/usr/share/applnk/
+
+       insinto /usr/share/applications/kde
+       doins ${FILESDIR}/ksensors.desktop
+}
+
+pkg_postinst() {
+       kde_pkg_postinst
+
+       if use hddtemp; then
+               [[ -u "${ROOT}"/usr/sbin/hddtemp ]] || \
+                       elog "You need to run \"chmod u+s /usr/sbin/hddtemp\" to show disk temperatures."
+       fi
+}