Contents of /smage/branches/alx-0_6_0/core/hwinfo/hwinfo-18.1-r9.smage2
Parent Directory
|
Revision Log
Revision 3351 -
(show annotations)
(download)
Tue Mar 20 13:32:08 2012 UTC (12 years, 3 months ago) by niro
File size: 2555 byte(s)
Tue Mar 20 13:32:08 2012 UTC (12 years, 3 months ago) by niro
File size: 2555 byte(s)
-fixed typos
1 | # $Id$ |
2 | |
3 | PNAME="hwinfo" |
4 | PVER="18.1" |
5 | PBUILD="r9" |
6 | |
7 | PCATEGORIE="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.4" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
19 | ALX_ONLY_KEEP="etc/conf.d/hwsetup |
20 | usr/sbin/hwinfo |
21 | usr/sbin/hwsetup |
22 | sbin/ddcxinfo-knoppix |
23 | usr/$(mlibdir)/*.so |
24 | usr/$(mlibdir)/*.so.* |
25 | var/lib/hardware" |
26 | sminclude mtools alx-split |
27 | |
28 | EMHW_SVN_REV="1545" |
29 | |
30 | SRC_URI=( |
31 | http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/${SRCFILE} |
33 | mirror://${PNAME}/${PNAME}-16.10-debian-all-1.patch |
34 | mirror://${PNAME}/${PNAME}-13.41-remove-sbin.patch |
35 | mirror://${PNAME}/${PNAME}-${PVER}-add-intel-pineview-x11-drivers-i386.patch |
36 | mirror://${PNAME}/${PNAME}-${PVER}-use-r128-module-for-ati-rage-cards-i386.patch |
37 | mirror://${PNAME}/${PNAME}-${PVER}-use-mach64-module-for-ati-mach64-cards-i386.patch |
38 | mirror://${PNAME}/${PNAME}-${PVER}-add-unichrome-x11-drivers-i386.patch |
39 | mirror://${PNAME}/emulate-hwsetup.sh-${EMHW_SVN_REV} |
40 | mirror://${PNAME}/emulate-ddcxinfo-knoppix.sh |
41 | ) |
42 | |
43 | src_prepare() |
44 | { |
45 | munpack ${SRCFILE} || die |
46 | cd ${SRCDIR} |
47 | |
48 | # apply debian patches |
49 | mpatch -Np1 ${PNAME}-16.10-debian-all-1.patch || die |
50 | |
51 | # remove empty $(destdir)/sbin from makefile |
52 | mpatch -Np1 ${PNAME}-13.41-remove-sbin.patch || die |
53 | |
54 | # add intel pineview to known x11 drivers |
55 | mpatch -Np1 ${PNAME}-${PVER}-add-intel-pineview-x11-drivers-i386.patch |
56 | |
57 | # use r128 module for all ati rage cards |
58 | mpatch -Np1 ${PNAME}-${PVER}-use-r128-module-for-ati-rage-cards-i386.patch |
59 | |
60 | # use mach64 module for all ati mach64 cards |
61 | mpatch -Np1 ${PNAME}-${PVER}-use-mach64-module-for-ati-mach64-cards-i386.patch || die |
62 | |
63 | # add a bunch of via drivers to known x11 drivers using xf86-video-unichrome |
64 | mpatch -Np1 ${PNAME}-${PVER}-add-unichrome-x11-drivers-i386.patch || die |
65 | } |
66 | |
67 | src_compile() |
68 | { |
69 | cd ${SRCDIR} |
70 | mmake -j1 EXTRA_FLAGS="${CFLAGS}" || die |
71 | } |
72 | |
73 | alx_generic_src_install() |
74 | { |
75 | cd ${SRCDIR} |
76 | mmake DESTDIR=${BINDIR} install || die |
77 | |
78 | mkeepdir /var/lib/hardware/udi || die |
79 | mkeepdir /etc/conf.d/hwsetup || die |
80 | |
81 | # install hwsetup emulation script |
82 | minstalldir /usr/sbin || die |
83 | minstallexec -s emulate-hwsetup.sh-${EMHW_SVN_REV} /usr/sbin/hwsetup || die |
84 | |
85 | # install ddcxinfo emulation script |
86 | minstalldir /sbin || die |
87 | minstallexec -s emulate-ddcxinfo-knoppix.sh /sbin/ddcxinfo-knoppix || die |
88 | |
89 | minstallman doc/hwinfo.8 || die |
90 | minstalldocs Changelog COPYING README VERSION || die |
91 | } |