Magellan Linux

Contents of /smage/trunk/core/hwinfo/hwinfo-18.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1841 - (show annotations) (download)
Mon Sep 26 16:58:25 2011 UTC (12 years, 7 months ago) by niro
File size: 2190 byte(s)
auto added: ver bump to 18.5-r1
1 # $Id$
2
3 PNAME="hwinfo"
4 PVER="18.5"
5 PBUILD="r1"
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.5"
14
15 SRCFILE="${PNAME}-${PVER}.tar.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 MCORE_ONLY_KEEP="usr/sbin/hwinfo usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.* var/lib/hardware"
19 sminclude mtools mcore-split
20
21 SRC_URI=(
22 http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch
25 mirror://${PNAME}/${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch
26 mirror://${PNAME}/${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch
27 mirror://${PNAME}/${PNAME}-18.1-add-openchrome-x11-drivers-i386.patch
28 mirror://${PNAME}/${PNAME}-18.5-no-xen.patch
29 mirror://${PNAME}/${PNAME}-18.5-tiocgdev-undefined.patch
30 )
31
32 #UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/h/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).orig.*/\1/;$ p'"
33 # fake - taken newest from suse
34 UP2DATE="echo ${PVER}"
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39 cd ${SRCDIR}
40
41 # disable xen checks which are broken atm
42 mpatch ${PNAME}-18.5-no-xen.patch || die
43
44 # TIOCGDEV isn't supported in the mainline kernel
45 mpatch ${PNAME}-18.5-tiocgdev-undefined.patch || die
46
47 # add intel pineview to known x11 drivers
48 mpatch -Np1 ${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch
49
50 # use r128 module for all ati rage cards
51 mpatch -Np1 ${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch
52
53 # use mach64 module for all ati mach64 cards
54 mpatch -Np1 ${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch || die
55
56 # add a bunch of via drivers to known x11 drivers
57 mpatch -Np1 ${PNAME}-18.1-add-openchrome-x11-drivers-i386.patch || die
58 }
59
60 src_compile()
61 {
62 cd ${SRCDIR}
63 mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) || die
64 }
65
66 mcore_generic_src_install()
67 {
68 cd ${SRCDIR}
69 mmake DESTDIR=${BINDIR} install || die
70 mkeepdir /var/lib/hardware/udi || die
71
72 minstallman doc/hwinfo.8 || die
73 minstalldocs Changelog COPYING README VERSION || die
74 }