blob: 8d8dd2e7c16ce5db7aa673e94d427bd6b43ff67c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/fenris/fenris-0.07m-r2.ebuild,v 1.7 2004/07/24 17:35:30 liquidx Exp $
inherit eutils
DESCRIPTION="Fenris is a tracer, GUI debugger, analyzer, partial decompiler and much more"
HOMEPAGE="http://razor.bindview.com/tools/fenris/"
# dev-snapshot: http://lcamtuf.coredump.cx/fenris/fenris.tgz (2004/01/08)
SRC_URI="mirror://gentoo/${P}-r1.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=">=sys-apps/portage-2.0.47-r10
sys-libs/libtermcap-compat
app-misc/screen
sys-libs/ncurses
dev-libs/openssl
virtual/os-headers
sys-devel/gdb"
RDEPEND="sys-apps/gawk"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/makefile.diff
epatch ${FILESDIR}/build.diff
epatch ${FILESDIR}/${P}-debian.patch
epatch ${FILESDIR}/${P}-noansiart.patch # disable ascii art
epatch ${FILESDIR}/${P}-dress.c.patch # update for latest binutils
epatch ${FILESDIR}/${P}-speedup.patch # to speed up makefile
epatch ${FILESDIR}/${P}-fnprints.patch # move fnprints to /etc/fenris
epatch ${FILESDIR}/${P}-nls.patch # allow build to run on non-ascii locales
cd ${S}/doc/man
sed -i 's:/etc/fnprints.dat:/etc/fenris/fnprints.dat:' -i *
}
src_compile() {
# We need to obtain libc version, this should be a reliable way :)
# because internal script doesn't detect libc version during the emerge
LIBC=`ls /lib/libc-* | awk -F- '{print $2}' | awk -F.so '{print $1}'`
make all CFLAGS="$CFLAGS" LIBCVER=${LIBC} || die
}
src_install() {
# We are doing make install by hand
cd ${S}
dodir /usr/share/fenris
# Man pages
doman doc/man/*
# Documents
dodir /usr/share/fenris/doc
insinto /usr/share/fenris/doc
doins doc/*
# Fingeprints
insinto /etc/fenris
doins fnprints.dat
dodir /etc/env.d
echo 'CONFIG_PROTECT_MASK="/etc/fenris"' > ${D}/etc/env.d/99fenris
# Executables
into /usr
dobin fenris fprints getfprints ragnarok fenris-bug \
ragsplit dress aegir nc-aegir spliter.pl
}
pkg_postinst() {
einfo "These new tools are installed in /usr/bin:"
einfo "fenris fprints getfprints ragnarok fenris-bug ragsplit "
einfo "dress aegir nc-aegir spliter.pl"
einfo "Please refer to the manpage for fenris for further information"
}
|