diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/hwinfo |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/hwinfo')
-rw-r--r-- | community/hwinfo/PKGBUILD | 32 | ||||
-rw-r--r-- | community/hwinfo/kbd.patch | 16 |
2 files changed, 48 insertions, 0 deletions
diff --git a/community/hwinfo/PKGBUILD b/community/hwinfo/PKGBUILD new file mode 100644 index 000000000..7b081488f --- /dev/null +++ b/community/hwinfo/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 36515 2011-01-03 19:26:37Z kchen $ +# Maintainer: Kaiting Chen <kaitocracy@gmail.com> +# Contributor: Gergely Imreh <imrehgATgmailDOTcom> +# Originally contributed by champus, madeye, Ranguvar and ninja_pt + +pkgname=hwinfo +pkgver=18.1 +_pkgver=$pkgver-3.5 +pkgrel=9 +pkgdesc='The hardware detection tool from openSUSE' +arch=('i686' 'x86_64') +url='http://www.opensuse.org/' +license=('GPL2') +depends=('perl' 'libx86emu') +makedepends=('sysfsutils' 'rpmextract' 'flex') +source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/$pkgname-$_pkgver.src.rpm" + 'kbd.patch') +md5sums=('17c2a703643d1f007859c5e743589bb8' + '1500ecfa26f6aaf4d7967eea74e86e5d') + +build() { + cd "${srcdir}" + rpmextract.sh "${pkgname}-${_pkgver}.src.rpm" + tar -xjf $pkgname-$pkgver.tar.bz2 + cd "${srcdir}/${pkgname}-${pkgver}" + +# Apply patch for custom ioctl + patch -p 0 < ../kbd.patch + + make -j1 LIBDIR=/usr/lib + make LIBDIR=/usr/lib DESTDIR=$pkgdir install +} diff --git a/community/hwinfo/kbd.patch b/community/hwinfo/kbd.patch new file mode 100644 index 000000000..b9dd67161 --- /dev/null +++ b/community/hwinfo/kbd.patch @@ -0,0 +1,16 @@ +--- src/hd/kbd.c.old 2010-03-15 23:37:52.000000000 +0800 ++++ src/hd/kbd.c 2010-03-22 10:50:58.000000000 +0800 +@@ -146,11 +146,13 @@ + } + + if(!dev && (fd = open(DEV_CONSOLE, O_RDWR | O_NONBLOCK | O_NOCTTY)) >= 0) { ++ /* Removing since TIOCGDEV is not supported by the mainline kernel + if(ioctl(fd, TIOCGDEV, &u) != -1) { + tty_major = (u >> 8) & 0xfff; + tty_minor = (u & 0xff) | ((u >> 12) & 0xfff00); + ADD2LOG(DEV_CONSOLE ": major %u, minor %u\n", tty_major, tty_minor); + } ++ */ + + if (0) + ; |