Contents of /branches/magellan-next/core/hwinfo/hwinfo-17.3-r1.smage2
Parent Directory | Revision Log
Revision 6196 -
(show annotations)
(download)
Thu Aug 19 20:09:03 2010 UTC (14 years, 1 month ago) by niro
File size: 1412 byte(s)
Thu Aug 19 20:09:03 2010 UTC (14 years, 1 month ago) by niro
File size: 1412 byte(s)
auto added: ver bump to 17.3-r1
1 | # $Id: hwinfo-16.10-r1.smage2 3664 2009-10-29 01:10:01Z niro $ |
2 | |
3 | PNAME="hwinfo" |
4 | PVER="17.3" |
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/hal-0.5.14 |
16 | >= sys-apps/dbus-1.3 |
17 | >= sys-fs/udev-161" |
18 | |
19 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 | |
22 | sminclude mtools |
23 | |
24 | SRC_URI=( |
25 | http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${PNAME}-16.10-debian-all-1.patch |
28 | mirror://${PNAME}/${PNAME}-13.41-remove-sbin.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 | |
47 | src_compile() |
48 | { |
49 | cd ${SRCDIR} |
50 | mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) || die |
51 | } |
52 | |
53 | src_install() |
54 | { |
55 | cd ${SRCDIR} |
56 | mmake DESTDIR=${BINDIR} LIBDIR=/usr/$(mlibdir) install || die |
57 | mkeepdir /var/lib/hardware/udi || die |
58 | |
59 | minstallman doc/hwinfo.8 || die |
60 | minstalldocs Changelog COPYING README VERSION || die |
61 | } |