Added sys-block/partclone

This commit is contained in:
Stefan Reimer 2012-10-23 16:42:04 -07:00
parent de30dce5d1
commit 0b8617740a
2 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST partclone-0.2.48.tar.gz 417554 SHA256 039d07b61504861401ba0e525541c37c534b73db8e685b3757f220f78b96ecf9 SHA512 56ec261a0c6e37e429894a6b5ba12c251d719a01b85b048d8d9d99333fa6330fa8849c1b05a0248e3417dc54d773fcb1ddd4353c78358857a69790998d845214 WHIRLPOOL 6cc22c826bfcba9bb50fb6c6fe236a08b8d171fe1b22f6498297dcc08ada2070f7a5f14f7996435c4527a21f19f84e38f0e195613b55204e29f5696a625e2c8d

View File

@ -0,0 +1,62 @@
inherit eutils
DESCRIPTION="Partition cloning tool"
HOMEPAGE="http://partclone.org"
#SRC_URI="mirror://sourceforge/partclone/partclone_${PV}.tar.gz"
SRC_URI="http://downloads.sourceforge.net/project/partclone/stable/${PV}/partclone-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="xfs reiserfs reiser4 hfs fat ntfs jfs"
RDEPEND="${common_depends}
sys-fs/e2fsprogs
fat? ( sys-fs/dosfstools )
ntfs? ( sys-fs/ntfs3g )
hfs? ( sys-fs/hfsutils )
jfs? ( sys-fs/jfsutils )
reiserfs? ( sys-fs/progsreiserfs )
reiser4? ( sys-fs/reiser4progs )
xfs? ( sys-fs/xfsprogs )"
DEPEND=""
src_unpack()
{
unpack ${A}
#mv partclone partclone-${PV}
cd ${S}
}
src_compile()
{
local myconf
myconf="${myconf} --enable-extfs --enable-ncursesw"
use xfs && myconf="${myconf} --enable-xfs"
use reiserfs && myconf="${myconf} --enable-reiserfs"
use reiser4 && myconf="${myconf} --enable-reiser4"
use hfs && myconf="${myconf} --enable-hfsp"
use fat && myconf="${myconf} --enable-fat"
use ntfs && myconf="${myconf} --enable-ntfs"
use jfs && myconf="${myconf} --enable-jfs"
econf ${myconf} || die "econf failed"
emake || die "make failed"
}
src_install()
{
#emake install || die "make install failed"
#emake DIST_ROOT="${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
}