1 |
xmw 10/08/24 14:29:29 |
2 |
|
3 |
Added: ChangeLog exmap-0.10.ebuild metadata.xml |
4 |
Log: |
5 |
Initial comit for exmap |
6 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-util/exmap/ChangeLog |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/exmap/ChangeLog?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/exmap/ChangeLog?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
# ChangeLog for dev-util/exmap |
17 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
18 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/exmap/ChangeLog,v 1.1 2010/08/24 14:29:29 xmw Exp $ |
19 |
|
20 |
*exmap-0.10 (24 Aug 2010) |
21 |
|
22 |
24 Aug 2010; Michael Weber (xmw) <xmw@g.o> +exmap-0.10.ebuild, |
23 |
+files/exmap-0.10-as-needed.patch, +files/exmap-0.10-fix64bit.patch, |
24 |
+files/exmap-0.10-gcc.patch, +files/exmap-0.10-gcc45.patch, |
25 |
+files/exmap-0.10-kernel.patch, +files/exmap-0.10-makefiles.patch, |
26 |
+metadata.xml: |
27 |
Initial commit for exmap. Fixes bug #158382, thanks to Paul Pacheco and |
28 |
all the other contributors there. |
29 |
|
30 |
|
31 |
|
32 |
|
33 |
1.1 dev-util/exmap/exmap-0.10.ebuild |
34 |
|
35 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/exmap/exmap-0.10.ebuild?rev=1.1&view=markup |
36 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/exmap/exmap-0.10.ebuild?rev=1.1&content-type=text/plain |
37 |
|
38 |
Index: exmap-0.10.ebuild |
39 |
=================================================================== |
40 |
# Copyright 1999-2010 Gentoo Foundation |
41 |
# Distributed under the terms of the GNU General Public License v2 |
42 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/exmap/exmap-0.10.ebuild,v 1.1 2010/08/24 14:29:29 xmw Exp $ |
43 |
|
44 |
EAPI=2 |
45 |
|
46 |
inherit eutils linux-mod |
47 |
|
48 |
DESCRIPTION="A memory analysis kernel module with userland tool" |
49 |
HOMEPAGE="http://www.berthels.co.uk/exmap/" |
50 |
SRC_URI="http://www.berthels.co.uk/${PN}/download/${P}.tgz" |
51 |
|
52 |
LICENSE="GPL-2" |
53 |
SLOT="0" |
54 |
KEYWORDS="~amd64 ~x86" |
55 |
IUSE="gtk" |
56 |
|
57 |
RDEPEND="dev-libs/libpcre |
58 |
gtk? ( x11-libs/gtk+:2 )" |
59 |
DEPEND="${RDEPEND} |
60 |
dev-libs/boost |
61 |
dev-util/pkgconfig" |
62 |
|
63 |
MODULE_NAMES="exmap(misc:${S}/kernel)" |
64 |
BUILD_TARGETS="clean kernel_modules" |
65 |
|
66 |
src_prepare() { |
67 |
# patch find_task_by_pid to pid_task and &proc_root to NULL |
68 |
epatch "${FILESDIR}/${P}-kernel.patch" |
69 |
|
70 |
# use $(MAKE), remove -g on CXXFLAGS, clean up CXX/LD invocations |
71 |
epatch "${FILESDIR}/${P}-makefiles.patch" |
72 |
|
73 |
# somthing strange between linux-mod supplied ARCH and old kernels |
74 |
# which leads to arch/x86/Makefile: file/dir x86 not found |
75 |
if kernel_is lt 2 6 25 ; then |
76 |
sed -i -e 's:\$(MAKE):unset ARCH ; \$(MAKE):' kernel/Makefile || die |
77 |
fi |
78 |
|
79 |
# new gcc include behavior |
80 |
epatch "${FILESDIR}/${P}-gcc.patch" |
81 |
|
82 |
# gcc4.5 fails on return false as std::string |
83 |
epatch "${FILESDIR}/${P}-gcc45.patch" |
84 |
|
85 |
# fix for 64bit from http://www.kdedevelopers.org/node/4166 |
86 |
epatch "${FILESDIR}/${P}-fix64bit.patch" |
87 |
|
88 |
# fix underlinking with -Wl,--as-needed |
89 |
epatch "${FILESDIR}/${P}-as-needed.patch" |
90 |
|
91 |
rm -v src/{*.so,munged-ls-threeloads,prelinked-amule} || die |
92 |
} |
93 |
|
94 |
src_compile() { |
95 |
export KERNEL_DIR |
96 |
linux-mod_src_compile |
97 |
|
98 |
emake CXX="$(tc-getCXX)" LD="$(tc-getLD)" -C jutil || die |
99 |
emake CXX="$(tc-getCXX)" LD="$(tc-getLD)" -C src $(use gtk || echo exmtool) || die |
100 |
} |
101 |
|
102 |
src_install() { |
103 |
linux-mod_src_install |
104 |
|
105 |
dobin src/exmtool || die |
106 |
use gtk && { dobin src/gexmap || die ; } |
107 |
dodoc TODO README || die |
108 |
} |
109 |
|
110 |
pkg_postinst() { |
111 |
linux-mod_pkg_postinst |
112 |
|
113 |
elog "Please load the exmap kernel module before running exmtool or gexmap." |
114 |
} |
115 |
|
116 |
|
117 |
|
118 |
1.1 dev-util/exmap/metadata.xml |
119 |
|
120 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/exmap/metadata.xml?rev=1.1&view=markup |
121 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/exmap/metadata.xml?rev=1.1&content-type=text/plain |
122 |
|
123 |
Index: metadata.xml |
124 |
=================================================================== |
125 |
<?xml version="1.0" encoding="UTF-8"?> |
126 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
127 |
<pkgmetadata> |
128 |
<herd>no-herd</herd> |
129 |
<maintainer> |
130 |
<email>xmw@g.o</email> |
131 |
<name>Michael Weber (xmw)</name> |
132 |
</maintainer> |
133 |
</pkgmetadata> |