Contents of /smage/trunk/core/hwinfo/hwinfo-19.1-r1.smage2
Parent Directory | Revision Log
Revision 3860 -
(show annotations)
(download)
Thu Jul 19 16:11:43 2012 UTC (11 years, 10 months ago) by niro
File size: 2806 byte(s)
Thu Jul 19 16:11:43 2012 UTC (11 years, 10 months ago) by niro
File size: 2806 byte(s)
auto added: ver bump to 19.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="hwinfo" |
4 | PVER="19.1" |
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.5" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | ALX_PKG_KEEP="etc/conf.d/hwsetup |
19 | usr/sbin/hwinfo |
20 | usr/sbin/hwsetup |
21 | usr/sbin/ddcxinfo-knoppix |
22 | usr/$(mlibdir)/*.so |
23 | usr/$(mlibdir)/*.so.* |
24 | var/lib/hardware" |
25 | sminclude mtools alx-split |
26 | |
27 | EMHW_SVN_REV="1545" |
28 | EDDCX_REV="1.3" |
29 | |
30 | SRC_URI=( |
31 | http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/${SRCFILE} |
33 | mirror://${PNAME}/${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch |
34 | mirror://${PNAME}/${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch |
35 | mirror://${PNAME}/${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch |
36 | mirror://${PNAME}/${PNAME}-18.1-add-unichrome-x11-drivers-i386.patch |
37 | mirror://${PNAME}/${PNAME}-18.5-no-xen.patch |
38 | mirror://${PNAME}/${PNAME}-18.5-tiocgdev-undefined.patch |
39 | mirror://${PNAME}/emulate-hwsetup.sh-${EMHW_SVN_REV} |
40 | mirror://${PNAME}/emulate-ddcxinfo-knoppix.sh-${EDDCX_REV} |
41 | ) |
42 | |
43 | #UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/h/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).orig.*/\1/;$ p'" |
44 | # fake - taken newest from suse |
45 | UP2DATE="echo ${PVER}" |
46 | |
47 | src_prepare() |
48 | { |
49 | munpack ${SRCFILE} || die |
50 | cd ${SRCDIR} |
51 | |
52 | # disable xen checks which are broken atm |
53 | mpatch ${PNAME}-18.5-no-xen.patch || die |
54 | |
55 | # TIOCGDEV isn't supported in the mainline kernel |
56 | mpatch ${PNAME}-18.5-tiocgdev-undefined.patch || die |
57 | |
58 | # add intel pineview to known x11 drivers |
59 | mpatch -Np1 ${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch |
60 | |
61 | # use r128 module for all ati rage cards |
62 | mpatch -Np1 ${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch |
63 | |
64 | # use mach64 module for all ati mach64 cards |
65 | mpatch -Np1 ${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch || die |
66 | |
67 | # add a bunch of via drivers to known x11 drivers using xf86-video-unichrome |
68 | mpatch -Np1 ${PNAME}-18.1-add-unichrome-x11-drivers-i386.patch || die |
69 | } |
70 | |
71 | src_compile() |
72 | { |
73 | cd ${SRCDIR} |
74 | mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) || die |
75 | } |
76 | |
77 | src_install() |
78 | { |
79 | cd ${SRCDIR} |
80 | mmake DESTDIR=${BINDIR} LIBDIR=/usr/$(mlibdir) install || die |
81 | mkeepdir /var/lib/hardware/udi || die |
82 | |
83 | minstallman doc/hwinfo.8 || die |
84 | minstalldocs Changelog COPYING README VERSION || die |
85 | |
86 | # broken Makefile, remove an empty dir |
87 | rmdir ${BINDIR}/sbin || die |
88 | |
89 | # install hwsetup emulation script |
90 | minstalldir /usr/sbin || die |
91 | minstallexec -s emulate-hwsetup.sh-${EMHW_SVN_REV} /usr/sbin/hwsetup || die |
92 | |
93 | # install ddcxinfo emulation script |
94 | minstalldir /usr/sbin || die |
95 | minstallexec -s emulate-ddcxinfo-knoppix.sh-${EDDCX_REV} /usr/sbin/ddcxinfo-knoppix || die |
96 | } |