Contents of /trunk/extras/hwinfo/hwinfo-21.50-r1.smage2
Parent Directory | Revision Log
Revision 30234 -
(show annotations)
(download)
Wed Nov 8 10:39:39 2017 UTC (6 years, 10 months ago) by niro
File size: 2430 byte(s)
Wed Nov 8 10:39:39 2017 UTC (6 years, 10 months ago) by niro
File size: 2430 byte(s)
auto added: ver bump to 21.50-r1
1 | # $Id$ |
2 | |
3 | PNAME="hwinfo" |
4 | PVER="21.50" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-apps" |
8 | |
9 | DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux." |
10 | HOMEPAGE="http://www.suse.com/" |
11 | |
12 | DEPEND=">= sys-libs/libx86emu-1.1" |
13 | SDEPEND=">= sys-apps/dbus-1.10" |
14 | |
15 | SRCFILE="${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mtools |
19 | |
20 | SRC_URI=( |
21 | https://github.com/openSUSE/${PNAME}/archive/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch |
24 | mirror://${PNAME}/${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch |
25 | mirror://${PNAME}/${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch |
26 | mirror://${PNAME}/${PNAME}-18.1-add-openchrome-x11-drivers-i386.patch |
27 | mirror://${PNAME}/${PNAME}-18.5-no-xen.patch |
28 | mirror://${PNAME}/${PNAME}-18.5-tiocgdev-undefined.patch |
29 | mirror://${PNAME}/${PNAME}-21.23-add-intel-haswell-ult-intefrated-graphic-controller-x11-drivers-i386-amd64.patch |
30 | ) |
31 | |
32 | UP2SEPERATOR="\/" |
33 | UP2DATE="updatecmd https://github.com/openSUSE/${PNAME}/releases | highesttarball gz" |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | cd ${SRCDIR} |
39 | |
40 | # disable xen checks which are broken atm |
41 | mpatch ${PNAME}-18.5-no-xen.patch || die |
42 | |
43 | # TIOCGDEV isn't supported in the mainline kernel |
44 | mpatch ${PNAME}-18.5-tiocgdev-undefined.patch || die |
45 | |
46 | # add intel pineview to known x11 drivers |
47 | mpatch -Np1 ${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch |
48 | |
49 | # use r128 module for all ati rage cards |
50 | mpatch -Np1 ${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch |
51 | |
52 | # use mach64 module for all ati mach64 cards |
53 | mpatch -Np1 ${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch || die |
54 | |
55 | # add a bunch of via drivers to known x11 drivers |
56 | mpatch -Np1 ${PNAME}-18.1-add-openchrome-x11-drivers-i386.patch || die |
57 | |
58 | # add intel haswell ult graphic support |
59 | mpatch -Np1 ${PNAME}-21.23-add-intel-haswell-ult-intefrated-graphic-controller-x11-drivers-i386-amd64.patch || die |
60 | |
61 | # add missing VERSION |
62 | echo "${PVER}" > ${SRCDIR}/VERSION || die |
63 | } |
64 | |
65 | src_compile() |
66 | { |
67 | cd ${SRCDIR} |
68 | mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) GIT2LOG=true || die |
69 | } |
70 | |
71 | src_install() |
72 | { |
73 | cd ${SRCDIR} |
74 | mmake DESTDIR=${BINDIR} LIBDIR=/usr/$(mlibdir) GIT2LOG=true install || die |
75 | mkeepdir /var/lib/hardware/udi || die |
76 | |
77 | minstallman doc/hwinfo.8 || die |
78 | minstalldocs Changelog COPYING README VERSION || die |
79 | |
80 | # broken Makefile, remove an empty dir |
81 | rmdir ${BINDIR}/sbin || die |
82 | } |