Gentoo Archives: gentoo-commits

From: Samuel Bernardo <samuelbernardo.mail@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/ssnb:master commit in: sys-fs/vmfs-tools/files/, sys-fs/vmfs-tools/, sys-block/partclone/
Date: Sat, 30 Apr 2016 15:00:20
Message-Id: 1462028358.c21285bb28d87bc7190b935456c1a9afd8b1fc03.samuelbernardo@gentoo
1 commit: c21285bb28d87bc7190b935456c1a9afd8b1fc03
2 Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
3 AuthorDate: Sat Apr 30 14:59:18 2016 +0000
4 Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
5 CommitDate: Sat Apr 30 14:59:18 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=c21285bb
7
8 partclone and vmfs-tools update (already tested and working)
9
10 sys-block/partclone/Manifest | 5 ++
11 sys-block/partclone/partclone-0.2.69.ebuild | 79 +++++++++++++++++++
12 sys-block/partclone/partclone-0.2.88.ebuild | 92 ++++++++++++++++++++++
13 sys-block/partclone/partclone-9999.ebuild | 68 ++++++++++++++++
14 sys-fs/vmfs-tools/Manifest | 1 +
15 .../files/vmfs-tools-0.2.5-buildsystem.patch | 43 ++++++++++
16 sys-fs/vmfs-tools/metadata.xml | 10 +++
17 sys-fs/vmfs-tools/vmfs-tools-0.2.5.ebuild | 31 ++++++++
18 8 files changed, 329 insertions(+)
19
20 diff --git a/sys-block/partclone/Manifest b/sys-block/partclone/Manifest
21 new file mode 100644
22 index 0000000..6ffd7e7
23 --- /dev/null
24 +++ b/sys-block/partclone/Manifest
25 @@ -0,0 +1,5 @@
26 +DIST partclone-0.2.69.tar.gz 566531 SHA256 2248b1e0387e9d44c45be091dd3fb29e2f0d079f42023b713e6cc19b54587f55 SHA512 70c5056fe31fbe1099e0f9603efa35ea7729d1af9efab692493a8e3e93b64c4b23c69d943185c62b4574089ed1320aedf67b93fab93c212e048eaaefb0905847 WHIRLPOOL ae33f335e69d7eba1a85a741705fbb93f300da963a9c0871980d3c0971035692c1583f6bb3976ddb145d5d61315e2c0965d1be54bbc776544537d0984d5d8894
27 +DIST partclone-0.2.88.tar.gz 1024941 SHA256 01acaab3f8f7a393ed930cebec8a77623f6598cc26239a78240d2a48d8544f36 SHA512 f05480363ee5604b3e3ea7dbb28dbb3dbec9e4fbf8350f69c88be1392e84a7de248a9b786faa59bdcce2b82a16e7108c5cb9a37aa07a35cd5cf1d06d230a55f9 WHIRLPOOL bd36b6d4c3cf15b8dba1ad144bbc77d7a0bbec0a684c778ab58fc5478fd570d5558e474c5b57713fa7dd09d6d146bdc49fd5abe30eedd0ce4d803d4c615eb39e
28 +EBUILD partclone-0.2.69.ebuild 2270 SHA256 6904cea5e97259285b0aca68301a181db04828e4dc054a7293fc1a76dee23339 SHA512 d035e6ac4eef65f8368517530f8cab89b15c2dbc8d4ff4c35f0adf0421de70ce386baac4f3e44efb0a1e3f96a0dad7ae925407f00da2e10122732b0df243135c WHIRLPOOL eccbadcf8a54e52158341168b039a7d4860575515d85cca8e478806cf2347acb6c5b28eb6d0b09ff323e2236cd2ec7dd508728be2e0dede391c11cc33ad528b1
29 +EBUILD partclone-0.2.88.ebuild 2985 SHA256 810de8ac6f6946aee1bb56fd736bea83576d8af7fb080008773dffa86a542b2c SHA512 456c3dbd988a7b3675522eee1779002aff78ba4b3020efd60431b5dc58a05e5cd8d8221422e7c73a2a0c8c372f959f25ec796fb7661cdd9c470eabd929612e8d WHIRLPOOL ecad42015dbcb0bff753ab185058878d567a12f0c9d26c4e36154e410be149c94a62b726099259684eddf10213a59d51ebf8026939cb6c297076d185cf2c0a9e
30 +EBUILD partclone-9999.ebuild 1694 SHA256 3a15b1d5576b298c2ce0d1d38f3a973d1cf0c088d5494448e5d233cee79b0e11 SHA512 62158878ed0dd0dd8eb4023e79fbd45402b0202becfebd8c7b1a3affd35b383d20e57a16a5456d310c88fb6f621095218f2d54af3b6cc5589fd409e0c1469807 WHIRLPOOL 2b60ee28435936b8006dfecb3061986ead97acc55b6fa7187983ba241a00f77145862c72e7aec908ef71540e099fb30e48a330044dfef13fb922e82b4efbc6cd
31
32 diff --git a/sys-block/partclone/partclone-0.2.69.ebuild b/sys-block/partclone/partclone-0.2.69.ebuild
33 new file mode 100644
34 index 0000000..39b4e3e
35 --- /dev/null
36 +++ b/sys-block/partclone/partclone-0.2.69.ebuild
37 @@ -0,0 +1,79 @@
38 +# Copyright 1999-2013 Gentoo Foundation
39 +# Distributed under the terms of the GNU General Public License v2
40 +# $Header: $
41 +
42 +EAPI=4
43 +
44 +inherit eutils
45 +
46 +DESCRIPTION="Partition cloning tool"
47 +HOMEPAGE="http://partclone.org"
48 +SRC_URI="http://sourceforge.net/projects/partclone/files/stable/${PV}/partclone_${PV}.orig.tar.gz/download -> ${P}.tar.gz"
49 +
50 +LICENSE="GPL-2"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE="btrfs reiserfs reiser4 hfs fat minix ntfs jfs static vmfs xfs"
54 +
55 +# xfsprogs, see https://bugs.gentoo.org/show_bug.cgi?id=486514
56 +RDEPEND="${common_depends}
57 + sys-fs/e2fsprogs
58 + btrfs? ( sys-fs/btrfs-progs )
59 + fat? ( sys-fs/dosfstools )
60 + ntfs? ( sys-fs/ntfs3g )
61 + hfs? ( sys-fs/hfsutils )
62 + jfs? ( sys-fs/jfsutils )
63 + reiserfs? ( sys-fs/progsreiserfs )
64 + reiser4? ( sys-fs/reiser4progs )
65 + xfs? ( >=sys-fs/xfsprogs-3.1.11-r1 )
66 + static? ( sys-fs/e2fsprogs[static-libs]
67 + sys-libs/e2fsprogs-libs[static-libs]
68 + sys-fs/xfsprogs[static-libs]
69 + sys-libs/ncurses[static-libs]
70 + sys-fs/ntfs3g[static-libs]
71 + )"
72 +DEPEND=""
73 +
74 +src_unpack()
75 +{
76 + unpack ${A}
77 + #epatch "${FILESDIR}/${PN}-xfslib.patch"
78 + cd ${S}
79 +}
80 +
81 +src_compile()
82 +{
83 + local myconf
84 + myconf="${myconf} --enable-extfs --enable-ncursesw --enable-fs-test"
85 + use xfs && myconf="${myconf} --enable-xfs"
86 + use reiserfs && myconf="${myconf} --enable-reiserfs"
87 + use reiser4 && myconf="${myconf} --enable-reiser4"
88 + use hfs && myconf="${myconf} --enable-hfsp"
89 + use fat && myconf="${myconf} --enable-fat --enable-exfat"
90 + use ntfs && myconf="${myconf} --enable-ntfs"
91 + use minix && myconf="${myconf} --enable-minix"
92 + use jfs && myconf="${myconf} --enable-jfs"
93 + use btrfs && myconf="${myconf} --enable-btrfs"
94 + use vmfs && myconf="${myconf} --enable-vmfs"
95 + use static && myconf="${myconf} --enable-static"
96 +
97 + econf ${myconf} || die "econf failed"
98 + emake || die "make failed"
99 +}
100 +
101 +src_install()
102 +{
103 + #emake install || die "make install failed"
104 + #emake DIST_ROOT="${D}" install || die "make install failed"
105 + cd ${S}/src
106 + dosbin partclone.dd partclone.restore partclone.chkimg
107 + dosbin partclone.extfs
108 + use xfs && dosbin partclone.xfs
109 + use reiserfs && dosbin partclone.reiserfs
110 + use reiser4 && dosbin partclone.reiser4
111 + use hfs && dosbin partclone.hfsp
112 + use fat && dosbin partclone.fat
113 + use ntfs && dosbin partclone.ntfs
114 + use ntfs && dosbin partclone.ntfsfixboot
115 +}
116 +
117
118 diff --git a/sys-block/partclone/partclone-0.2.88.ebuild b/sys-block/partclone/partclone-0.2.88.ebuild
119 new file mode 100644
120 index 0000000..e7305a6
121 --- /dev/null
122 +++ b/sys-block/partclone/partclone-0.2.88.ebuild
123 @@ -0,0 +1,92 @@
124 +# Copyright 1999-2013 Gentoo Foundation
125 +# Distributed under the terms of the GNU General Public License v2
126 +# $Header: $
127 +
128 +EAPI=4
129 +
130 +inherit eutils
131 +
132 +DESCRIPTION="Partition cloning tool"
133 +HOMEPAGE="http://partclone.org"
134 +SRC_URI="http://sourceforge.net/projects/partclone/files/stable/${PV}/partclone_${PV}.orig.tar.gz/download -> ${P}.tar.gz"
135 +
136 +LICENSE="GPL-2"
137 +SLOT="0"
138 +KEYWORDS="~amd64 ~x86"
139 +IUSE="btrfs reiserfs reiser4 hfs fat minix ntfs jfs static vmfs xfs f2fs nilfs2"
140 +
141 +# xfsprogs, see https://bugs.gentoo.org/show_bug.cgi?id=486514
142 +RDEPEND="${common_depends}
143 + sys-fs/e2fsprogs
144 + btrfs? ( sys-fs/btrfs-progs )
145 + fat? ( sys-fs/dosfstools )
146 + ntfs? ( sys-fs/ntfs3g )
147 + hfs? ( sys-fs/hfsutils )
148 + jfs? ( sys-fs/jfsutils )
149 + reiserfs? ( sys-fs/progsreiserfs )
150 + reiser4? ( sys-fs/reiser4progs )
151 + xfs? ( >=sys-fs/xfsprogs-3.1.11-r1 )
152 + nilfs2? ( >=sys-fs/nilfs-utils-2.1.5-r1 )
153 + f2fs? ( >=sys-libs/e2fsprogs-libs-1.42.13 )
154 + static? ( sys-fs/e2fsprogs[static-libs]
155 + sys-libs/e2fsprogs-libs[static-libs]
156 + sys-fs/xfsprogs[static-libs]
157 + sys-libs/ncurses[static-libs]
158 + sys-fs/ntfs3g[static-libs]
159 + )"
160 +DEPEND=""
161 +
162 +src_unpack()
163 +{
164 + unpack ${A}
165 + #epatch "${FILESDIR}/${PN}-xfslib.patch"
166 + cd ${S}
167 +}
168 +
169 +src_compile()
170 +{
171 + local myconf
172 + myconf="${myconf} --enable-extfs --enable-ncursesw --enable-fs-test"
173 + use xfs && myconf="${myconf} --enable-xfs"
174 + use reiserfs && myconf="${myconf} --enable-reiserfs"
175 + use reiser4 && myconf="${myconf} --enable-reiser4"
176 + use hfs && myconf="${myconf} --enable-hfsp"
177 + use fat && myconf="${myconf} --enable-fat --enable-exfat"
178 + use ntfs && myconf="${myconf} --enable-ntfs"
179 + use minix && myconf="${myconf} --enable-minix"
180 + use jfs && myconf="${myconf} --enable-jfs"
181 + use btrfs && myconf="${myconf} --enable-btrfs"
182 + use vmfs && myconf="${myconf} --enable-vmfs"
183 + use f2fs && myconf="${myconf} --enable-f2fs"
184 + use nilfs2 && myconf="${myconf} --enable-nilfs2"
185 + use static && myconf="${myconf} --enable-static"
186 +
187 + econf ${myconf} || die "econf failed"
188 + emake || die "make failed"
189 +}
190 +
191 +src_install()
192 +{
193 + #emake install || die "make install failed"
194 + #emake DIST_ROOT="${D}" install || die "make install failed"
195 + cd ${S}/src
196 + dosbin partclone.dd partclone.restore partclone.chkimg partclone.info partclone.imager
197 + dosbin partclone.extfs
198 + dosym /usr/sbin/partclone.extfs /usr/sbin/partclone.ext4
199 + dosym /usr/sbin/partclone.extfs /usr/sbin/partclone.ext4dev
200 + use xfs && dosbin partclone.xfs
201 + use reiserfs && dosbin partclone.reiserfs
202 + use reiser4 && dosbin partclone.reiser4
203 + use hfs && dosbin partclone.hfsp
204 + use fat && (dosbin partclone.fat
205 + dosym /usr/sbin/partclone.fat /usr/sbin/partclone.fat12
206 + dosym /usr/sbin/partclone.fat /usr/sbin/partclone.fat16
207 + dosym /usr/sbin/partclone.fat /usr/sbin/partclone.fat32)
208 + use ntfs && dosbin partclone.ntfs
209 + use ntfs && (dosbin partclone.ntfsfixboot
210 + dosym /usr/sbin/partclone.ntfsfixboot /usr/sbin/partclone.ntfsreloc)
211 + use btrfs && dosbin partclone.btrfs
212 + use f2fs && dosbin partclone.f2fs
213 + use nilfs2 && dosbin partclone.nilfs2
214 +}
215 +
216
217 diff --git a/sys-block/partclone/partclone-9999.ebuild b/sys-block/partclone/partclone-9999.ebuild
218 new file mode 100644
219 index 0000000..18d7537
220 --- /dev/null
221 +++ b/sys-block/partclone/partclone-9999.ebuild
222 @@ -0,0 +1,68 @@
223 +# Copyright 1999-2013 Gentoo Foundation
224 +# Distributed under the terms of the GNU General Public License v2
225 +# $Header: $
226 +
227 +EAPI=5
228 +
229 +AUTOTOOLS_AUTORECONF=1
230 +AUTOTOOLS_IN_SOURCE_BUILD=1
231 +
232 +inherit autotools-utils git-2
233 +
234 +DESCRIPTION="Back up and restore used-blocks of a partition"
235 +HOMEPAGE="http://partclone.org/"
236 +SRC_URI=""
237 +EGIT_REPO_URI="https://github.com/Thomas-Tsai/partclone"
238 +EGIT_BRANCH="release"
239 +
240 +LICENSE="GPL-2"
241 +SLOT="0"
242 +KEYWORDS=""
243 +IUSE="+extfs +fat exfat hfsp jfs +ntfs reiserfs reiser4 ufs xfs f2fs nilfs2 minix vmfs btrfs"
244 +
245 +DEPEND="reiserfs? ( sys-fs/progsreiserfs )
246 + exfat? ( sys-fs/exfat-utils )
247 + ntfs? ( sys-fs/ntfs3g )
248 + extfs? ( sys-libs/e2fsprogs-libs )
249 + reiser4? ( sys-fs/reiser4progs )
250 + reiserfs? ( sys-fs/progsreiserfs )
251 + xfs? ( sys-fs/xfsprogs )
252 + ufs? ( sys-fs/ufsutils )
253 + jfs? ( sys-fs/jfsutils )
254 + btrfs? ( sys-fs/btrfs-progs )
255 + nilfs2? ( >=sys-fs/nilfs-utils-2.1.5-r1 )
256 + f2fs? ( >=sys-libs/e2fsprogs-libs-1.42.13 )"
257 + # sys-libs/ncurses[tinfo]
258 +RDEPEND="${DEPEND}"
259 +
260 +DOCS=( AUTHORS ChangeLog NEWS README TODO )
261 +
262 +my_use_enable() {
263 + use $1 && echo --enable-$1
264 +}
265 +
266 +src_prepare() {
267 + sed -i '/SUBDIRS/s/tests//' "${S}/Makefile.am" || die
268 + sed -i 's/sizeof(badsector_magic)/(strlen(badsector_magic) + 1)/' "${S}/src/partclone.c" || die
269 + autotools-utils_src_prepare
270 +}
271 +
272 +src_configure() {
273 + local myeconfargs=(
274 + $(my_use_enable extfs)
275 + $(my_use_enable fat)
276 + $(my_use_enable hfsp)
277 + $(my_use_enable jfs)
278 + $(my_use_enable ntfs)
279 + $(my_use_enable reiserfs)
280 + $(my_use_enable reiser4)
281 + $(my_use_enable ufs)
282 + $(my_use_enable xfs)
283 + $(my_use_enable f2fs)
284 + $(my_use_enable nilfs2)
285 + $(my_use_enable minix)
286 + $(my_use_enable vmfs)
287 + $(my_use_enable btrfs)
288 + )
289 + autotools-utils_src_configure
290 +}
291
292 diff --git a/sys-fs/vmfs-tools/Manifest b/sys-fs/vmfs-tools/Manifest
293 new file mode 100644
294 index 0000000..9e6806f
295 --- /dev/null
296 +++ b/sys-fs/vmfs-tools/Manifest
297 @@ -0,0 +1 @@
298 +DIST vmfs-tools-0.2.5.tar.gz 77095 SHA256 d706138fdd5a71895f30765b6116717f6ef55971ffb07d3bee56bd48b4772653 SHA512 9231509d6e370ddc2a270d80e6cdc16caa9e36bcf5ae3680d83dc28a39ca1c4663680a7107e791c5a037c8e3e145e8d518da9863afb52fa4e09b0792acd7a74c WHIRLPOOL 23a9ff1ed1b0ccb4a5b32a63306c5156592058e8a49601214f6717c19085c79feff1e680de5944f024ec879513ff8b5f3560476b583ce31fbe9ec4e630a9b7c6
299
300 diff --git a/sys-fs/vmfs-tools/files/vmfs-tools-0.2.5-buildsystem.patch b/sys-fs/vmfs-tools/files/vmfs-tools-0.2.5-buildsystem.patch
301 new file mode 100644
302 index 0000000..986979c
303 --- /dev/null
304 +++ b/sys-fs/vmfs-tools/files/vmfs-tools-0.2.5-buildsystem.patch
305 @@ -0,0 +1,43 @@
306 +--- vmfs-tools-0.2.5/GNUmakefile
307 ++++ vmfs-tools-0.2.5/GNUmakefile
308 +@@ -55,7 +55,7 @@
309 + endef
310 + $(foreach subdir,$(strip $(call order_by_requires,$(SUBDIRS))),$(eval $(call subdir_rules,$(subdir))))
311 +
312 +-CC := gcc
313 ++CC ?= gcc
314 + OPTIMFLAGS := $(if $(filter -O%,$(ENV_CFLAGS)),,-O2)
315 + CFLAGS := $(ENV_CFLAGS) $(filter-out $(ENV_CFLAGS),-Wall $(OPTIMFLAGS) -g -D_FILE_OFFSET_BITS=64 $(EXTRA_CFLAGS))
316 + CFLAGS += $(if $(HAS_STRNDUP),,-DNO_STRNDUP=1)
317 +@@ -71,7 +71,7 @@
318 +
319 + EXTRA_DIST := LICENSE README TODO AUTHORS test.img configure
320 +
321 +-all: $(BUILD_PROGRAMS) $(wildcard .gitignore) test.img
322 ++all: $(BUILD_PROGRAMS) $(wildcard .gitignore) test.img doc
323 +
324 + ALL_MAKEFILES = $(filter-out config.cache,$(MAKEFILE_LIST)) configure.mk
325 +
326 +@@ -84,8 +84,8 @@
327 + echo "#endif" >> $@
328 +
329 + $(BUILD_LIBS):
330 +- ar -r $@ $^
331 +- ranlib $@
332 ++ $(AR) -r $@ $^
333 ++ $(RANLIB) $@
334 +
335 + $(OBJS): %.o: %.c $(HEADERS)
336 +
337 +--- vmfs-tools-0.2.5/configure.mk
338 ++++ vmfs-tools-0.2.5/configure.mk
339 +@@ -10,7 +10,9 @@
340 +
341 + # configure rules really start here
342 + $(call PKG_CONFIG_CHK,uuid,-I/usr/include/uuid,-luuid)
343 ++ifneq (,$(WANT_FUSE))
344 + $(call PKG_CONFIG_CHK,fuse)
345 ++endif
346 + $(call PATH_LOOKUP,asciidoc)
347 + $(call PATH_LOOKUP,xsltproc)
348 +
349
350 diff --git a/sys-fs/vmfs-tools/metadata.xml b/sys-fs/vmfs-tools/metadata.xml
351 new file mode 100644
352 index 0000000..5aef247
353 --- /dev/null
354 +++ b/sys-fs/vmfs-tools/metadata.xml
355 @@ -0,0 +1,10 @@
356 +<?xml version="1.0" encoding="UTF-8"?>
357 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
358 +<pkgmetadata>
359 +<maintainer>
360 + <email>root@××××××.de</email>
361 +</maintainer>
362 +<use>
363 + <flag name="fuse">Enable image mount support via fuse</flag>
364 +</use>
365 +</pkgmetadata>
366
367 diff --git a/sys-fs/vmfs-tools/vmfs-tools-0.2.5.ebuild b/sys-fs/vmfs-tools/vmfs-tools-0.2.5.ebuild
368 new file mode 100644
369 index 0000000..235b941
370 --- /dev/null
371 +++ b/sys-fs/vmfs-tools/vmfs-tools-0.2.5.ebuild
372 @@ -0,0 +1,31 @@
373 +# Copyright 1999-2014 Gentoo Foundation
374 +# Distributed under the terms of the GNU General Public License v2
375 +# $Header: $
376 +
377 +EAPI=5
378 +
379 +inherit eutils toolchain-funcs
380 +
381 +DESCRIPTION="Tools for vmfs"
382 +HOMEPAGE="http://glandium.org/projects/vmfs-tools/"
383 +SRC_URI="http://glandium.org/projects/${PN}/${P}.tar.gz"
384 +
385 +LICENSE="GPL-2+"
386 +SLOT="0"
387 +KEYWORDS="~amd64 ~x86"
388 +IUSE="+fuse"
389 +
390 +RDEPEND="sys-apps/util-linux
391 + fuse? ( sys-fs/fuse )"
392 +
393 +DEPEND="${RDEPEND}
394 + app-text/asciidoc
395 + app-text/docbook-xsl-stylesheets
396 + dev-libs/libxslt"
397 +
398 +src_prepare() {
399 + epatch "${FILESDIR}"/${P}-buildsystem.patch
400 + tc-export CC AR RANLIB
401 + export NO_STRIP=1
402 + export WANT_FUSE=$(usex fuse 1 "")
403 +}