Magellan Linux

Annotation of /smage/trunk/core/hwinfo/hwinfo-18.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 957 - (hide annotations) (download)
Fri Dec 10 17:59:43 2010 UTC (13 years, 5 months ago) by niro
File size: 2249 byte(s)
auto added: ver bump to 18.1-r1
1 niro 957 # $Id: hwinfo-17.0-r1.smage2 509 2010-05-07 22:12:57Z niro $
2    
3     PNAME="hwinfo"
4     PVER="18.1"
5     PBUILD="r1"
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     MCORE_ONLY_KEEP="usr/sbin/hwinfo usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.* var/lib/hardware"
20     sminclude mtools mcore-split
21    
22     SRC_URI=(
23     http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE}
24     mirror://${PNAME}/${SRCFILE}
25     mirror://${PNAME}/${PNAME}-16.10-debian-all-1.patch
26     mirror://${PNAME}/${PNAME}-13.41-remove-sbin.patch
27     mirror://${PNAME}/${PNAME}-${PVER}-add-intel-pineview-x11-drivers-i386.patch
28     mirror://${PNAME}/${PNAME}-${PVER}-use-r128-module-for-ati-rage-cards-i386.patch
29     mirror://${PNAME}/${PNAME}-${PVER}-use-mach64-module-for-ati-mach64-cards-i386.patch
30     mirror://${PNAME}/${PNAME}-${PVER}-add-openchrome-x11-drivers-i386.patch
31     )
32    
33     #UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/h/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).orig.*/\1/;$ p'"
34     # fake - taken newest from suse
35     UP2DATE="echo ${PVER}"
36    
37     src_prepare()
38     {
39     munpack ${SRCFILE} || die
40     cd ${SRCDIR}
41    
42     # apply debian patches
43     mpatch ${PNAME}-16.10-debian-all-1.patch || die
44    
45     # remove empty $(destdir)/sbin from makefile
46     mpatch ${PNAME}-13.41-remove-sbin.patch || die
47    
48     # add intel pineview to known x11 drivers
49     mpatch -Np1 ${PNAME}-${PVER}-add-intel-pineview-x11-drivers-i386.patch
50    
51     # use r128 module for all ati rage cards
52     mpatch -Np1 ${PNAME}-${PVER}-use-r128-module-for-ati-rage-cards-i386.patch
53    
54     # use mach64 module for all ati mach64 cards
55     mpatch -Np1 ${PNAME}-${PVER}-use-mach64-module-for-ati-mach64-cards-i386.patch || die
56    
57     # add a bunch of via drivers to known x11 drivers
58     mpatch -Np1 ${PNAME}-${PVER}-add-openchrome-x11-drivers-i386.patch || die
59     }
60    
61     src_compile()
62     {
63     cd ${SRCDIR}
64     mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) || die
65     }
66    
67     src_install()
68     {
69     cd ${SRCDIR}
70     mmake DESTDIR=${BINDIR} install || die
71     mkeepdir /var/lib/hardware/udi || die
72    
73     minstallman doc/hwinfo.8 || die
74     minstalldocs Changelog COPYING README VERSION || die
75     }