Commits

seenxu  committed 411c439

partclone stable release

  • Participants
  • Parent commits f702253

Comments (0)

Files changed (2)

File sys-block/partclone/Manifest

+DIST partclone-0.2.16.tar.gz 394980 RMD160 c8e21a924ad93b80f6fc14ac08c70df0299fbc5f SHA1 c043e8c0deacc181aa0e532af49c915bc1cc63f0 SHA256 a8ab3f7bad7e1d7798fa639596cad94367a2005e407422405a88402c6ed1d72c

File sys-block/partclone/partclone-0.2.16.ebuild

+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/0.2.16/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-1.41.4
+	fat? ( sys-fs/dosfstools )
+	ntfs? ( sys-fs/ntfsprogs )
+	hfs? ( sys-fs/hfsutils )
+	jfs? ( sys-fs/jfsutils )
+	reiserfs? ( sys-fs/progsreiserfs )
+	reiser4? ( sys-fs/reiser4progs )
+	xfs? ( <=sys-fs/xfsprogs-3 )"
+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 xfs && myconf="${myconf} --enable-xfs"
+	use xfs && 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
+}
+