From 28b13b7e8e6e1e4fa1593f0dfb1c37569f2f90a8 Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 15 Nov 2011 14:34:01 +0000 Subject: Tue Nov 15 14:33:58 UTC 2011 --- community-testing/acpitool/PKGBUILD | 32 ----------------- community-testing/acpitool/linux-3.0.patch | 18 ---------- community-testing/acpitool/sysfs-battery.patch | 50 -------------------------- 3 files changed, 100 deletions(-) delete mode 100644 community-testing/acpitool/PKGBUILD delete mode 100644 community-testing/acpitool/linux-3.0.patch delete mode 100644 community-testing/acpitool/sysfs-battery.patch (limited to 'community-testing/acpitool') diff --git a/community-testing/acpitool/PKGBUILD b/community-testing/acpitool/PKGBUILD deleted file mode 100644 index d9b079988..000000000 --- a/community-testing/acpitool/PKGBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# $Id: PKGBUILD 57685 2011-11-01 09:10:22Z spupykin $ -# Maintainer: Sergej Pupykin -# Contributor: Gerhard Brauer -# Contributor: Milosz Piglas - -pkgname=acpitool -pkgver=0.5.1 -pkgrel=4 -pkgdesc="ACPI client - replacement for apm tool" -url="http://sourceforge.net/projects/acpitool/" -arch=('i686' 'x86_64') -license=('GPL') -depends=('gcc-libs') -source=(http://downloads.sourceforge.net/sourceforge/acpitool/acpitool-$pkgver.tar.bz2 - linux-3.0.patch - sysfs-battery.patch) -md5sums=('9e4ec55201be0be71ffbc56d38b42b57' - 'eb149edb32be6cdf20a7d16beb3e9f70' - '8211c37dbf888b76388699b7c6098503') - -build() { - cd "$srcdir/$pkgname-$pkgver" - patch -p1 <$srcdir/linux-3.0.patch - patch -p1 <$srcdir/sysfs-battery.patch - ./configure --prefix=/usr - make -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - make prefix="$pkgdir/usr" install -} diff --git a/community-testing/acpitool/linux-3.0.patch b/community-testing/acpitool/linux-3.0.patch deleted file mode 100644 index ba454a0c2..000000000 --- a/community-testing/acpitool/linux-3.0.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff -wbBur acpitool-0.5.1/src/acpitool.cpp acpitool-0.5.1.my/src/acpitool.cpp ---- acpitool-0.5.1/src/acpitool.cpp 2009-08-13 23:37:48.000000000 +0400 -+++ acpitool-0.5.1.my/src/acpitool.cpp 2011-08-11 21:53:17.000000000 +0400 -@@ -205,8 +205,12 @@ - Kernel_24 = 1; - Kernel_26 = 0; - } -- -- if(strncmp(str,"2.6",3)==0) -+ else if(strncmp(str,"2.6",3)==0) -+ { -+ Kernel_24 = 0; -+ Kernel_26 = 1; -+ } -+ else - { - Kernel_24 = 0; - Kernel_26 = 1; diff --git a/community-testing/acpitool/sysfs-battery.patch b/community-testing/acpitool/sysfs-battery.patch deleted file mode 100644 index 11a58ecc5..000000000 --- a/community-testing/acpitool/sysfs-battery.patch +++ /dev/null @@ -1,50 +0,0 @@ -diff -wbBur acpitool-0.5.1/src/battery.cpp acpitool-0.5.1.my/src/battery.cpp ---- acpitool-0.5.1/src/battery.cpp 2009-08-13 23:42:43.000000000 +0400 -+++ acpitool-0.5.1.my/src/battery.cpp 2011-11-01 13:07:20.000000000 +0400 -@@ -781,45 +781,7 @@ - - int Count_Batteries_ProcFS() - { -- DIR *battery_dir; -- char *name, *dirname; -- int t = 0; -- -- dirname = "/proc/acpi/battery/"; -- battery_dir = opendir(dirname); -- if(battery_dir) -- { -- struct dirent **namelist; -- int n = 0; -- -- n = scandir(dirname, &namelist, 0, alphasort); -- if(n<0) -- t = -1; -- else -- { -- while(n--) -- { -- name = namelist[n]->d_name; -- // skip . and .. // -- if (!strcmp (".", name) || !strcmp ("..", name)) -- { -- // do nothing -- } -- else -- { -- t++; -- } -- free(namelist[n]); -- } -- free(namelist); -- } -- } -- else -- { -- t = 0; -- } -- closedir(battery_dir); -- return t; -+ return 0; - } - - -- cgit v1.2.3-54-g00ecf