From 0b8617740a37dd6f6ca8c20f49da6398bd6f3ced Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Tue, 23 Oct 2012 16:42:04 -0700 Subject: [PATCH] Added sys-block/partclone --- sys-block/partclone/Manifest | 1 + sys-block/partclone/partclone-0.2.48.ebuild | 62 +++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 sys-block/partclone/Manifest create mode 100644 sys-block/partclone/partclone-0.2.48.ebuild diff --git a/sys-block/partclone/Manifest b/sys-block/partclone/Manifest new file mode 100644 index 0000000..8477ce4 --- /dev/null +++ b/sys-block/partclone/Manifest @@ -0,0 +1 @@ +DIST partclone-0.2.48.tar.gz 417554 SHA256 039d07b61504861401ba0e525541c37c534b73db8e685b3757f220f78b96ecf9 SHA512 56ec261a0c6e37e429894a6b5ba12c251d719a01b85b048d8d9d99333fa6330fa8849c1b05a0248e3417dc54d773fcb1ddd4353c78358857a69790998d845214 WHIRLPOOL 6cc22c826bfcba9bb50fb6c6fe236a08b8d171fe1b22f6498297dcc08ada2070f7a5f14f7996435c4527a21f19f84e38f0e195613b55204e29f5696a625e2c8d diff --git a/sys-block/partclone/partclone-0.2.48.ebuild b/sys-block/partclone/partclone-0.2.48.ebuild new file mode 100644 index 0000000..2ddd6f6 --- /dev/null +++ b/sys-block/partclone/partclone-0.2.48.ebuild @@ -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 +} +