[arch-commits] Commit in ibam/repos (14 files)

Balló György bgyorgy at nymeria.archlinux.org
Thu Sep 5 18:01:44 UTC 2013


    Date: Thursday, September 5, 2013 @ 20:01:44
  Author: bgyorgy
Revision: 96802

archrelease: copy trunk to community-i686, community-x86_64

Added:
  ibam/repos/community-i686/03acpi-check.dpatch
    (from rev 96801, ibam/trunk/03acpi-check.dpatch)
  ibam/repos/community-i686/PKGBUILD
    (from rev 96801, ibam/trunk/PKGBUILD)
  ibam/repos/community-i686/ibam-0.5.2-sysfs.patch
    (from rev 96801, ibam/trunk/ibam-0.5.2-sysfs.patch)
  ibam/repos/community-i686/ibam.install
    (from rev 96801, ibam/trunk/ibam.install)
  ibam/repos/community-x86_64/03acpi-check.dpatch
    (from rev 96801, ibam/trunk/03acpi-check.dpatch)
  ibam/repos/community-x86_64/PKGBUILD
    (from rev 96801, ibam/trunk/PKGBUILD)
  ibam/repos/community-x86_64/ibam-0.5.2-sysfs.patch
    (from rev 96801, ibam/trunk/ibam-0.5.2-sysfs.patch)
  ibam/repos/community-x86_64/ibam.install
    (from rev 96801, ibam/trunk/ibam.install)
Deleted:
  ibam/repos/community-i686/PKGBUILD
  ibam/repos/community-i686/ibam-0.5.2-sysfs.patch
  ibam/repos/community-i686/ibam.install
  ibam/repos/community-x86_64/PKGBUILD
  ibam/repos/community-x86_64/ibam-0.5.2-sysfs.patch
  ibam/repos/community-x86_64/ibam.install

-----------------------------------------+
 /PKGBUILD                               |   76 ++++++++++++++++++++++++++++++
 /ibam-0.5.2-sysfs.patch                 |   34 +++++++++++++
 /ibam.install                           |   16 ++++++
 community-i686/03acpi-check.dpatch      |   28 +++++++++++
 community-i686/PKGBUILD                 |   34 -------------
 community-i686/ibam-0.5.2-sysfs.patch   |   17 ------
 community-i686/ibam.install             |    8 ---
 community-x86_64/03acpi-check.dpatch    |   28 +++++++++++
 community-x86_64/PKGBUILD               |   34 -------------
 community-x86_64/ibam-0.5.2-sysfs.patch |   17 ------
 community-x86_64/ibam.install           |    8 ---
 11 files changed, 182 insertions(+), 118 deletions(-)

Copied: ibam/repos/community-i686/03acpi-check.dpatch (from rev 96801, ibam/trunk/03acpi-check.dpatch)
===================================================================
--- community-i686/03acpi-check.dpatch	                        (rev 0)
+++ community-i686/03acpi-check.dpatch	2013-09-05 18:01:44 UTC (rev 96802)
@@ -0,0 +1,28 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03acpi-check.dpatch by Martin Wuertele <maxx at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: change detection for sysfs and sysfs variable names for 2.6.30+ kernels
+
+ at DPATCH@
+--- ibam-0.5.2/ibam.inl.orig    2010-01-03 12:17:10.000000000 +0100
++++ ibam-0.5.2/ibam.inl 2010-01-03 12:17:19.000000000 +0100
+@@ -945,7 +945,7 @@
+    string sysfs_path = "/sys/class/power_supply"; // ...
+    ifstream pmu,acpi,sysfs;
+    pmu.open((pmu_path+"/info").c_str());
+-   acpi.open((acpi_path+"/info").c_str());
++   acpi.open((acpi_path+"/event").c_str());
+    if (pmu.is_open()) {
+ #ifdef IBAM_DEBUG
+       cout << "using pmu" << endl;
+@@ -959,7 +959,7 @@
+       acpi.close();
+       apm = new acpi_status();
+    } else {
+-      sysfs.open((sysfs_path+"/BAT1/charge_full").c_str());
++      sysfs.open((sysfs_path+"/BAT0/present").c_str());
+       if(sysfs.is_open()) {
+ #ifdef IBAM_DEBUG
+       cout << "using sysfs" << endl;
+

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2013-09-05 18:01:34 UTC (rev 96801)
+++ community-i686/PKGBUILD	2013-09-05 18:01:44 UTC (rev 96802)
@@ -1,34 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com>
-# Contributor: Penguin <TGates81.at.gmail.dot.com>
-
-pkgname=ibam
-pkgver=0.5.2
-pkgrel=5
-pkgdesc="An intelligent battery monitor"
-arch=('i686' 'x86_64')
-url="http://ibam.sourceforge.net/"
-license=('GPL')
-depends=('gcc-libs')
-makedepends=('sed' 'make')
-optdepends=('gnuplot: graphs support')
-install="ibam.install"
-source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
-	ibam-0.5.2-sysfs.patch)
-md5sums=('2d5222ff504dd19e7c1ea8acc2f13cf5'
-         'c3aafebd5ad9159c89f71beab4a0f414')
-
-build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  install -m0755 -d ${pkgdir}/usr/bin
-
-  sed -i \
-	-e "s|/local/bin|/bin|g" \
-	-e "s|^CFLAGS=-O3|CFLAGS=${CFLAGS}|g" \
-	Makefile
-  patch -p1 <$srcdir/ibam-0.5.2-sysfs.patch
-
-  make
-  install -m0755 -D ${srcdir}/${pkgname}-${pkgver}/ibam ${pkgdir}/usr/bin/ibam
-}

Copied: ibam/repos/community-i686/PKGBUILD (from rev 96801, ibam/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2013-09-05 18:01:44 UTC (rev 96802)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com>
+# Contributor: Penguin <TGates81.at.gmail.dot.com>
+
+pkgname=ibam
+pkgver=0.5.2
+pkgrel=6
+pkgdesc="An intelligent battery monitor"
+arch=('i686' 'x86_64')
+url="http://ibam.sourceforge.net/"
+license=('GPL')
+depends=('gcc-libs')
+makedepends=('sed' 'make')
+optdepends=('gnuplot: graphs support')
+install="ibam.install"
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+	03acpi-check.dpatch)
+md5sums=('2d5222ff504dd19e7c1ea8acc2f13cf5'
+         '2f27fc97932bd59cabacbad063a13f0e')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  sed -i \
+	-e "s|/local/bin|/bin|g" \
+	-e "s|^CFLAGS=-O3|CFLAGS=${CFLAGS}|g" \
+	Makefile
+  patch -p1 <$srcdir/03acpi-check.dpatch
+
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  install -m0755 -d ${pkgdir}/usr/bin
+  install -m0755 -D ${srcdir}/${pkgname}-${pkgver}/ibam ${pkgdir}/usr/bin/ibam
+}

Deleted: community-i686/ibam-0.5.2-sysfs.patch
===================================================================
--- community-i686/ibam-0.5.2-sysfs.patch	2013-09-05 18:01:34 UTC (rev 96801)
+++ community-i686/ibam-0.5.2-sysfs.patch	2013-09-05 18:01:44 UTC (rev 96802)
@@ -1,17 +0,0 @@
-diff -wbBur ibam-0.5.2/ibam.inl ibam-0.5.2.my/ibam.inl
---- ibam-0.5.2/ibam.inl	2009-03-09 16:53:20.000000000 +0000
-+++ ibam-0.5.2.my/ibam.inl	2011-03-24 19:41:32.000000000 +0000
-@@ -959,7 +959,13 @@
-       acpi.close();
-       apm = new acpi_status();
-    } else {
-+      sysfs.open((sysfs_path+"/BAT0/charge_full").c_str());
-+      if(!sysfs.is_open()) {
-       sysfs.open((sysfs_path+"/BAT1/charge_full").c_str());
-+      }
-+      if(!sysfs.is_open()) {
-+          sysfs.open((sysfs_path+"/BAT2/charge_full").c_str());
-+      }
-       if(sysfs.is_open()) {
- #ifdef IBAM_DEBUG
-       cout << "using sysfs" << endl;

Copied: ibam/repos/community-i686/ibam-0.5.2-sysfs.patch (from rev 96801, ibam/trunk/ibam-0.5.2-sysfs.patch)
===================================================================
--- community-i686/ibam-0.5.2-sysfs.patch	                        (rev 0)
+++ community-i686/ibam-0.5.2-sysfs.patch	2013-09-05 18:01:44 UTC (rev 96802)
@@ -0,0 +1,17 @@
+diff -wbBur ibam-0.5.2/ibam.inl ibam-0.5.2.my/ibam.inl
+--- ibam-0.5.2/ibam.inl	2009-03-09 16:53:20.000000000 +0000
++++ ibam-0.5.2.my/ibam.inl	2011-03-24 19:41:32.000000000 +0000
+@@ -959,7 +959,13 @@
+       acpi.close();
+       apm = new acpi_status();
+    } else {
++      sysfs.open((sysfs_path+"/BAT0/charge_full").c_str());
++      if(!sysfs.is_open()) {
+       sysfs.open((sysfs_path+"/BAT1/charge_full").c_str());
++      }
++      if(!sysfs.is_open()) {
++          sysfs.open((sysfs_path+"/BAT2/charge_full").c_str());
++      }
+       if(sysfs.is_open()) {
+ #ifdef IBAM_DEBUG
+       cout << "using sysfs" << endl;

Deleted: community-i686/ibam.install
===================================================================
--- community-i686/ibam.install	2013-09-05 18:01:34 UTC (rev 96801)
+++ community-i686/ibam.install	2013-09-05 18:01:44 UTC (rev 96802)
@@ -1,8 +0,0 @@
-post_install() {
-  echo -e "->  install gnuplot to use the \`--plot' switch."
-  /bin/true
-}
-
-post_upgrade() {
-  post_install $1
-}

Copied: ibam/repos/community-i686/ibam.install (from rev 96801, ibam/trunk/ibam.install)
===================================================================
--- community-i686/ibam.install	                        (rev 0)
+++ community-i686/ibam.install	2013-09-05 18:01:44 UTC (rev 96802)
@@ -0,0 +1,8 @@
+post_install() {
+  echo -e "->  install gnuplot to use the \`--plot' switch."
+  /bin/true
+}
+
+post_upgrade() {
+  post_install $1
+}

Copied: ibam/repos/community-x86_64/03acpi-check.dpatch (from rev 96801, ibam/trunk/03acpi-check.dpatch)
===================================================================
--- community-x86_64/03acpi-check.dpatch	                        (rev 0)
+++ community-x86_64/03acpi-check.dpatch	2013-09-05 18:01:44 UTC (rev 96802)
@@ -0,0 +1,28 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03acpi-check.dpatch by Martin Wuertele <maxx at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: change detection for sysfs and sysfs variable names for 2.6.30+ kernels
+
+ at DPATCH@
+--- ibam-0.5.2/ibam.inl.orig    2010-01-03 12:17:10.000000000 +0100
++++ ibam-0.5.2/ibam.inl 2010-01-03 12:17:19.000000000 +0100
+@@ -945,7 +945,7 @@
+    string sysfs_path = "/sys/class/power_supply"; // ...
+    ifstream pmu,acpi,sysfs;
+    pmu.open((pmu_path+"/info").c_str());
+-   acpi.open((acpi_path+"/info").c_str());
++   acpi.open((acpi_path+"/event").c_str());
+    if (pmu.is_open()) {
+ #ifdef IBAM_DEBUG
+       cout << "using pmu" << endl;
+@@ -959,7 +959,7 @@
+       acpi.close();
+       apm = new acpi_status();
+    } else {
+-      sysfs.open((sysfs_path+"/BAT1/charge_full").c_str());
++      sysfs.open((sysfs_path+"/BAT0/present").c_str());
+       if(sysfs.is_open()) {
+ #ifdef IBAM_DEBUG
+       cout << "using sysfs" << endl;
+

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2013-09-05 18:01:34 UTC (rev 96801)
+++ community-x86_64/PKGBUILD	2013-09-05 18:01:44 UTC (rev 96802)
@@ -1,34 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com>
-# Contributor: Penguin <TGates81.at.gmail.dot.com>
-
-pkgname=ibam
-pkgver=0.5.2
-pkgrel=5
-pkgdesc="An intelligent battery monitor"
-arch=('i686' 'x86_64')
-url="http://ibam.sourceforge.net/"
-license=('GPL')
-depends=('gcc-libs')
-makedepends=('sed' 'make')
-optdepends=('gnuplot: graphs support')
-install="ibam.install"
-source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
-	ibam-0.5.2-sysfs.patch)
-md5sums=('2d5222ff504dd19e7c1ea8acc2f13cf5'
-         'c3aafebd5ad9159c89f71beab4a0f414')
-
-build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  install -m0755 -d ${pkgdir}/usr/bin
-
-  sed -i \
-	-e "s|/local/bin|/bin|g" \
-	-e "s|^CFLAGS=-O3|CFLAGS=${CFLAGS}|g" \
-	Makefile
-  patch -p1 <$srcdir/ibam-0.5.2-sysfs.patch
-
-  make
-  install -m0755 -D ${srcdir}/${pkgname}-${pkgver}/ibam ${pkgdir}/usr/bin/ibam
-}

Copied: ibam/repos/community-x86_64/PKGBUILD (from rev 96801, ibam/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2013-09-05 18:01:44 UTC (rev 96802)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com>
+# Contributor: Penguin <TGates81.at.gmail.dot.com>
+
+pkgname=ibam
+pkgver=0.5.2
+pkgrel=6
+pkgdesc="An intelligent battery monitor"
+arch=('i686' 'x86_64')
+url="http://ibam.sourceforge.net/"
+license=('GPL')
+depends=('gcc-libs')
+makedepends=('sed' 'make')
+optdepends=('gnuplot: graphs support')
+install="ibam.install"
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+	03acpi-check.dpatch)
+md5sums=('2d5222ff504dd19e7c1ea8acc2f13cf5'
+         '2f27fc97932bd59cabacbad063a13f0e')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  sed -i \
+	-e "s|/local/bin|/bin|g" \
+	-e "s|^CFLAGS=-O3|CFLAGS=${CFLAGS}|g" \
+	Makefile
+  patch -p1 <$srcdir/03acpi-check.dpatch
+
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  install -m0755 -d ${pkgdir}/usr/bin
+  install -m0755 -D ${srcdir}/${pkgname}-${pkgver}/ibam ${pkgdir}/usr/bin/ibam
+}

Deleted: community-x86_64/ibam-0.5.2-sysfs.patch
===================================================================
--- community-x86_64/ibam-0.5.2-sysfs.patch	2013-09-05 18:01:34 UTC (rev 96801)
+++ community-x86_64/ibam-0.5.2-sysfs.patch	2013-09-05 18:01:44 UTC (rev 96802)
@@ -1,17 +0,0 @@
-diff -wbBur ibam-0.5.2/ibam.inl ibam-0.5.2.my/ibam.inl
---- ibam-0.5.2/ibam.inl	2009-03-09 16:53:20.000000000 +0000
-+++ ibam-0.5.2.my/ibam.inl	2011-03-24 19:41:32.000000000 +0000
-@@ -959,7 +959,13 @@
-       acpi.close();
-       apm = new acpi_status();
-    } else {
-+      sysfs.open((sysfs_path+"/BAT0/charge_full").c_str());
-+      if(!sysfs.is_open()) {
-       sysfs.open((sysfs_path+"/BAT1/charge_full").c_str());
-+      }
-+      if(!sysfs.is_open()) {
-+          sysfs.open((sysfs_path+"/BAT2/charge_full").c_str());
-+      }
-       if(sysfs.is_open()) {
- #ifdef IBAM_DEBUG
-       cout << "using sysfs" << endl;

Copied: ibam/repos/community-x86_64/ibam-0.5.2-sysfs.patch (from rev 96801, ibam/trunk/ibam-0.5.2-sysfs.patch)
===================================================================
--- community-x86_64/ibam-0.5.2-sysfs.patch	                        (rev 0)
+++ community-x86_64/ibam-0.5.2-sysfs.patch	2013-09-05 18:01:44 UTC (rev 96802)
@@ -0,0 +1,17 @@
+diff -wbBur ibam-0.5.2/ibam.inl ibam-0.5.2.my/ibam.inl
+--- ibam-0.5.2/ibam.inl	2009-03-09 16:53:20.000000000 +0000
++++ ibam-0.5.2.my/ibam.inl	2011-03-24 19:41:32.000000000 +0000
+@@ -959,7 +959,13 @@
+       acpi.close();
+       apm = new acpi_status();
+    } else {
++      sysfs.open((sysfs_path+"/BAT0/charge_full").c_str());
++      if(!sysfs.is_open()) {
+       sysfs.open((sysfs_path+"/BAT1/charge_full").c_str());
++      }
++      if(!sysfs.is_open()) {
++          sysfs.open((sysfs_path+"/BAT2/charge_full").c_str());
++      }
+       if(sysfs.is_open()) {
+ #ifdef IBAM_DEBUG
+       cout << "using sysfs" << endl;

Deleted: community-x86_64/ibam.install
===================================================================
--- community-x86_64/ibam.install	2013-09-05 18:01:34 UTC (rev 96801)
+++ community-x86_64/ibam.install	2013-09-05 18:01:44 UTC (rev 96802)
@@ -1,8 +0,0 @@
-post_install() {
-  echo -e "->  install gnuplot to use the \`--plot' switch."
-  /bin/true
-}
-
-post_upgrade() {
-  post_install $1
-}

Copied: ibam/repos/community-x86_64/ibam.install (from rev 96801, ibam/trunk/ibam.install)
===================================================================
--- community-x86_64/ibam.install	                        (rev 0)
+++ community-x86_64/ibam.install	2013-09-05 18:01:44 UTC (rev 96802)
@@ -0,0 +1,8 @@
+post_install() {
+  echo -e "->  install gnuplot to use the \`--plot' switch."
+  /bin/true
+}
+
+post_upgrade() {
+  post_install $1
+}




More information about the arch-commits mailing list