Contents of /smage/branches/alx-0_6_0/core/hwinfo/hwinfo-18.1-r7.smage2
Parent Directory | Revision Log
Revision 2006 -
(show annotations)
(download)
Mon May 9 15:18:37 2011 UTC (13 years ago) by niro
File size: 2338 byte(s)
Mon May 9 15:18:37 2011 UTC (13 years ago) by niro
File size: 2338 byte(s)
-use conf.d instead of the deprecated sysconfig
1 | # $Id$ |
2 | |
3 | PNAME="hwinfo" |
4 | PVER="18.1" |
5 | PBUILD="r7" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux." |
11 | HOMEPAGE="http://www.suse.com/" |
12 | |
13 | DEPEND=">= sys-libs/libx86emu-1.1" |
14 | SDEPEND=">= sys-apps/dbus-1.4" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
20 | ALX_ONLY_KEEP="etc/conf.d/hwsetup |
21 | usr/sbin/hwinfo |
22 | usr/sbin/hwsetup |
23 | usr/$(mlibdir)/*.so |
24 | usr/$(mlibdir)/*.so.* |
25 | var/lib/hardware" |
26 | sminclude mtools alx-split |
27 | |
28 | EMHW_SVN_REV="1320" |
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-openchrome-x11-drivers-i386.patch |
39 | mirror://${PNAME}/emulate-hwsetup.sh-${EMHW_SVN_REV} |
40 | ) |
41 | |
42 | src_prepare() |
43 | { |
44 | munpack ${SRCFILE} || die |
45 | cd ${SRCDIR} |
46 | |
47 | # apply debian patches |
48 | mpatch -Np1 ${PNAME}-16.10-debian-all-1.patch || die |
49 | |
50 | # remove empty $(destdir)/sbin from makefile |
51 | mpatch -Np1 ${PNAME}-13.41-remove-sbin.patch || die |
52 | |
53 | # add intel pineview to known x11 drivers |
54 | mpatch -Np1 ${PNAME}-${PVER}-add-intel-pineview-x11-drivers-i386.patch |
55 | |
56 | # use r128 module for all ati rage cards |
57 | mpatch -Np1 ${PNAME}-${PVER}-use-r128-module-for-ati-rage-cards-i386.patch |
58 | |
59 | # use mach64 module for all ati mach64 cards |
60 | mpatch -Np1 ${PNAME}-${PVER}-use-mach64-module-for-ati-mach64-cards-i386.patch || die |
61 | |
62 | # add a bunch of via drivers to known x11 drivers |
63 | mpatch -Np1 ${PNAME}-${PVER}-add-openchrome-x11-drivers-i386.patch || die |
64 | } |
65 | |
66 | src_compile() |
67 | { |
68 | cd ${SRCDIR} |
69 | mmake -j1 EXTRA_FLAGS="${CFLAGS}" || die |
70 | } |
71 | |
72 | alx_generic_src_install() |
73 | { |
74 | cd ${SRCDIR} |
75 | mmake DESTDIR=${BINDIR} install || die |
76 | |
77 | mkeepdir /var/lib/hardware/udi || die |
78 | mkeepdir /etc/conf.d/hwsetup || die |
79 | |
80 | # install hwsetup emulation script |
81 | minstalldir /usr/sbin || die |
82 | minstallexec -s emulate-hwsetup.sh-${EMHW_SVN_REV} /usr/sbin/hwsetup || die |
83 | |
84 | minstallman doc/hwinfo.8 || die |
85 | minstalldocs Changelog COPYING README VERSION || die |
86 | } |