Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id