blob: db6610af350dc5b6dcb0c5d88e7724dddfe8df49 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/lkcdutils/lkcdutils-4.1.1.ebuild,v 1.1 2004/04/18 03:53:40 randy Exp $
DESCRIPTION="Linux Kernel Crash Dumps (LKCD) Utilities"
SRC_URI="http://lkcd.sourceforge.net/download/OLD/4.1.1/lkcdutils/lkcdutils-4.1-1.src.rpm
mirror://gentoo/lkcdutils-4.1-savedump.tar.gz
mirror://gentoo/lkcdutils-4.1-dhv8.tar.gz"
HOMEPAGE="http://lkcd.sourceforge.net/ http://oss.software.ibm.com/developerworks/opensource/linux390/june2003_recommended.shtml"
LICENSE="GPL-2"
KEYWORDS="s390"
SLOT="0"
DEPEND="app-arch/rpm2targz
dev-util/byacc"
MY_P=${P/4.1.1/4.1}
S="${WORKDIR}/${MY_P}"
src_unpack() {
ebegin "Unpacking lkcd distribution..."
# This is the same as using rpm2targz then extracting 'cept that
# it's faster, less work, and less hard disk space. rpmoffset is
# provided by the rpm2targz package.
i="${DISTDIR}/${PN}-4.1-1.src.rpm"
dd ibs=`rpmoffset < ${i}` skip=1 if=$i 2>/dev/null \
| gzip -dc | cpio -idmu 2>/dev/null && tar xzf ${PN}-4.1-1.tar.gz
eend ${?}
assert "Failed to extract lkcd distribution..."
unpack lkcdutils-4.1-savedump.tar.gz
unpack lkcdutils-4.1-dhv8.tar.gz
cd ${S}
epatch ../lkcdutils-4.1-savedump.diff
epatch ../lkcdutils-4.1-dhv8.diff
}
src_compile() {
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--datadir=/usr/share \
--sysconfdir=/etc \
--bfd_version=2.14.90 || die "configure failed"
make || die "make failed"
}
src_install() {
make install ROOT=${D} || die "install failed"
# not needed on s390
rm -rf ${D}/usr/share/sial \
${D}/usr/lib/libsial.a \
${D}/usr/include/sial_api.h \
${D}/usr/include/lkcd/asm/lc_dis.h \
${D}/etc \
${D}/sbin/lkcd* \
${D}/usr/man/man/lkcd*
# broken configure script...
mv -f ${D}/usr/man ${D}/usr/share/man
prepall
}
|