summaryrefslogtreecommitdiff
path: root/source/l/hal-info
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2010-05-19 08:58:23 +0000
committerEric Hameleers <alien@slackware.com>2018-05-31 22:43:05 +0200
commitb76270bf9e6dd375e495fec92140a79a79415d27 (patch)
tree3dbed78b2279bf9f14207a16dc634b90995cbd40 /source/l/hal-info
parent5a12e7c134274dba706667107d10d231517d3e05 (diff)
downloadcurrent-b76270bf9e6dd375e495fec92140a79a79415d27.tar.gz
Slackware 13.1slackware-13.1
Wed May 19 08:58:23 UTC 2010 Slackware 13.1 x86_64 stable is released! Lots of thanks are due -- see the RELEASE_NOTES and the rest of the ChangeLog for credits. The ISOs are on their way to replication, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. We are taking pre-orders now at store.slackware.com, and offering a discount if you sign up for a subscription. Consider picking up a copy to help support the project. Thanks again to the Slackware community for testing, contributing, and generally holding us to a high level of quality. :-) Enjoy!
Diffstat (limited to 'source/l/hal-info')
-rwxr-xr-xsource/l/hal-info/hal-info.SlackBuild26
-rw-r--r--source/l/hal-info/patches/quirk-LG_X110-keyboard.patch46
-rw-r--r--source/l/hal-info/patches/quirk-acer_aspire_hotkey.patch25
3 files changed, 86 insertions, 11 deletions
diff --git a/source/l/hal-info/hal-info.SlackBuild b/source/l/hal-info/hal-info.SlackBuild
index fa61d8be..5f527f58 100755
--- a/source/l/hal-info/hal-info.SlackBuild
+++ b/source/l/hal-info/hal-info.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
-# Copyright 2007, 2008 Robby Workman, Northport, AL, USA
-# Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2007-2010 Robby Workman, Northport, AL, USA
+# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,21 +22,21 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PRGNAM=hal-info
-VERSION=${VERSION:-20090716}
+PKGNAM=hal-info
+VERSION=${VERSION:-20091130}
ARCH=noarch
BUILD=${BUILD:-1}
CWD=$(pwd)
TMP=${TMP:-/tmp}
-PKG=$TMP/package-$PRGNAM
+PKG=$TMP/package-$PKGNAM
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP || exit 1
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* || exit 1
-cd $PRGNAM-$VERSION || exit 1
+rm -rf $PKGNAM-$VERSION
+tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1
+cd $PKGNAM-$VERSION || exit 1
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -44,6 +44,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Apply a couple of patches from git
+zcat $CWD/patches/quirk-LG_X110-keyboard.patch.gz | patch -p1 --verbose || exit 1
+zcat $CWD/patches/quirk-acer_aspire_hotkey.patch.gz | patch -p1 --verbose || exit 1
+
./configure \
--prefix=/usr \
--sysconfdir=/etc \
@@ -52,14 +56,14 @@ find . \
make || exit 1
make install DESTDIR=$PKG || exit 1
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
cp -a \
AUTHORS COPYING* HACKING INSTALL NEWS README* \
- $PKG/usr/doc/$PRGNAM-$VERSION
+ $PKG/usr/doc/$PKGNAM-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD.txz
+/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz
diff --git a/source/l/hal-info/patches/quirk-LG_X110-keyboard.patch b/source/l/hal-info/patches/quirk-LG_X110-keyboard.patch
new file mode 100644
index 00000000..330b8699
--- /dev/null
+++ b/source/l/hal-info/patches/quirk-LG_X110-keyboard.patch
@@ -0,0 +1,46 @@
+commit 1a3c7c28d028c0952404d6d45b58138849c09ff1
+Author: Ozan Çağlayan <ozan@pardus.org.tr>
+Date: Wed Dec 23 10:13:26 2009 +0200
+
+ Add keymap quirks for LG X110
+
+ The patch adds keyboard quirks for LG X110 (An MSI Wind clone) which has
+ the following DMI informations:
+
+ system.hardware.primary_video.product = 10158 (0x27ae) (int)
+ system.hardware.primary_video.vendor = 32902 (0x8086) (int)
+ system.hardware.product = 'X110-L.A7M3F3' (string)
+ system.hardware.serial = '812MSVJ025279' (string)
+ system.hardware.uuid = '00000000-0000-0000-0000-002185569235' (string)
+ system.hardware.vendor = 'LG Electronics' (string)
+ system.hardware.version = 'Ver.001' (string)
+
+ Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
+
+diff --git a/fdi/information/10freedesktop/30-keymap-misc.fdi b/fdi/information/10freedesktop/30-keymap-misc.fdi
+index c4e527e..39d71ed 100644
+--- a/fdi/information/10freedesktop/30-keymap-misc.fdi
++++ b/fdi/information/10freedesktop/30-keymap-misc.fdi
+@@ -103,6 +103,22 @@
+ </match>
+ </match>
+
++ <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" prefix="LG">
++ <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains="X110">
++ <append key="input.keymap.data" type="strlist">e020:mute</append> <!-- Fn-F9 Sound On/Off -->
++ <append key="input.keymap.data" type="strlist">e02e:volumedown</append> <!-- Fn-Left Volume down -->
++ <append key="input.keymap.data" type="strlist">e02f:search</append> <!-- Fn-F3 Search -->
++ <append key="input.keymap.data" type="strlist">e030:volumeup</append> <!-- Fn-Right Volume up -->
++ <append key="input.keymap.data" type="strlist">e031:battery</append> <!-- Fn-F10 Info -->
++ <append key="input.keymap.data" type="strlist">e033:suspend</append> <!-- Fn-F12 Hibernate -->
++ <append key="input.keymap.data" type="strlist">e05f:sleep</append> <!-- Fn-F4 Sleep -->
++ <append key="input.keymap.data" type="strlist">e064:f22</append> <!-- Fn-F5 Touchpad disable -->
++ <append key="input.keymap.data" type="strlist">e076:wlan</append> <!-- Fn-F6 satellite dish1 -->
++ <append key="input.keymap.data" type="strlist">e077:brightnessdown</append> <!-- Fn-Down Brightness down -->
++ <append key="input.keymap.data" type="strlist">e078:brightnessup</append> <!-- Fn-Up Brightness up -->
++ </match>
++ </match>
++
+ <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" string="MEDIONNB">
+ <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" prefix="A555">
+ <append key="input.keymap.data" type="strlist">63:www</append> <!-- N button -->
diff --git a/source/l/hal-info/patches/quirk-acer_aspire_hotkey.patch b/source/l/hal-info/patches/quirk-acer_aspire_hotkey.patch
new file mode 100644
index 00000000..390fc7fe
--- /dev/null
+++ b/source/l/hal-info/patches/quirk-acer_aspire_hotkey.patch
@@ -0,0 +1,25 @@
+commit 16e1c1921e089a4b53940b6b265fc72446d28254
+Author: Keng-Yu Lin <keng-yu.lin@canonical.com>
+Date: Wed Sep 16 15:08:05 2009 +0800
+
+ Add hotkey quirk for Acer Aspire One (AO531h/AO751h)
+
+ To prevent the brightness adjustment OSD from showing when disabling the bluetooth.
+
+ Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
+
+diff --git a/fdi/information/10freedesktop/30-keymap-acer.fdi b/fdi/information/10freedesktop/30-keymap-acer.fdi
+index a2cf8d8..4511bff 100644
+--- a/fdi/information/10freedesktop/30-keymap-acer.fdi
++++ b/fdi/information/10freedesktop/30-keymap-acer.fdi
+@@ -61,6 +61,10 @@
+ <append key="input.keymap.data" type="strlist">e012:prog2</append>
+ <append key="input.keymap.data" type="strlist">e059:bluetooth</append> <!-- Bluetooth (toggle) on-to-off -->
+ </match>
++ <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains_outof="AO751h;AO531h">
++ <remove key="input.keymap.data" type="strlist">e059:brightnessup</remove>
++ <append key="input.keymap.data" type="strlist">e059:bluetooth</append> <!-- Bluetooth (toggle) on-to-off -->
++ </match>
+ </match>
+ </match>
+ </device>