Rev | Line | |
---|
[927] | 1 | # Copyright 1999-2006 Gentoo Foundation
|
---|
[823] | 2 | # Distributed under the terms of the GNU General Public License v2
|
---|
| 3 | # $Id$
|
---|
| 4 |
|
---|
[927] | 5 | inherit eutils flag-o-matic
|
---|
| 6 |
|
---|
| 7 | DESCRIPTION="The rescue part of a program that creates emergency boot disks/CDs using your kernel, tools and modules."
|
---|
[823] | 8 | HOMEPAGE="http://www.mondorescue.org"
|
---|
| 9 | SRC_URI="ftp://ftp.mondorescue.org/src/${P}.tar.gz"
|
---|
| 10 | LICENSE="GPL-2"
|
---|
| 11 | SLOT="0"
|
---|
[927] | 12 | KEYWORDS="~x86 ia64 -*"
|
---|
[823] | 13 | DEPEND="virtual/libc"
|
---|
| 14 | RDEPEND=">=app-arch/bzip2-0.9
|
---|
| 15 | sys-devel/binutils"
|
---|
| 16 |
|
---|
| 17 | src_unpack() {
|
---|
| 18 | unpack ${A} || die "Failed to unpack ${A}"
|
---|
[927] | 19 | make oldconfig > /dev/null
|
---|
[823] | 20 | }
|
---|
| 21 |
|
---|
[927] | 22 | src_compile() {
|
---|
| 23 | # work around broken ass powerpc compilers
|
---|
| 24 | emake EXTRA_CFLAGS="${CFLAGS}" busybox || die "build failed"
|
---|
| 25 | }
|
---|
| 26 |
|
---|
[823] | 27 | src_install() {
|
---|
[927] | 28 | # bundle up the symlink files for use later
|
---|
| 29 | emake PREFIX="/usr/share/mindi/rootfs/bin" install || die
|
---|
| 30 | rm _install/bin/busybox
|
---|
| 31 | tar cf busybox-links.tar -C _install . || die
|
---|
| 32 | insinto /usr/share/mindi
|
---|
| 33 | doins busybox-links.tar || die
|
---|
[823] | 34 | }
|
---|
| 35 |
|
---|
[927] | 36 | pkg_preinst() {
|
---|
| 37 | mv "${D}"/usr/share/mindi/busybox-links.tar "${T}"/ || die
|
---|
| 38 | }
|
---|
| 39 |
|
---|
[823] | 40 | pkg_postinst() {
|
---|
[927] | 41 | cd "${T}" || die
|
---|
| 42 | mkdir _install
|
---|
| 43 | tar xf busybox-links.tar -C _install || die
|
---|
| 44 | cp -vpPR _install/* /usr/share/mindi/rootfs/bin || die "copying links for ${x} failed"
|
---|
| 45 |
|
---|
[823] | 46 | echo
|
---|
| 47 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.