[arch-commits] Commit in acpid/repos (18 files)

Sébastien Luttringer seblu at archlinux.org
Sun Aug 16 10:45:19 UTC 2015


    Date: Sunday, August 16, 2015 @ 12:45:18
  Author: seblu
Revision: 138404

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

Added:
  acpid/repos/community-i686/PKGBUILD
    (from rev 138403, acpid/trunk/PKGBUILD)
  acpid/repos/community-i686/acpid.service
    (from rev 138403, acpid/trunk/acpid.service)
  acpid/repos/community-i686/anything
    (from rev 138403, acpid/trunk/anything)
  acpid/repos/community-i686/handler.sh
    (from rev 138403, acpid/trunk/handler.sh)
  acpid/repos/community-i686/libc_compat.h
    (from rev 138403, acpid/trunk/libc_compat.h)
  acpid/repos/community-x86_64/PKGBUILD
    (from rev 138403, acpid/trunk/PKGBUILD)
  acpid/repos/community-x86_64/acpid.service
    (from rev 138403, acpid/trunk/acpid.service)
  acpid/repos/community-x86_64/anything
    (from rev 138403, acpid/trunk/anything)
  acpid/repos/community-x86_64/handler.sh
    (from rev 138403, acpid/trunk/handler.sh)
  acpid/repos/community-x86_64/libc_compat.h
    (from rev 138403, acpid/trunk/libc_compat.h)
Deleted:
  acpid/repos/community-i686/PKGBUILD
  acpid/repos/community-i686/acpid.service
  acpid/repos/community-i686/anything
  acpid/repos/community-i686/handler.sh
  acpid/repos/community-x86_64/PKGBUILD
  acpid/repos/community-x86_64/acpid.service
  acpid/repos/community-x86_64/anything
  acpid/repos/community-x86_64/handler.sh

--------------------------------+
 /PKGBUILD                      |  110 +++++++++++++++++++++++++++
 /acpid.service                 |   18 ++++
 /anything                      |    6 +
 /handler.sh                    |  154 +++++++++++++++++++++++++++++++++++++++
 community-i686/PKGBUILD        |   49 ------------
 community-i686/acpid.service   |    9 --
 community-i686/anything        |    3 
 community-i686/handler.sh      |   77 -------------------
 community-i686/libc_compat.h   |   40 ++++++++++
 community-x86_64/PKGBUILD      |   49 ------------
 community-x86_64/acpid.service |    9 --
 community-x86_64/anything      |    3 
 community-x86_64/handler.sh    |   77 -------------------
 community-x86_64/libc_compat.h |   40 ++++++++++
 14 files changed, 368 insertions(+), 276 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2015-08-16 10:44:35 UTC (rev 138403)
+++ community-i686/PKGBUILD	2015-08-16 10:45:18 UTC (rev 138404)
@@ -1,49 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer
-# Contributor: xduugu
-# Contributor: Manolis Tzanidakis
-# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
-
-pkgname=acpid
-pkgver=2.0.23
-pkgrel=4
-pkgdesc='A daemon for delivering ACPI power management events with netlink support'
-arch=('i686' 'x86_64')
-url='http://sourceforge.net/projects/acpid2/'
-license=('GPL')
-depends=('bash')
-optdepends=('perl: use perl based examples')
-replaces=('acpid2')
-backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything')
-source=("http://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz"
-        'acpid.service'
-        'anything'
-        'handler.sh')
-md5sums=('d7bcdcdefcd53b03730e50ba842554ea'
-         'b9a9810eefae2142e20c965c01b410de'
-         '2d37b98d6e74bab815604b8b48c6cfd4'
-         '47f44ff5f02685dce8bcdab8568f0c38')
-
-build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr --sbindir=/usr/bin
-  make
-}
-
-package() {
-  pushd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-  popd
-
-  # default config
-  install -Dm644 anything "$pkgdir/etc/acpi/events/anything"
-  install -Dm755 handler.sh "$pkgdir/etc/acpi/handler.sh"
-
-  # systemd
-  install -Dm644 acpid.service "$pkgdir/usr/lib/systemd/system/acpid.service"
-
-  # fix acpid rights
-  chmod 755 "$pkgdir/usr/bin/acpid"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: acpid/repos/community-i686/PKGBUILD (from rev 138403, acpid/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2015-08-16 10:45:18 UTC (rev 138404)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: xduugu
+# Contributor: Manolis Tzanidakis
+# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
+
+pkgname=acpid
+pkgver=2.0.24
+pkgrel=1
+pkgdesc='A daemon for delivering ACPI power management events with netlink support'
+arch=('i686' 'x86_64')
+url='http://sourceforge.net/projects/acpid2/'
+license=('GPL')
+depends=('bash')
+optdepends=('perl: use perl based examples')
+replaces=('acpid2')
+backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything')
+source=("http://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz"
+        'acpid.service'
+        'anything'
+        'handler.sh'
+        'libc_compat.h')
+md5sums=('54719f8cbafed5875c2e481635ac7007'
+         'b9a9810eefae2142e20c965c01b410de'
+         '2d37b98d6e74bab815604b8b48c6cfd4'
+         '47f44ff5f02685dce8bcdab8568f0c38'
+         'd798029e5d3896cd5fd2fb7ebdf2a81a')
+
+prepare() {
+  mv libc_compat.h $pkgname-$pkgver
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --sbindir=/usr/bin
+  make
+}
+
+package() {
+  pushd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  popd
+
+  # default config
+  install -Dm644 anything "$pkgdir/etc/acpi/events/anything"
+  install -Dm755 handler.sh "$pkgdir/etc/acpi/handler.sh"
+
+  # systemd
+  install -Dm644 acpid.service "$pkgdir/usr/lib/systemd/system/acpid.service"
+
+  # fix acpid rights
+  chmod 755 "$pkgdir/usr/bin/acpid"
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: community-i686/acpid.service
===================================================================
--- community-i686/acpid.service	2015-08-16 10:44:35 UTC (rev 138403)
+++ community-i686/acpid.service	2015-08-16 10:45:18 UTC (rev 138404)
@@ -1,9 +0,0 @@
-[Unit]
-Description=ACPI event daemon
-Documentation=man:acpid(8)
-
-[Service]
-ExecStart=/usr/bin/acpid --foreground --netlink
-
-[Install]
-WantedBy=multi-user.target

Copied: acpid/repos/community-i686/acpid.service (from rev 138403, acpid/trunk/acpid.service)
===================================================================
--- community-i686/acpid.service	                        (rev 0)
+++ community-i686/acpid.service	2015-08-16 10:45:18 UTC (rev 138404)
@@ -0,0 +1,9 @@
+[Unit]
+Description=ACPI event daemon
+Documentation=man:acpid(8)
+
+[Service]
+ExecStart=/usr/bin/acpid --foreground --netlink
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-i686/anything
===================================================================
--- community-i686/anything	2015-08-16 10:44:35 UTC (rev 138403)
+++ community-i686/anything	2015-08-16 10:45:18 UTC (rev 138404)
@@ -1,3 +0,0 @@
-# Pass all events to our one handler script
-event=.*
-action=/etc/acpi/handler.sh %e

Copied: acpid/repos/community-i686/anything (from rev 138403, acpid/trunk/anything)
===================================================================
--- community-i686/anything	                        (rev 0)
+++ community-i686/anything	2015-08-16 10:45:18 UTC (rev 138404)
@@ -0,0 +1,3 @@
+# Pass all events to our one handler script
+event=.*
+action=/etc/acpi/handler.sh %e

Deleted: community-i686/handler.sh
===================================================================
--- community-i686/handler.sh	2015-08-16 10:44:35 UTC (rev 138403)
+++ community-i686/handler.sh	2015-08-16 10:45:18 UTC (rev 138404)
@@ -1,77 +0,0 @@
-#!/bin/bash
-# Default acpi script that takes an entry for all actions
-
-case "$1" in
-    button/power)
-        case "$2" in
-            PBTN|PWRF)
-                logger 'PowerButton pressed'
-                ;;
-            *)
-                logger "ACPI action undefined: $2"
-                ;;
-        esac
-        ;;
-    button/sleep)
-        case "$2" in
-            SLPB|SBTN)
-                logger 'SleepButton pressed'
-                ;;
-            *)
-                logger "ACPI action undefined: $2"
-                ;;
-        esac
-        ;;
-    ac_adapter)
-        case "$2" in
-            AC|ACAD|ADP0)
-                case "$4" in
-                    00000000)
-                        logger 'AC unpluged'
-                        ;;
-                    00000001)
-                        logger 'AC pluged'
-                        ;;
-                esac
-                ;;
-            *)
-                logger "ACPI action undefined: $2"
-                ;;
-        esac
-        ;;
-    battery)
-        case "$2" in
-            BAT0)
-                case "$4" in
-                    00000000)
-                        logger 'Battery online'
-                        ;;
-                    00000001)
-                        logger 'Battery offline'
-                        ;;
-                esac
-                ;;
-            CPU0)
-                ;;
-            *)  logger "ACPI action undefined: $2" ;;
-        esac
-        ;;
-    button/lid)
-        case "$3" in
-            close)
-                logger 'LID closed'
-                ;;
-            open)
-                logger 'LID opened'
-                ;;
-            *)
-                logger "ACPI action undefined: $3"
-                ;;
-    esac
-    ;;
-    *)
-        logger "ACPI group/action undefined: $1 / $2"
-        ;;
-esac
-
-# vim:set ts=4 sw=4 ft=sh et:

Copied: acpid/repos/community-i686/handler.sh (from rev 138403, acpid/trunk/handler.sh)
===================================================================
--- community-i686/handler.sh	                        (rev 0)
+++ community-i686/handler.sh	2015-08-16 10:45:18 UTC (rev 138404)
@@ -0,0 +1,77 @@
+#!/bin/bash
+# Default acpi script that takes an entry for all actions
+
+case "$1" in
+    button/power)
+        case "$2" in
+            PBTN|PWRF)
+                logger 'PowerButton pressed'
+                ;;
+            *)
+                logger "ACPI action undefined: $2"
+                ;;
+        esac
+        ;;
+    button/sleep)
+        case "$2" in
+            SLPB|SBTN)
+                logger 'SleepButton pressed'
+                ;;
+            *)
+                logger "ACPI action undefined: $2"
+                ;;
+        esac
+        ;;
+    ac_adapter)
+        case "$2" in
+            AC|ACAD|ADP0)
+                case "$4" in
+                    00000000)
+                        logger 'AC unpluged'
+                        ;;
+                    00000001)
+                        logger 'AC pluged'
+                        ;;
+                esac
+                ;;
+            *)
+                logger "ACPI action undefined: $2"
+                ;;
+        esac
+        ;;
+    battery)
+        case "$2" in
+            BAT0)
+                case "$4" in
+                    00000000)
+                        logger 'Battery online'
+                        ;;
+                    00000001)
+                        logger 'Battery offline'
+                        ;;
+                esac
+                ;;
+            CPU0)
+                ;;
+            *)  logger "ACPI action undefined: $2" ;;
+        esac
+        ;;
+    button/lid)
+        case "$3" in
+            close)
+                logger 'LID closed'
+                ;;
+            open)
+                logger 'LID opened'
+                ;;
+            *)
+                logger "ACPI action undefined: $3"
+                ;;
+    esac
+    ;;
+    *)
+        logger "ACPI group/action undefined: $1 / $2"
+        ;;
+esac
+
+# vim:set ts=4 sw=4 ft=sh et:

Copied: acpid/repos/community-i686/libc_compat.h (from rev 138403, acpid/trunk/libc_compat.h)
===================================================================
--- community-i686/libc_compat.h	                        (rev 0)
+++ community-i686/libc_compat.h	2015-08-16 10:45:18 UTC (rev 138404)
@@ -0,0 +1,40 @@
+/*
+ *  libc_compat.h - implement defs/macros missing from some libcs
+ *
+ *  Copyright (C) 1999-2000 Andrew Henroid
+ *  Copyright (C) 2001 Sun Microsystems
+ *  Portions Copyright (C) 2004 Tim Hockin (thockin at hockin.org)
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#ifndef LIBC_COMPAT_H__
+#define LIBC_COMPAT_H__
+
+/* Evaluate EXPRESSION, and repeat as long as it returns -1 with `errno'
+   set to EINTR. This macro is present on glibc/uclibc but may not be in other cases.  */
+
+#ifndef ____GLIBC__
+#ifndef TEMP_FAILURE_RETRY
+#define TEMP_FAILURE_RETRY(expression) \
+  (__extension__                                                             \
+    ({ long int __result;                                                    \
+       do __result = (long int) (expression);                                \
+       while (__result == -1L && errno == EINTR);                            \
+       __result; }))
+#endif
+#endif /* __GLIBC__ */
+
+#endif /* LIBC_COMPAT_H__ */

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2015-08-16 10:44:35 UTC (rev 138403)
+++ community-x86_64/PKGBUILD	2015-08-16 10:45:18 UTC (rev 138404)
@@ -1,49 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer
-# Contributor: xduugu
-# Contributor: Manolis Tzanidakis
-# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
-
-pkgname=acpid
-pkgver=2.0.23
-pkgrel=4
-pkgdesc='A daemon for delivering ACPI power management events with netlink support'
-arch=('i686' 'x86_64')
-url='http://sourceforge.net/projects/acpid2/'
-license=('GPL')
-depends=('bash')
-optdepends=('perl: use perl based examples')
-replaces=('acpid2')
-backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything')
-source=("http://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz"
-        'acpid.service'
-        'anything'
-        'handler.sh')
-md5sums=('d7bcdcdefcd53b03730e50ba842554ea'
-         'b9a9810eefae2142e20c965c01b410de'
-         '2d37b98d6e74bab815604b8b48c6cfd4'
-         '47f44ff5f02685dce8bcdab8568f0c38')
-
-build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr --sbindir=/usr/bin
-  make
-}
-
-package() {
-  pushd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-  popd
-
-  # default config
-  install -Dm644 anything "$pkgdir/etc/acpi/events/anything"
-  install -Dm755 handler.sh "$pkgdir/etc/acpi/handler.sh"
-
-  # systemd
-  install -Dm644 acpid.service "$pkgdir/usr/lib/systemd/system/acpid.service"
-
-  # fix acpid rights
-  chmod 755 "$pkgdir/usr/bin/acpid"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: acpid/repos/community-x86_64/PKGBUILD (from rev 138403, acpid/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-08-16 10:45:18 UTC (rev 138404)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: xduugu
+# Contributor: Manolis Tzanidakis
+# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
+
+pkgname=acpid
+pkgver=2.0.24
+pkgrel=1
+pkgdesc='A daemon for delivering ACPI power management events with netlink support'
+arch=('i686' 'x86_64')
+url='http://sourceforge.net/projects/acpid2/'
+license=('GPL')
+depends=('bash')
+optdepends=('perl: use perl based examples')
+replaces=('acpid2')
+backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything')
+source=("http://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz"
+        'acpid.service'
+        'anything'
+        'handler.sh'
+        'libc_compat.h')
+md5sums=('54719f8cbafed5875c2e481635ac7007'
+         'b9a9810eefae2142e20c965c01b410de'
+         '2d37b98d6e74bab815604b8b48c6cfd4'
+         '47f44ff5f02685dce8bcdab8568f0c38'
+         'd798029e5d3896cd5fd2fb7ebdf2a81a')
+
+prepare() {
+  mv libc_compat.h $pkgname-$pkgver
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --sbindir=/usr/bin
+  make
+}
+
+package() {
+  pushd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  popd
+
+  # default config
+  install -Dm644 anything "$pkgdir/etc/acpi/events/anything"
+  install -Dm755 handler.sh "$pkgdir/etc/acpi/handler.sh"
+
+  # systemd
+  install -Dm644 acpid.service "$pkgdir/usr/lib/systemd/system/acpid.service"
+
+  # fix acpid rights
+  chmod 755 "$pkgdir/usr/bin/acpid"
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: community-x86_64/acpid.service
===================================================================
--- community-x86_64/acpid.service	2015-08-16 10:44:35 UTC (rev 138403)
+++ community-x86_64/acpid.service	2015-08-16 10:45:18 UTC (rev 138404)
@@ -1,9 +0,0 @@
-[Unit]
-Description=ACPI event daemon
-Documentation=man:acpid(8)
-
-[Service]
-ExecStart=/usr/bin/acpid --foreground --netlink
-
-[Install]
-WantedBy=multi-user.target

Copied: acpid/repos/community-x86_64/acpid.service (from rev 138403, acpid/trunk/acpid.service)
===================================================================
--- community-x86_64/acpid.service	                        (rev 0)
+++ community-x86_64/acpid.service	2015-08-16 10:45:18 UTC (rev 138404)
@@ -0,0 +1,9 @@
+[Unit]
+Description=ACPI event daemon
+Documentation=man:acpid(8)
+
+[Service]
+ExecStart=/usr/bin/acpid --foreground --netlink
+
+[Install]
+WantedBy=multi-user.target

Deleted: community-x86_64/anything
===================================================================
--- community-x86_64/anything	2015-08-16 10:44:35 UTC (rev 138403)
+++ community-x86_64/anything	2015-08-16 10:45:18 UTC (rev 138404)
@@ -1,3 +0,0 @@
-# Pass all events to our one handler script
-event=.*
-action=/etc/acpi/handler.sh %e

Copied: acpid/repos/community-x86_64/anything (from rev 138403, acpid/trunk/anything)
===================================================================
--- community-x86_64/anything	                        (rev 0)
+++ community-x86_64/anything	2015-08-16 10:45:18 UTC (rev 138404)
@@ -0,0 +1,3 @@
+# Pass all events to our one handler script
+event=.*
+action=/etc/acpi/handler.sh %e

Deleted: community-x86_64/handler.sh
===================================================================
--- community-x86_64/handler.sh	2015-08-16 10:44:35 UTC (rev 138403)
+++ community-x86_64/handler.sh	2015-08-16 10:45:18 UTC (rev 138404)
@@ -1,77 +0,0 @@
-#!/bin/bash
-# Default acpi script that takes an entry for all actions
-
-case "$1" in
-    button/power)
-        case "$2" in
-            PBTN|PWRF)
-                logger 'PowerButton pressed'
-                ;;
-            *)
-                logger "ACPI action undefined: $2"
-                ;;
-        esac
-        ;;
-    button/sleep)
-        case "$2" in
-            SLPB|SBTN)
-                logger 'SleepButton pressed'
-                ;;
-            *)
-                logger "ACPI action undefined: $2"
-                ;;
-        esac
-        ;;
-    ac_adapter)
-        case "$2" in
-            AC|ACAD|ADP0)
-                case "$4" in
-                    00000000)
-                        logger 'AC unpluged'
-                        ;;
-                    00000001)
-                        logger 'AC pluged'
-                        ;;
-                esac
-                ;;
-            *)
-                logger "ACPI action undefined: $2"
-                ;;
-        esac
-        ;;
-    battery)
-        case "$2" in
-            BAT0)
-                case "$4" in
-                    00000000)
-                        logger 'Battery online'
-                        ;;
-                    00000001)
-                        logger 'Battery offline'
-                        ;;
-                esac
-                ;;
-            CPU0)
-                ;;
-            *)  logger "ACPI action undefined: $2" ;;
-        esac
-        ;;
-    button/lid)
-        case "$3" in
-            close)
-                logger 'LID closed'
-                ;;
-            open)
-                logger 'LID opened'
-                ;;
-            *)
-                logger "ACPI action undefined: $3"
-                ;;
-    esac
-    ;;
-    *)
-        logger "ACPI group/action undefined: $1 / $2"
-        ;;
-esac
-
-# vim:set ts=4 sw=4 ft=sh et:

Copied: acpid/repos/community-x86_64/handler.sh (from rev 138403, acpid/trunk/handler.sh)
===================================================================
--- community-x86_64/handler.sh	                        (rev 0)
+++ community-x86_64/handler.sh	2015-08-16 10:45:18 UTC (rev 138404)
@@ -0,0 +1,77 @@
+#!/bin/bash
+# Default acpi script that takes an entry for all actions
+
+case "$1" in
+    button/power)
+        case "$2" in
+            PBTN|PWRF)
+                logger 'PowerButton pressed'
+                ;;
+            *)
+                logger "ACPI action undefined: $2"
+                ;;
+        esac
+        ;;
+    button/sleep)
+        case "$2" in
+            SLPB|SBTN)
+                logger 'SleepButton pressed'
+                ;;
+            *)
+                logger "ACPI action undefined: $2"
+                ;;
+        esac
+        ;;
+    ac_adapter)
+        case "$2" in
+            AC|ACAD|ADP0)
+                case "$4" in
+                    00000000)
+                        logger 'AC unpluged'
+                        ;;
+                    00000001)
+                        logger 'AC pluged'
+                        ;;
+                esac
+                ;;
+            *)
+                logger "ACPI action undefined: $2"
+                ;;
+        esac
+        ;;
+    battery)
+        case "$2" in
+            BAT0)
+                case "$4" in
+                    00000000)
+                        logger 'Battery online'
+                        ;;
+                    00000001)
+                        logger 'Battery offline'
+                        ;;
+                esac
+                ;;
+            CPU0)
+                ;;
+            *)  logger "ACPI action undefined: $2" ;;
+        esac
+        ;;
+    button/lid)
+        case "$3" in
+            close)
+                logger 'LID closed'
+                ;;
+            open)
+                logger 'LID opened'
+                ;;
+            *)
+                logger "ACPI action undefined: $3"
+                ;;
+    esac
+    ;;
+    *)
+        logger "ACPI group/action undefined: $1 / $2"
+        ;;
+esac
+
+# vim:set ts=4 sw=4 ft=sh et:

Copied: acpid/repos/community-x86_64/libc_compat.h (from rev 138403, acpid/trunk/libc_compat.h)
===================================================================
--- community-x86_64/libc_compat.h	                        (rev 0)
+++ community-x86_64/libc_compat.h	2015-08-16 10:45:18 UTC (rev 138404)
@@ -0,0 +1,40 @@
+/*
+ *  libc_compat.h - implement defs/macros missing from some libcs
+ *
+ *  Copyright (C) 1999-2000 Andrew Henroid
+ *  Copyright (C) 2001 Sun Microsystems
+ *  Portions Copyright (C) 2004 Tim Hockin (thockin at hockin.org)
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#ifndef LIBC_COMPAT_H__
+#define LIBC_COMPAT_H__
+
+/* Evaluate EXPRESSION, and repeat as long as it returns -1 with `errno'
+   set to EINTR. This macro is present on glibc/uclibc but may not be in other cases.  */
+
+#ifndef ____GLIBC__
+#ifndef TEMP_FAILURE_RETRY
+#define TEMP_FAILURE_RETRY(expression) \
+  (__extension__                                                             \
+    ({ long int __result;                                                    \
+       do __result = (long int) (expression);                                \
+       while (__result == -1L && errno == EINTR);                            \
+       __result; }))
+#endif
+#endif /* __GLIBC__ */
+
+#endif /* LIBC_COMPAT_H__ */



More information about the arch-commits mailing list