summaryrefslogtreecommitdiff
path: root/community/sensors-applet
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-05-04 12:59:20 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-05-04 12:59:20 +0000
commitab1410d33401cf1fc4a384bb0b2d9901c8fe8d14 (patch)
tree51133f097c3d4ff5f1d830bdbc131118e3cfd0ac /community/sensors-applet
parent9780d07c31b22125ad7ecba4e281ff41194f95be (diff)
Wed May 4 12:59:20 UTC 2011
Diffstat (limited to 'community/sensors-applet')
-rw-r--r--community/sensors-applet/FS9379.patch54
-rw-r--r--community/sensors-applet/PKGBUILD35
-rw-r--r--community/sensors-applet/sensors-applet-2.2.7-libnotify-0.7.patch57
-rw-r--r--community/sensors-applet/sensors-applet.install11
4 files changed, 0 insertions, 157 deletions
diff --git a/community/sensors-applet/FS9379.patch b/community/sensors-applet/FS9379.patch
deleted file mode 100644
index 5fee4e20f..000000000
--- a/community/sensors-applet/FS9379.patch
+++ /dev/null
@@ -1,54 +0,0 @@
---- sensors-applet-2.2.1.orig/plugins/nvidia/nvidia-plugin.c
-+++ sensors-applet-2.2.1/plugins/nvidia/nvidia-plugin.c
-@@ -81,7 +81,7 @@
- /* create the connection to the X server */
- if (!(nvidia_sensors_dpy = XOpenDisplay(NULL))) {
- /* no connection to the X server avaible */
-- return;
-+ return sensors;
- }
-
- /* check if the NV-CONTROL extension is available on this X
-only in patch2:
-unchanged:
---- sensors-applet-2.2.1.orig/plugins/libsensors/libsensors-plugin.c
-+++ sensors-applet-2.2.1/plugins/libsensors/libsensors-plugin.c
-@@ -258,7 +258,8 @@
- * file - if neither succeed, exit */
- if ((file = fopen (LIBSENSORS_CONFIG_FILE, "r")) == NULL) {
- if ((file = fopen (LIBSENSORS_ALTERNATIVE_CONFIG_FILE, "r")) == NULL) {
-- return;
-+ g_debug("%s: error opening libsensors config file... ", __FUNCTION__);
-+ return sensors;
- }
- }
-
-@@ -266,7 +267,8 @@
- * valid, close file and return */
- if (sensors_init(file) != 0) {
- fclose(file);
-- return;
-+ g_debug("%s: error initing libsensors from config file...", __FUNCTION__);
-+ return sensors;
- }
- fclose(file);
-
-@@ -293,7 +295,8 @@
-
- int nr = 0;
- if (sensors_init(NULL) != 0) {
-- return;
-+ g_debug("%s: error initing libsensors", __FUNCTION__);
-+ return sensors;
- }
- i = 0;
- while ((chip_name = sensors_get_detected_chips(NULL, &nr)))
-@@ -502,7 +505,7 @@
- if (regcomp(&uri_re, "^sensor://([a-z0-9-]+)/([0-9]+)$",
- REG_EXTENDED | REG_ICASE) != 0) {
- g_debug("Error compiling regexp...not initing libsensors sensors interface");
-- return;
-+ return NULL;
- }
-
- return libsensors_plugin_get_sensors();
diff --git a/community/sensors-applet/PKGBUILD b/community/sensors-applet/PKGBUILD
deleted file mode 100644
index 2fd81dea0..000000000
--- a/community/sensors-applet/PKGBUILD
+++ /dev/null
@@ -1,35 +0,0 @@
-# $Id: PKGBUILD 41542 2011-03-07 16:09:06Z ibiru $
-# Maintainer: Ionut Biru <ibiru@archlinux.org>
-# Contributor: Roman Kyrylych <roman@archlinux.org>
-# Contributor: Michael Barker
-
-pkgname=sensors-applet
-pkgver=2.2.7
-pkgrel=3
-pkgdesc="An applet for the GNOME Panel to display readings from hardware sensors, including CPU temperature, fan speeds and voltage readings."
-arch=('i686' 'x86_64')
-url="http://sensors-applet.sourceforge.net/"
-license=('GPL')
-depends=('gnome-panel-bonobo' 'lm_sensors' 'hicolor-icon-theme')
-makedepends=('intltool' 'gnome-doc-utils>=0.18.1' 'libxnvctrl' 'libgnomeui')
-optdepends=('hddtemp: for HDD support'
- 'libxnvctrl: for Nvidia GPU support')
-install=sensors-applet.install
-source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
- sensors-applet-2.2.7-libnotify-0.7.patch)
-options=('!libtool')
-md5sums=('f342fab98be4f1b9a25af0689af20130'
- '96a4393d9e75e5eb88a6e906a5a7e464')
-
-build() {
- cd $srcdir/$pkgname-$pkgver
- patch -Np1 -i $srcdir/sensors-applet-2.2.7-libnotify-0.7.patch
- ./configure --prefix=/usr \
- --libexecdir=/usr/lib/sensors-applet \
- --localstatedir=/var \
- --disable-scrollkeeper \
- --with-nvidia \
- --enable-libnotify
- make
- make DESTDIR=$pkgdir install
-}
diff --git a/community/sensors-applet/sensors-applet-2.2.7-libnotify-0.7.patch b/community/sensors-applet/sensors-applet-2.2.7-libnotify-0.7.patch
deleted file mode 100644
index ea2f7803a..000000000
--- a/community/sensors-applet/sensors-applet-2.2.7-libnotify-0.7.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-diff --git a/sensors-applet/active-sensor-libnotify.c b/sensors-applet/active-sensor-libnotify.c
-index e69b005..f7a7eb8 100644
---- a/sensors-applet/active-sensor-libnotify.c
-+++ b/sensors-applet/active-sensor-libnotify.c
-@@ -84,10 +84,23 @@ void active_sensor_libnotify_notify(ActiveSensor *active_sensor,
-
- /* now create a new one */
- g_debug("Creating new notification");
-+ #ifdef NOTIFY_CHECK_VERSION
-+ #if NOTIFY_CHECK_VERSION (0, 7, 1)
-+ active_sensor->notification[notif_type] = notify_notification_new(summary,
-+ message,
-+ icon_filename);
-+ #else
-+ active_sensor->notification[notif_type] = notify_notification_new(summary,
-+ message,
-+ icon_filename,
-+ attach);
-+ #endif
-+ #else
- active_sensor->notification[notif_type] = notify_notification_new(summary,
- message,
- icon_filename,
- attach);
-+ #endif
- g_signal_connect(active_sensor->notification[notif_type], "closed",
- G_CALLBACK(notif_closed_cb),
- active_sensor);
-diff --git a/sensors-applet/sensors-applet.c b/sensors-applet/sensors-applet.c
-index 9486173..81675b8 100644
---- a/sensors-applet/sensors-applet.c
-+++ b/sensors-applet/sensors-applet.c
-@@ -303,11 +303,23 @@ void sensors_applet_notify(SensorsApplet *sensors_applet,
- message = g_strdup_printf(_("An error occurred while trying to save the current sensor configuration. "));
- break;
- }
--
-+ #ifdef NOTIFY_CHECK_VERSION
-+ #if NOTIFY_CHECK_VERSION (0, 7, 1)
-+ sensors_applet->notification = notify_notification_new(summary,
-+ message,
-+ GTK_STOCK_DIALOG_WARNING);
-+ #else
-+ sensors_applet->notification = notify_notification_new(summary,
-+ message,
-+ GTK_STOCK_DIALOG_WARNING,
-+ GTK_WIDGET(sensors_applet->applet));
-+ #endif
-+ #else
- sensors_applet->notification = notify_notification_new(summary,
- message,
- GTK_STOCK_DIALOG_WARNING,
- GTK_WIDGET(sensors_applet->applet));
-+ #endif
- g_free(summary);
- g_free(message);
-
diff --git a/community/sensors-applet/sensors-applet.install b/community/sensors-applet/sensors-applet.install
deleted file mode 100644
index 43ed0a554..000000000
--- a/community/sensors-applet/sensors-applet.install
+++ /dev/null
@@ -1,11 +0,0 @@
-post_install() {
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}
-
-post_upgrade() {
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}
-
-post_remove() {
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}