summaryrefslogtreecommitdiff
blob: 926f12dfa5a683c505817284fa836ee296e7b27a (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/convertfs/convertfs-20020318-r1.ebuild,v 1.4 2004/07/15 03:36:31 agriffis Exp $

inherit eutils

DESCRIPTION="A tool to convert filesystems in-place"
HOMEPAGE="http://tzukanov.narod.ru/convertfs/"
SRC_URI="http://tzukanov.narod.ru/convertfs/convertfs-18mar2002.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc"
IUSE=""

DEPEND="virtual/libc"

S=${WORKDIR}/${PN}

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/convertfs-20020318-convertfs-paths.patch
	cd ${S}
	sed -i Makefile -e "s/^\(CFLAGS=\).*\$/\1${CFLAGS}/"
}

src_compile() {
	emake devclone devremap prepindex || die
}

src_install() {
	into /
	dosbin convertfs_dumb devclone devremap prepindex contrib/convertfs || die
}

pkg_postinst() {
	ewarn "This tool is HIGHLY DANGEROUS. Read the homepage before using it!"
	ewarn "    ${HOMEPAGE}"
	ewarn "You have been warned!"
}