2011-11-19 20:13:51 +01:00
|
|
|
# Copyright 1999-2011 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
|
2011-12-03 21:16:15 +01:00
|
|
|
inherit autotools eutils
|
2010-05-09 10:36:20 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Partition cloning tool"
|
|
|
|
HOMEPAGE="http://partclone.org"
|
|
|
|
SRC_URI="mirror://sourceforge/partclone/partclone_${PV}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2011-12-03 21:16:15 +01:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="xfs reiserfs reiser4 hfsp fat ntfs jfs btrfs static mtrace"
|
2010-05-09 10:36:20 +02:00
|
|
|
|
2011-11-19 20:13:51 +01:00
|
|
|
DEPEND=">=sys-fs/e2fsprogs-1.41.4
|
2011-12-03 21:16:15 +01:00
|
|
|
xfs? ( sys-fs/xfsprogs )
|
2010-05-09 10:36:20 +02:00
|
|
|
reiserfs? ( sys-fs/progsreiserfs )
|
2011-12-03 21:16:15 +01:00
|
|
|
reiser4? ( >=sys-fs/reiser4progs-1.0.7-r1 )
|
|
|
|
hfsp? ( sys-fs/hfsutils )
|
|
|
|
fat? ( sys-fs/dosfstools )
|
|
|
|
ntfs? ( sys-fs/ntfs3g[-ntfsprogs]
|
|
|
|
sys-fs/ntfsprogs )
|
|
|
|
jfs? ( >=sys-fs/jfsutils-1.1.15-r1 )
|
|
|
|
btrfs? ( sys-fs/btrfs-progs )
|
|
|
|
"
|
2011-11-19 20:13:51 +01:00
|
|
|
RDEPEND="${DEPEND}"
|
2010-05-09 10:36:20 +02:00
|
|
|
|
2011-12-03 21:16:15 +01:00
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}/partclone-0.2.36-xfs-progs-3.1.4-1.patch"
|
|
|
|
epatch "${FILESDIR}/partclone-0.2.36-progsreiserfs-0.3.1-1.patch"
|
|
|
|
epatch "${FILESDIR}/jfsclone-no-return.patch"
|
|
|
|
eautoreconf
|
|
|
|
}
|
2010-05-09 10:36:20 +02:00
|
|
|
|
2011-12-03 21:16:15 +01:00
|
|
|
src_configure() {
|
|
|
|
local myconf=""
|
|
|
|
use xfs && myconf="${myconf} --enable-xfs"
|
|
|
|
use xfs && myconf="${myconf} --enable-xfs"
|
|
|
|
use reiserfs && myconf="${myconf} --enable-reiserfs"
|
|
|
|
use reiser4 && myconf="${myconf} --enable-reiser4"
|
|
|
|
use hfsp && myconf="${myconf} --enable-hfsp"
|
|
|
|
use fat && myconf="${myconf} --enable-fat"
|
|
|
|
use ntfs && myconf="${myconf} --enable-ntfs"
|
|
|
|
use jfs && myconf="${myconf} --enable-jfs"
|
|
|
|
use btrfs && myconf="${myconf} --enable-btrfs"
|
|
|
|
use static && myconf="${myconf} --enable-static"
|
|
|
|
use mtrace && myconf="${myconf} --enable-mtrace"
|
|
|
|
econf ${myconf} \
|
|
|
|
--enable-extfs \
|
|
|
|
--enable-ncursesw
|
2010-05-09 10:36:20 +02:00
|
|
|
}
|
|
|
|
|
2011-12-03 21:16:15 +01:00
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" install || die "make install failed"
|
|
|
|
# cd ${S}/src
|
|
|
|
# dosbin partclone.dd partclone.restore partclone.chkimg
|
|
|
|
# dosbin partclone.extfs
|
|
|
|
# use xfs && dosbin partclone.xfs
|
|
|
|
# use reiserfs && dosbin partclone.reiserfs
|
|
|
|
# use reiser4 && dosbin partclone.reiser4
|
|
|
|
# use hfs && dosbin partclone.hfsp
|
|
|
|
# use fat && dosbin partclone.fat
|
|
|
|
# use ntfs && dosbin partclone.ntfs
|
|
|
|
# use ntfs && dosbin partclone.ntfsfixboot
|
2010-05-09 10:36:20 +02:00
|
|
|
}
|
|
|
|
|