Contents of /trunk/core/hwsetup/hwsetup-1.2.7-r4.smage2
Parent Directory | Revision Log
Revision 1353 -
(show annotations)
(download)
Sun May 3 19:16:25 2009 UTC (15 years, 4 months ago) by niro
File size: 1546 byte(s)
Sun May 3 19:16:25 2009 UTC (15 years, 4 months ago) by niro
File size: 1546 byte(s)
-fixed linking issues with glibc-2.9
1 | # $Id$ |
2 | |
3 | PNAME="hwsetup" |
4 | PLEVEL="7" |
5 | PVER="1.2.${PLEVEL}" |
6 | PBUILD="r4" |
7 | |
8 | PCATEGORIE="sys-apps" |
9 | STATE="unstable" |
10 | |
11 | DESCRIPTION="hwsetup" |
12 | HOMEPAGE="http://www.knopper.net" |
13 | |
14 | DEPEND=">= virtual/glibc" |
15 | SDEPEND=">= sys-apps/kudzu-1.2" |
16 | |
17 | SRCFILE="${PNAME}_${PVER/.${PLEVEL}/}-${PLEVEL}.tar.gz" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/.${PLEVEL}/}" |
19 | |
20 | sminclude mtools |
21 | |
22 | SRC_URI=( |
23 | http://debian-knoppix.alioth.debian.org/sources/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-1.2-magellan.patch |
26 | mirror://${PNAME}/${PNAME}-1.2-xorg.patch |
27 | mirror://${PNAME}/${PNAME}-1.2-lresolv.patch |
28 | ) |
29 | |
30 | UP2DATE="updatecmd http://debian-knoppix.alioth.debian.org/sources | grep ${PNAME}.*.tar | sed -n 's/.*_\(.*\).tar.*/\1/;s/-/./g;$ p'" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | mpatch ${PNAME}-1.2-magellan.patch || die |
37 | mpatch ${PNAME}-1.2-xorg.patch || die |
38 | |
39 | # fix linking issues with newer glibc (>=2.9) |
40 | # gcc -I/usr/include/kudzu -DBLACKLIST -Wall -fPIC -O2 -s -o hwsetup hwsetup.c -lkudzu -lpci |
41 | # /usr/lib64/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../lib64/libpci.a(names-net.o): In function `pci_id_net_lookup': |
42 | # names-net.c:(.text+0x12a): undefined reference to `__res_query' |
43 | # collect2: ld returned 1 exit status |
44 | # make: *** [hwsetup] Error 1 |
45 | mpatch ${PNAME}-1.2-lresolv.patch || die |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR} |
51 | mmake || die |
52 | } |
53 | |
54 | src_install() |
55 | { |
56 | cd ${SRCDIR} |
57 | |
58 | minstall DESTDIR=${BINDIR} PREFIX=/usr MANDIR=/usr/share/man || die |
59 | |
60 | # required for the magellan_sysconfig_path patch |
61 | mkeepdir /etc/sysconfig/hwsetup || die |
62 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |