Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 508 - (show annotations) (download)
Fri May 7 21:35:59 2010 UTC (13 years, 11 months ago) by niro
File size: 1564 byte(s)
auto added: ver bump to 17.0-r1
1 # $Id$
2
3 PNAME="hwinfo"
4 PVER="17.0"
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 >= sys-fs/sysfsutils-2
15 >= sys-apps/dbus-1.3"
16
17 SRCFILE="${PNAME}-${PVER}.tar.bz2"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 MCORE_ONLY_KEEP="usr/sbin/hwinfo"
21 sminclude mtools mcore-split
22
23 SRC_URI=(
24 http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${PNAME}-16.10-debian-all-1.patch
27 mirror://${PNAME}/${PNAME}-13.41-remove-sbin.patch
28 mirror://${PNAME}/${PNAME}-${PVER}-scsi-u8-fix.patch
29 )
30
31 #UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/h/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).orig.*/\1/;$ p'"
32 # fake - taken newest from suse
33 UP2DATE="echo ${PVER}"
34
35 src_prepare()
36 {
37 munpack ${SRCFILE} || die
38 cd ${SRCDIR}
39
40 # apply debian patches
41 mpatch ${PNAME}-16.10-debian-all-1.patch || die
42
43 # remove empty $(destdir)/sbin from makefile
44 mpatch ${PNAME}-13.41-remove-sbin.patch || die
45
46 # fix build issues with newer linux-headers
47 # see: http://lists.busybox.net/pipermail/buildroot/2009-December/030773.html
48 mpatch ${PNAME}-${PVER}-scsi-u8-fix.patch || die
49 }
50
51 src_compile()
52 {
53 cd ${SRCDIR}
54 mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) || die
55 }
56
57 src_install()
58 {
59 cd ${SRCDIR}
60 mmake DESTDIR=${BINDIR} install || die
61 mkeepdir /var/lib/hardware/udi || die
62
63 minstallman doc/hwinfo.8 || die
64 minstalldocs Changelog COPYING README VERSION || die
65 }

Properties

Name Value
svn:keywords Id