Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/tar/, app-arch/tar/files/
Date: Thu, 22 Dec 2016 22:57:14
Message-Id: 1482447427.204a2aaac4657909edb11d2ebd3837707e9b9485.polynomial-c@gentoo
1 commit: 204a2aaac4657909edb11d2ebd3837707e9b9485
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 22 22:56:53 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 22 22:57:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=204a2aaa
7
8 app-arch/tar: Removed old.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 app-arch/tar/Manifest | 2 -
13 .../files/tar-1.27.1-recursion_norecursion.patch | 25 --
14 .../tar/files/tar-1.27.1-xattr_build_fix.patch | 196 -----------
15 app-arch/tar/files/tar-1.28-concat-listed.patch | 117 -------
16 app-arch/tar/files/tar-1.28-xattr.patch | 36 --
17 app-arch/tar/files/tar.1-1.27 | 388 ---------------------
18 app-arch/tar/tar-1.27.1-r2.ebuild | 79 -----
19 app-arch/tar/tar-1.28-r1.ebuild | 76 ----
20 app-arch/tar/tar-1.29.ebuild | 74 ----
21 9 files changed, 993 deletions(-)
22
23 diff --git a/app-arch/tar/Manifest b/app-arch/tar/Manifest
24 index b9d5d4d..e16fce7 100644
25 --- a/app-arch/tar/Manifest
26 +++ b/app-arch/tar/Manifest
27 @@ -1,3 +1 @@
28 -DIST tar-1.27.1.tar.bz2 2573070 SHA256 9b0fb3ce8512059337add0da5f8f0f7d7647f2201f5ece24581d620ea60337c6 SHA512 f14a0a58e574db3aeec0914621aff2f0518b8d8acce81106b8219b36b3fed47349d6cb802c51a836a5e6889529337434d83b3c50cd7fc1801b9b3944eecc695b WHIRLPOOL fd44ee747f44febc9dd4b0e1a532c38a835fcb55967143a1ab29b29dfc27316de76dfa1d23438f1843bb0a7962eb0b59c3ec75041cc0fbe879b02af292ebc6e9
29 -DIST tar-1.28.tar.bz2 2693989 SHA256 60e4bfe0602fef34cd908d91cf638e17eeb09394d7b98c2487217dc4d3147562 SHA512 4f66a236a2d9185114e2b358a09f3d38c3c38e984e5fca4bedc4d7eb461bdaace6a7a9fc62aafb70428b1f3dc617fb0d0553558fb29cad33f0cb53ba081521c4 WHIRLPOOL 54ad7b73e973d436cff853fda267d21ab22139f53d18f6870c7a53cf74e53ec8735022b6d3c503504ee416f1b9f9d43ca1af60d2fedb5d852766cb8dd2ac72d0
30 DIST tar-1.29.tar.bz2 2715993 SHA256 236b11190c0a3a6885bdb8d61424f2b36a5872869aa3f7f695dea4b4843ae2f2 SHA512 d2cea9892892dfa0c8efd390303b75dccc085c4895e07ced684074592d69729916d6ea12475aa6aff873d076a729bb7dc2499c233edcfb9c7e8e8995481eef3b WHIRLPOOL fa5f66a7bb7698c35ad842bc4900a62997da5eb2f3cd6154391b88505a581078a64a8399bb5976d4723d90951d34c084e00d17908d90792bb5139184e8b92a94
31
32 diff --git a/app-arch/tar/files/tar-1.27.1-recursion_norecursion.patch b/app-arch/tar/files/tar-1.27.1-recursion_norecursion.patch
33 deleted file mode 100644
34 index 47973c3..00000000
35 --- a/app-arch/tar/files/tar-1.27.1-recursion_norecursion.patch
36 +++ /dev/null
37 @@ -1,25 +0,0 @@
38 -From 2bd9c15391b0bd6ef0bff76aebf09cfb53003199 Mon Sep 17 00:00:00 2001
39 -From: Sergey Poznyakoff <gray@×××.org>
40 -Date: Thu, 09 Jan 2014 22:13:15 +0000
41 -Subject: Fix the use of --no-recursion and --recursion options.
42 -
43 -Each option remains in effect until cancelled by the next ocurrence
44 -of its counterpart, as stated in the documentation.
45 -
46 -* src/names.c (name_next_elt): Restore recursion_option from the
47 -value of matching_flags.
48 ----
49 -diff --git a/src/names.c b/src/names.c
50 -index fc9841e..7777dc1 100644
51 ---- a/src/names.c
52 -+++ b/src/names.c
53 -@@ -570,6 +570,7 @@ name_next_elt (int change_dirs)
54 -
55 - case NELT_FMASK:
56 - matching_flags = ep->v.matching_flags;
57 -+ recursion_option = matching_flags & FNM_LEADING_DIR;
58 - name_list_advance ();
59 - continue;
60 -
61 ---
62 -cgit v0.9.0.2
63
64 diff --git a/app-arch/tar/files/tar-1.27.1-xattr_build_fix.patch b/app-arch/tar/files/tar-1.27.1-xattr_build_fix.patch
65 deleted file mode 100644
66 index 14cf90a..00000000
67 --- a/app-arch/tar/files/tar-1.27.1-xattr_build_fix.patch
68 +++ /dev/null
69 @@ -1,196 +0,0 @@
70 -http://lists.gnu.org/archive/html/bug-tar/2013-12/msg00023.html
71 -https://bugs.gentoo.org/489170
72 -
73 ---- tar-1.27.1/configure 2013-11-17 17:18:39.000000000 +0100
74 -+++ tar-1.27.1/configure 2013-11-17 17:18:39.000000000 +0100
75 -@@ -33619,19 +33619,20 @@
76 - fi
77 -
78 -
79 -- for ac_header in attr/xattr.h
80 -+ for ac_header in sys/xattr.h attr/xattr.h
81 - do :
82 -- ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
83 --if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
84 -+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
85 -+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
86 -+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
87 - cat >>confdefs.h <<_ACEOF
88 --#define HAVE_ATTR_XATTR_H 1
89 -+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
90 - _ACEOF
91 -
92 - fi
93 -
94 - done
95 -
96 -- if test "$ac_cv_header_attr_xattr_h" = yes; then
97 -+ if test "$ac_cv_header_sys_xattr_h" = yes -o "$ac_cv_header_attr_xattr_h" = yes; then
98 - TAR_COND_XATTR_H_TRUE=
99 - TAR_COND_XATTR_H_FALSE='#'
100 - else
101 -@@ -33639,30 +33640,130 @@
102 - TAR_COND_XATTR_H_FALSE=
103 - fi
104 -
105 -- if test "$ac_cv_header_attr_xattr_h" = yes; then
106 -- for ac_func in getxattr fgetxattr lgetxattr \
107 -- setxattr fsetxattr lsetxattr \
108 -- listxattr flistxattr llistxattr
109 --do :
110 -- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
111 --ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
112 --if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
113 -+
114 -+ if test "$with_xattrs" != no; then
115 -+ # If <sys/xattr.h> doesn't exist and <attr/xattr.h> does,
116 -+ # then link against libattr.so and not libc
117 -+ if test "$ac_cv_header_sys_xattr_h" = no -a "$ac_cv_header_attr_xattr_h" = yes; then
118 -+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
119 -+$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
120 -+if ${ac_cv_lib_attr_fgetxattr+:} false; then :
121 -+ $as_echo_n "(cached) " >&6
122 -+else
123 -+ ac_check_lib_save_LIBS=$LIBS
124 -+LIBS="-lattr $LIBS"
125 -+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
126 -+/* end confdefs.h. */
127 -+
128 -+/* Override any GCC internal prototype to avoid an error.
129 -+ Use char because int might match the return type of a GCC
130 -+ builtin and then its argument prototype would still apply. */
131 -+#ifdef __cplusplus
132 -+extern "C"
133 -+#endif
134 -+char fgetxattr ();
135 -+int
136 -+main ()
137 -+{
138 -+return fgetxattr ();
139 -+ ;
140 -+ return 0;
141 -+}
142 -+_ACEOF
143 -+if ac_fn_c_try_link "$LINENO"; then :
144 -+ ac_cv_lib_attr_fgetxattr=yes
145 -+else
146 -+ ac_cv_lib_attr_fgetxattr=no
147 -+fi
148 -+rm -f core conftest.err conftest.$ac_objext \
149 -+ conftest$ac_exeext conftest.$ac_ext
150 -+LIBS=$ac_check_lib_save_LIBS
151 -+fi
152 -+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
153 -+$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
154 -+if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then :
155 - cat >>confdefs.h <<_ACEOF
156 --#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
157 -+#define HAVE_LIBATTR 1
158 - _ACEOF
159 -- # only when functions are present
160 -
161 --$as_echo "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
162 -+ LIBS="-lattr $LIBS"
163 -
164 -- if test "$with_xattrs" != no; then
165 -+fi
166 -
167 --$as_echo "#define HAVE_XATTRS /**/" >>confdefs.h
168 -+ fi
169 -+ have_functions=yes
170 -+ for xattr_func in getxattr fgetxattr lgetxattr \
171 -+ setxattr fsetxattr lsetxattr \
172 -+ listxattr flistxattr llistxattr; do \
173 -+ as_ac_Search=`$as_echo "ac_cv_search_$xattr_func" | $as_tr_sh`
174 -+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $xattr_func" >&5
175 -+$as_echo_n "checking for library containing $xattr_func... " >&6; }
176 -+if eval \${$as_ac_Search+:} false; then :
177 -+ $as_echo_n "(cached) " >&6
178 -+else
179 -+ ac_func_search_save_LIBS=$LIBS
180 -+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
181 -+/* end confdefs.h. */
182 -+
183 -+/* Override any GCC internal prototype to avoid an error.
184 -+ Use char because int might match the return type of a GCC
185 -+ builtin and then its argument prototype would still apply. */
186 -+#ifdef __cplusplus
187 -+extern "C"
188 -+#endif
189 -+char $xattr_func ();
190 -+int
191 -+main ()
192 -+{
193 -+return $xattr_func ();
194 -+ ;
195 -+ return 0;
196 -+}
197 -+_ACEOF
198 -+for ac_lib in '' attr; do
199 -+ if test -z "$ac_lib"; then
200 -+ ac_res="none required"
201 -+ else
202 -+ ac_res=-l$ac_lib
203 -+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
204 -+ fi
205 -+ if ac_fn_c_try_link "$LINENO"; then :
206 -+ eval "$as_ac_Search=\$ac_res"
207 -+fi
208 -+rm -f core conftest.err conftest.$ac_objext \
209 -+ conftest$ac_exeext
210 -+ if eval \${$as_ac_Search+:} false; then :
211 -+ break
212 -+fi
213 -+done
214 -+if eval \${$as_ac_Search+:} false; then :
215 -
216 -- fi
217 -+else
218 -+ eval "$as_ac_Search=no"
219 -+fi
220 -+rm conftest.$ac_ext
221 -+LIBS=$ac_func_search_save_LIBS
222 -+fi
223 -+eval ac_res=\$$as_ac_Search
224 -+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
225 -+$as_echo "$ac_res" >&6; }
226 -+eval ac_res=\$$as_ac_Search
227 -+if test "$ac_res" != no; then :
228 -+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
229 -
230 -+else
231 -+ have_functions=no
232 - fi
233 --done
234 -
235 -+ test $have_functions = no && break
236 -+ done
237 -+ if test $have_functions = yes; then
238 -+
239 -+$as_echo "#define HAVE_XATTRS 1" >>confdefs.h
240 -+
241 -+ else
242 -+ test "$with_xattrs" = yes && as_fn_error $? "xattr support requested but not found." "$LINENO" 5
243 -+ fi
244 - fi
245 -
246 -
247 ---- tar-1.27.1/lib/xattr-at.h 2013-03-14 21:18:10.000000000 +0100
248 -+++ tar-1.27.1/lib/xattr-at.h 2013-03-14 21:18:10.000000000 +0100
249 -@@ -20,7 +20,15 @@
250 - #define XATTRS_AT_H
251 -
252 - #include <sys/types.h>
253 --#include <attr/xattr.h>
254 -+#if defined(HAVE_SYS_XATTR_H)
255 -+# include <sys/xattr.h>
256 -+#elif defined(HAVE_ATTR_XATTR_H)
257 -+# include <attr/xattr.h>
258 -+#endif
259 -+
260 -+#ifndef ENOATTR
261 -+# define ENOATTR ENODATA /* No such attribute */
262 -+#endif
263 -
264 - /* These are the dir-fd-relative variants of the functions without the
265 - "at" suffix. For example, setxattrat (AT_FDCWD, path, name, value, size,
266
267 diff --git a/app-arch/tar/files/tar-1.28-concat-listed.patch b/app-arch/tar/files/tar-1.28-concat-listed.patch
268 deleted file mode 100644
269 index 28dc578..00000000
270 --- a/app-arch/tar/files/tar-1.28-concat-listed.patch
271 +++ /dev/null
272 @@ -1,117 +0,0 @@
273 -https://bugs.gentoo.org/546294
274 -https://lists.gnu.org/archive/html/bug-tar/2015-04/msg00006.html
275 -
276 -From 15c02c2b9d383446b3ea35dbea5a048e136b020d Mon Sep 17 00:00:00 2001
277 -From: Sergey Poznyakoff <gray@×××××××.ua>
278 -Date: Thu, 16 Apr 2015 13:02:10 +0300
279 -Subject: [PATCH] Fix extraction from concatenated incremental archives.
280 -
281 -* src/common.h (remove_delayed_set_stat): New proto.
282 -* src/extract.c (free_delayed_set_stat)
283 -(remove_delayed_set_stat): New function.
284 -(apply_nonancestor_delayed_set_stat): Use free_delayed_set_stat.
285 -* src/misc.c (safer_rmdir): Remove delayed_set_stat entry
286 -corresponding to the removed directory.
287 -* tests/incr10.at: New test case.
288 -* tests/Makefile.am: Add new test.
289 -* tests/testsuite.at: Likewise.
290 ----
291 - src/common.h | 2 ++
292 - src/extract.c | 38 +++++++++++++++++++++++++++-----
293 - src/misc.c | 7 +++++-
294 - tests/Makefile.am | 1 +
295 - tests/incr10.at | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
296 - tests/testsuite.at | 1 +
297 - 6 files changed, 107 insertions(+), 6 deletions(-)
298 - create mode 100644 tests/incr10.at
299 -
300 -diff --git a/src/common.h b/src/common.h
301 -index 20cbb64..2904183 100644
302 ---- a/src/common.h
303 -+++ b/src/common.h
304 -@@ -523,6 +523,8 @@ void extract_archive (void);
305 - void extract_finish (void);
306 - bool rename_directory (char *src, char *dst);
307 -
308 -+void remove_delayed_set_stat (const char *fname);
309 -+
310 - /* Module delete.c. */
311 -
312 - void delete_archive_members (void);
313 -diff --git a/src/extract.c b/src/extract.c
314 -index ca25603..5aaeb1b 100644
315 ---- a/src/extract.c
316 -+++ b/src/extract.c
317 -@@ -537,6 +537,38 @@ repair_delayed_set_stat (char const *dir,
318 - quotearg_colon (dir)));
319 - }
320 -
321 -+static void
322 -+free_delayed_set_stat (struct delayed_set_stat *data)
323 -+{
324 -+ xheader_xattr_free (data->xattr_map, data->xattr_map_size);
325 -+ free (data->cntx_name);
326 -+ free (data->acls_a_ptr);
327 -+ free (data->acls_d_ptr);
328 -+ free (data);
329 -+}
330 -+
331 -+void
332 -+remove_delayed_set_stat (const char *fname)
333 -+{
334 -+ struct delayed_set_stat *data, *next, *prev = NULL;
335 -+ for (data = delayed_set_stat_head; data; data = next)
336 -+ {
337 -+ next = data->next;
338 -+ if (chdir_current == data->change_dir
339 -+ && strcmp (data->file_name, fname) == 0)
340 -+ {
341 -+ free_delayed_set_stat (data);
342 -+ if (prev)
343 -+ prev->next = next;
344 -+ else
345 -+ delayed_set_stat_head = next;
346 -+ return;
347 -+ }
348 -+ else
349 -+ prev = data;
350 -+ }
351 -+}
352 -+
353 - /* After a file/link/directory creation has failed, see if
354 - it's because some required directory was not present, and if so,
355 - create all required directories. Return zero if all the required
356 -@@ -846,11 +878,7 @@ apply_nonancestor_delayed_set_stat (char const *file_name, bool after_links)
357 - }
358 -
359 - delayed_set_stat_head = data->next;
360 -- xheader_xattr_free (data->xattr_map, data->xattr_map_size);
361 -- free (data->cntx_name);
362 -- free (data->acls_a_ptr);
363 -- free (data->acls_d_ptr);
364 -- free (data);
365 -+ free_delayed_set_stat (data);
366 - }
367 - }
368 -
369 -diff --git a/src/misc.c b/src/misc.c
370 -index 8e66643..d263c07 100644
371 ---- a/src/misc.c
372 -+++ b/src/misc.c
373 -@@ -586,7 +586,12 @@ safer_rmdir (const char *file_name)
374 - return -1;
375 - }
376 -
377 -- return unlinkat (chdir_fd, file_name, AT_REMOVEDIR);
378 -+ if (unlinkat (chdir_fd, file_name, AT_REMOVEDIR) == 0)
379 -+ {
380 -+ remove_delayed_set_stat (file_name);
381 -+ return 0;
382 -+ }
383 -+ return -1;
384 - }
385 -
386 - /* Remove FILE_NAME, returning 1 on success. If FILE_NAME is a directory,
387 ---
388 -2.3.5
389 -
390
391 diff --git a/app-arch/tar/files/tar-1.28-xattr.patch b/app-arch/tar/files/tar-1.28-xattr.patch
392 deleted file mode 100644
393 index a8f91fd..00000000
394 --- a/app-arch/tar/files/tar-1.28-xattr.patch
395 +++ /dev/null
396 @@ -1,36 +0,0 @@
397 -https://bugs.gentoo.org/548024
398 -
399 -From 9c2b57232e3bc2e5ba85387560bcdd851849a128 Mon Sep 17 00:00:00 2001
400 -From: Paul Eggert <eggert@×××××××.edu>
401 -Date: Mon, 5 Jan 2015 20:24:18 -0800
402 -Subject: [PATCH] tar: port xattr-at.c to Solaris 10
403 -
404 -* lib/xattr-at.c (setxattrat, lsetxattrat, getxattrat, lgetxattrat)
405 -(listxattrat, llistxattrat): Compile only if HAVE_XATTRS, so that
406 -the code doesn't call functions that are not declared.
407 ----
408 - lib/xattr-at.c | 4 ++++
409 - 1 file changed, 4 insertions(+)
410 -
411 -diff --git a/lib/xattr-at.c b/lib/xattr-at.c
412 -index 443ccae..66427e9 100644
413 ---- a/lib/xattr-at.c
414 -+++ b/lib/xattr-at.c
415 -@@ -31,6 +31,8 @@
416 -
417 - #include "openat-priv.h"
418 -
419 -+#ifdef HAVE_XATTRS
420 -+
421 - /* setxattrat */
422 - #define AT_FUNC_NAME setxattrat
423 - #define AT_FUNC_F1 setxattr
424 -@@ -108,3 +110,5 @@
425 - #undef AT_FUNC_RESULT
426 - #undef AT_FUNC_POST_FILE_PARAM_DECLS
427 - #undef AT_FUNC_POST_FILE_ARGS
428 -+
429 -+#endif /* HAVE_XATTRS */
430 ---
431 -2.4.0
432 -
433
434 diff --git a/app-arch/tar/files/tar.1-1.27 b/app-arch/tar/files/tar.1-1.27
435 deleted file mode 100644
436 index 700b569..00000000
437 --- a/app-arch/tar/files/tar.1-1.27
438 +++ /dev/null
439 @@ -1,388 +0,0 @@
440 -.\" generated by script on Mon Oct 21 08:29:21 2013
441 -.Dd Oct 21, 2013
442 -.Dt TAR 1
443 -.Sh NAME
444 -.Nm tar
445 -.Nd The GNU version of the tar archiving utility
446 -.Sh SYNOPSIS
447 -.Nm tar
448 -.Oo Fl Oc Cm A Fl \-catenate \-concatenate Cm \||\| c Fl \-create Cm \||\| d Fl \-diff \-compare Cm \||\| Fl \-delete Cm \||\| r Fl \-append Cm \||\| t Fl \-list Cm \||\| Fl \-test\-label Cm \||\| u Fl \-update Cm \||\| x Fl \-extract \-get
449 -.Op Ar options
450 -.Op Ar pathname ...
451 -.Sh DESCRIPTION
452 -.Nm Tar
453 -stores and extracts files from a tape or disk archive.
454 -.Pp
455 -The first argument to
456 -tar
457 -should be a function; either one of the letters
458 -.Cm Acdrtux ,
459 -or one of the long function names.
460 -A function letter need not be prefixed with ``\-'', and may be combined
461 -with other single-letter options.
462 -A long function name must be prefixed with
463 -.Cm \\-\\- .
464 -Some options take a parameter; with the single-letter form
465 -these must be given as separate arguments.
466 -With the long form, they may be given by appending
467 -.Cm = Ns Ar value
468 -to the option.
469 -.Sh FUNCTION LETTERS
470 -Main operation mode:
471 -.Bl -tag -width flag
472 -.It Fl A , Fl \-catenate , Fl \-concatenate
473 -append tar files to an archive
474 -.It Fl c , Fl \-create
475 -create a new archive
476 -.It Fl d , Fl \-diff , Fl \-compare
477 -find differences between archive and file system
478 -.It Fl \-delete
479 -delete from the archive (not on mag tapes!)
480 -.It Fl r , Fl \-append
481 -append files to the end of an archive
482 -.It Fl t , Fl \-list
483 -list the contents of an archive
484 -.It Fl \-test\-label
485 -test the archive volume label and exit
486 -.It Fl u , Fl \-update
487 -only append files newer than copy in archive
488 -.It Fl x , Fl \-extract , Fl \-get
489 -extract files from an archive
490 -.El
491 -.Sh OTHER OPTIONS
492 -Operation modifiers:
493 -.Bl -tag -width flag
494 -.It \-[0\-7][lmh]
495 -specify drive and density
496 -.It Fl a , Fl \-auto\-compress
497 -use archive suffix to determine the compression program
498 -.It Fl \-acls
499 -Enable the POSIX ACLs support
500 -.It Fl \-no\-acls
501 -Disable the POSIX ACLs support
502 -.It Fl \-add\-file Ns \= Ns Ar FILE
503 -add given FILE to the archive (useful if its name starts with a dash)
504 -.It Fl \-anchored
505 -patterns match file name start
506 -.It Fl \-no\-anchored
507 -patterns match after any '/' (default for exclusion)
508 -.It Fl \-atime\-preserve
509 -preserve access times on dumped files, either by restoring the times
510 -.It Fl \-no\-auto\-compress
511 -do not use archive suffix to determine the compression program
512 -.It Fl b , Fl \-blocking\-factor Ar BLOCKS
513 -BLOCKS x 512 bytes per record
514 -.It Fl B , Fl \-read\-full\-records
515 -reblock as we read (for 4.2BSD pipes)
516 -.It Fl \-backup
517 -backup before removal, choose version CONTROL
518 -.It Fl C , Fl \-directory Ar DIR
519 -change to directory DIR
520 -.It Fl \-check\-device
521 -check device numbers when creating incremental archives (default)
522 -.It Fl \-no\-check\-device
523 -do not check device numbers when creating incremental archives
524 -.It Fl \-checkpoint
525 -display progress messages every NUMBERth record (default 10)
526 -.It Fl \-checkpoint\-action Ns \= Ns Ar ACTION
527 -execute ACTION on each checkpoint
528 -.It Fl \-delay\-directory\-restore
529 -delay setting modification times and permissions of extracted
530 -.It Fl \-no\-delay\-directory\-restore
531 -cancel the effect of --delay-directory-restore option
532 -.It Fl \-exclude Ns \= Ns Ar PATTERN
533 -exclude files, given as a PATTERN
534 -.It Fl \-exclude\-backups
535 -exclude backup and lock files
536 -.It Fl \-exclude\-caches
537 -exclude contents of directories containing CACHEDIR.TAG,
538 -.It Fl \-exclude\-caches\-all
539 -exclude directories containing CACHEDIR.TAG
540 -.It Fl \-exclude\-caches\-under
541 -exclude everything under directories containing CACHEDIR.TAG
542 -.It Fl \-exclude\-tag Ns \= Ns Ar FILE
543 -exclude contents of directories containing FILE, except
544 -.It Fl \-exclude\-tag\-all Ns \= Ns Ar FILE
545 -exclude directories containing FILE
546 -.It Fl \-exclude\-tag\-under Ns \= Ns Ar FILE
547 -exclude everything under directories containing FILE
548 -.It Fl \-exclude\-vcs
549 -exclude version control system directories
550 -.It Fl f , Fl \-file Ar ARCHIVE
551 -use archive file or device ARCHIVE
552 -.It Fl F , Fl \-info\-script , Fl \-new\-volume\-script Ar NAME
553 -run script at end of each tape (implies -M)
554 -.It Fl \-force\-local
555 -archive file is local even if it has a colon
556 -.It Fl \-full\-time
557 -print file time to its full resolution
558 -.It Fl g , Fl \-listed\-incremental Ar FILE
559 -handle new GNU-format incremental backup
560 -.It Fl G , Fl \-incremental
561 -handle old GNU-format incremental backup
562 -.It Fl \-group Ns \= Ns Ar NAME
563 -force NAME as group for added files
564 -.It Fl h , Fl \-dereference
565 -follow symlinks; archive and dump the files they point to
566 -.It Fl H , Fl \-format Ar FORMAT
567 -create archive of the given formatFORMAT is one of the following:
568 -.Bl -tag -width flag
569 -.It Fl \-format=gnu
570 -GNU tar 1.13.x format
571 -.It Fl \-format=oldgnu
572 -GNU format as per tar <= 1.12
573 -.It Fl \-format=pax
574 -POSIX 1003.1-2001 (pax) format
575 -.It Fl \-format=posix
576 -same as pax
577 -.It Fl \-format=ustar
578 -POSIX 1003.1-1988 (ustar) format
579 -.It Fl \-format=v7
580 -old V7 tar format
581 -.El
582 -.It Fl \-hard\-dereference
583 -follow hard links; archive and dump the files they refer to
584 -.It Fl i , Fl \-ignore\-zeros
585 -ignore zeroed blocks in archive (means EOF)
586 -.It Fl I , Fl \-use\-compress\-program Ar PROG
587 -filter through PROG (must accept -d)
588 -.It Fl \-ignore\-case
589 -ignore case
590 -.It Fl \-no\-ignore\-case
591 -case sensitive matching (default)
592 -.It Fl \-ignore\-command\-error
593 -ignore exit codes of children
594 -.It Fl \-no\-ignore\-command\-error
595 -treat non-zero exit codes of children as error
596 -.It Fl \-ignore\-failed\-read
597 -do not exit with nonzero on unreadable files
598 -.It Fl \-index\-file Ns \= Ns Ar FILE
599 -send verbose output to FILE
600 -.It Fl j , Fl \-bzip2
601 -
602 -.It Fl J , Fl \-xz
603 -
604 -.It Fl k , Fl \-keep\-old\-files
605 -don't replace existing files when extracting,
606 -.It Fl K , Fl \-starting\-file Ar MEMBER-NAME
607 -begin at member MEMBER-NAME when reading the archive
608 -.It Fl \-keep\-directory\-symlink
609 -preserve existing symlinks to directories when extracting
610 -.It Fl \-keep\-newer\-files
611 -don't replace existing files that are newer than their archive copies
612 -.It Fl l , Fl \-check\-links
613 -print a message if not all links are dumped
614 -.It Fl L , Fl \-tape\-length Ar NUMBER
615 -change tape after writing NUMBER x 1024 bytes
616 -.It Fl \-level Ns \= Ns Ar NUMBER
617 -dump level for created listed-incremental archive
618 -.It Fl \-lzip
619 -
620 -.It Fl \-lzma
621 -
622 -.It Fl \-lzop
623 -
624 -.It Fl m , Fl \-touch
625 -don't extract file modified time
626 -.It Fl M , Fl \-multi\-volume
627 -create/list/extract multi-volume archive
628 -.It Fl \-mode Ns \= Ns Ar CHANGES
629 -force (symbolic) mode CHANGES for added files
630 -.It Fl \-mtime Ns \= Ns Ar DATE-OR-FILE
631 -set mtime for added files from DATE-OR-FILE
632 -.It Fl n , Fl \-seek
633 -archive is seekable
634 -.It Fl N , Fl \-newer , Fl \-after\-date Ar DATE-OR-FILE
635 -only store files newer than DATE-OR-FILE
636 -.It Fl \-newer\-mtime Ns \= Ns Ar DATE
637 -compare date and time when data changed only
638 -.It Fl \-null
639 --T reads null-terminated names, disable -C
640 -.It Fl \-no\-null
641 -disable the effect of the previous --null option
642 -.It Fl \-numeric\-owner
643 -always use numbers for user/group names
644 -.It Fl O , Fl \-to\-stdout
645 -extract files to standard output
646 -.It Fl \-occurrence
647 -process only the NUMBERth occurrence of each file in the archive;
648 -.It Fl \-old\-archive , Fl \-portability
649 -same as --format=v7
650 -.It Fl \-one\-file\-system
651 -stay in local file system when creating archive
652 -.It Fl \-overwrite
653 -overwrite existing files when extracting
654 -.It Fl \-overwrite\-dir
655 -overwrite metadata of existing directories when extracting (default)
656 -.It Fl \-no\-overwrite\-dir
657 -preserve metadata of existing directories
658 -.It Fl \-owner Ns \= Ns Ar NAME
659 -force NAME as owner for added files
660 -.It Fl p , Fl \-preserve\-permissions , Fl \-same\-permissions
661 -extract information about file permissions (default for superuser)
662 -.It Fl P , Fl \-absolute\-names
663 -don't strip leading '/'s from file names
664 -.It Fl \-pax\-option Ns \= Ns Ar keyword[[:]=value][,keyword[[:]=value]]...
665 -control pax keywords
666 -.It Fl \-posix
667 -same as --format=posix
668 -.It Fl \-preserve
669 -same as both -p and -s
670 -.It Fl \-quote\-chars Ns \= Ns Ar STRING
671 -additionally quote characters from STRING
672 -.It Fl \-no\-quote\-chars Ns \= Ns Ar STRING
673 -disable quoting for characters from STRING
674 -.It Fl \-quoting\-style Ns \= Ns Ar STYLE
675 -set name quoting style; see below for valid STYLE values
676 -.It Fl R , Fl \-block\-number
677 -show block number within archive with each message
678 -.It Fl \-record\-size Ns \= Ns Ar NUMBER
679 -NUMBER of bytes per record, multiple of 512
680 -.It Fl \-recursion
681 -recurse into directories (default)
682 -.It Fl \-no\-recursion
683 -avoid descending automatically in directories
684 -.It Fl \-recursive\-unlink
685 -empty hierarchies prior to extracting directory
686 -.It Fl \-remove\-files
687 -remove files after adding them to the archive
688 -.It Fl \-restrict
689 -disable use of some potentially harmful options
690 -.It Fl \-rmt\-command Ns \= Ns Ar COMMAND
691 -use given rmt COMMAND instead of rmt
692 -.It Fl \-rsh\-command Ns \= Ns Ar COMMAND
693 -use remote COMMAND instead of rsh
694 -.It Fl s , Fl \-preserve\-order , Fl \-same\-order
695 -member arguments are listed in the same order as the
696 -.It Fl S , Fl \-sparse
697 -handle sparse files efficiently
698 -.It Fl \-same\-owner
699 -try extracting files with the same ownership as exists in the archive (default for superuser)
700 -.It Fl \-no\-same\-owner
701 -extract files as yourself (default for ordinary users)
702 -.It Fl \-no\-same\-permissions
703 -apply the user's umask when extracting permissions from the archive (default for ordinary users)
704 -.It Fl \-no\-seek
705 -archive is not seekable
706 -.It Fl \-selinux
707 -Enable the SELinux context support
708 -.It Fl \-no\-selinux
709 -Disable the SELinux context support
710 -.It Fl \-show\-defaults
711 -show tar defaults
712 -.It Fl \-show\-omitted\-dirs
713 -when listing or extracting, list each directory that does not match search criteria
714 -.It Fl \-show\-snapshot\-field\-ranges
715 -show valid ranges for snapshot-file fields
716 -.It Fl \-show\-transformed\-names , Fl \-show\-stored\-names
717 -show file or archive names after transformation
718 -.It Fl \-skip\-old\-files
719 -don't replace existing files when extracting, silently skip over them
720 -.It Fl \-sparse\-version Ns \= Ns Ar MAJOR[.MINOR]
721 -set version of the sparse format to use (implies --sparse)
722 -.It Fl \-strip\-components Ns \= Ns Ar NUMBER
723 -strip NUMBER leading components from file names on extraction
724 -.It Fl \-suffix Ns \= Ns Ar STRING
725 -backup before removal, override usual suffix ('~' unless overridden by environment variable SIMPLE_BACKUP_SUFFIX)
726 -.It Fl T , Fl \-files\-from Ar FILE
727 -get names to extract or create from FILE
728 -.It Fl \-to\-command Ns \= Ns Ar COMMAND
729 -pipe extracted files to another program
730 -.It Fl \-totals
731 -print total bytes after processing the archive;
732 -.It Fl \-transform , Fl \-xform Ar EXPRESSION
733 -use sed replace EXPRESSION to transform file names
734 -.It Fl U , Fl \-unlink\-first
735 -remove each file prior to extracting over it
736 -.It Fl \-unquote
737 -unquote filenames read with -T (default)
738 -.It Fl \-no\-unquote
739 -do not unquote filenames read with -T
740 -.It Fl \-utc
741 -print file modification times in UTC
742 -.It Fl v , Fl \-verbose
743 -verbosely list files processed
744 -.It Fl V , Fl \-label Ar TEXT
745 -create archive with volume name TEXT; at list/extract time, use TEXT as a globbing pattern for volume name
746 -.It Fl \-volno\-file Ns \= Ns Ar FILE
747 -use/update the volume number in FILE
748 -.It Fl w , Fl \-interactive , Fl \-confirmation
749 -ask for confirmation for every action
750 -.It Fl W , Fl \-verify
751 -attempt to verify the archive after writing it
752 -.It Fl \-warning Ns \= Ns Ar KEYWORD
753 -warning control
754 -.It Fl \-wildcards
755 -use wildcards (default for exclusion)
756 -.It Fl \-wildcards\-match\-slash
757 -wildcards match '/' (default for exclusion)
758 -.It Fl \-no\-wildcards\-match\-slash
759 -wildcards do not match '/'
760 -.It Fl \-no\-wildcards
761 -verbatim string matching
762 -.It Fl X , Fl \-exclude\-from Ar FILE
763 -exclude patterns listed in FILE
764 -.It Fl \-xattrs
765 -Enable extended attributes support
766 -.It Fl \-xattrs\-exclude Ns \= Ns Ar MASK
767 -specify the exclude pattern for xattr keys
768 -.It Fl \-xattrs\-include Ns \= Ns Ar MASK
769 -specify the include pattern for xattr keys
770 -.It Fl \-no\-xattrs
771 -Disable extended attributes support
772 -.It Fl z , Fl \-gzip , Fl \-gunzip Fl \-ungzip
773 -
774 -.It Fl Z , Fl \-compress , Fl \-uncompress
775 -
776 -.El
777 -.Sh ENVIRONMENT
778 -The behavior of tar is controlled by the following environment variables,
779 -among others:
780 -.Bl -tag -width Ds
781 -.It Ev SIMPLE_BACKUP_SUFFIX
782 -Backup prefix to use when extracting, if
783 -.Fl \-suffix
784 -is not specified.
785 -The backup suffix defaults to `~' if neither is specified.
786 -.It Ev TAR_OPTIONS
787 -Options to prepend to those specified on the command line, separated by
788 -whitespace. Embedded backslashes may be used to escape whitespace or
789 -backslashes within an option.
790 -.It Ev TAPE
791 -Device or file to use for the archive if
792 -.Fl \-file
793 -is not specified.
794 -If this environment variable is unset, use stdin or stdout instead.
795 -.El
796 -.Sh EXAMPLES
797 -Create archive.tar from files foo and bar.
798 -.Bd -literal -offset indent -compact
799 -tar \-cf archive.tar foo bar
800 -.Ed
801 -List all files in archive.tar verbosely.
802 -.Bd -literal -offset indent -compact
803 -tar \-tvf archive.tar
804 -.Ed
805 -Extract all files from archive.tar.
806 -.Bd -literal -offset indent -compact
807 -tar \-xf archive.tar
808 -.Ed
809 -.Sh SEE ALSO
810 -.\" libarchive
811 -.Xr tar 5 ,
812 -.\" man-pages
813 -.Xr symlink 7 ,
814 -.Xr rmt 8
815 -.Sh HISTORY
816 -The
817 -.Nm tar
818 -command appeared in
819 -.At v7 .
820 -.Sh BUGS
821 -The GNU folks, in general, abhor man pages, and create info documents instead.
822 -Unfortunately, the info document describing tar is licensed under the GFDL with
823 -invariant cover texts, which makes it impossible to include any text
824 -from that document in this man page.
825 -Most of the text in this document was automatically extracted from the usage
826 -text in the source.
827 -It may not completely describe all features of the program.
828
829 diff --git a/app-arch/tar/tar-1.27.1-r2.ebuild b/app-arch/tar/tar-1.27.1-r2.ebuild
830 deleted file mode 100644
831 index 8c01c37..00000000
832 --- a/app-arch/tar/tar-1.27.1-r2.ebuild
833 +++ /dev/null
834 @@ -1,79 +0,0 @@
835 -# Copyright 1999-2014 Gentoo Foundation
836 -# Distributed under the terms of the GNU General Public License v2
837 -# $Id$
838 -
839 -EAPI=4
840 -
841 -inherit flag-o-matic eutils
842 -
843 -DESCRIPTION="Use this to make tarballs :)"
844 -HOMEPAGE="https://www.gnu.org/software/tar/"
845 -SRC_URI="mirror://gnu/tar/${P}.tar.bz2
846 - mirror://gnu-alpha/tar/${P}.tar.bz2"
847 -
848 -LICENSE="GPL-3+"
849 -SLOT="0"
850 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
851 -IUSE="acl minimal nls selinux static userland_GNU xattr"
852 -
853 -RDEPEND="acl? ( virtual/acl )
854 - selinux? ( sys-libs/libselinux )"
855 -DEPEND="${RDEPEND}
856 - nls? ( >=sys-devel/gettext-0.10.35 )
857 - xattr? ( sys-apps/attr )"
858 -
859 -src_prepare() {
860 - EPATCH_OPTS="-Z" \
861 - epatch "${FILESDIR}/${P}-xattr_build_fix.patch"
862 - epatch "${FILESDIR}/${P}-recursion_norecursion.patch"
863 - if ! use userland_GNU ; then
864 - sed -i \
865 - -e 's:/backup\.sh:/gbackup.sh:' \
866 - scripts/{backup,dump-remind,restore}.in \
867 - || die "sed non-GNU"
868 - fi
869 -}
870 -
871 -src_configure() {
872 - use static && append-ldflags -static
873 - FORCE_UNSAFE_CONFIGURE=1 \
874 - econf \
875 - --enable-backup-scripts \
876 - --bindir="${EPREFIX}"/bin \
877 - --libexecdir="${EPREFIX}"/usr/sbin \
878 - $(usex userland_GNU "" "--program-prefix=g") \
879 - $(use_with acl posix-acls) \
880 - $(use_enable nls) \
881 - $(use_with selinux) \
882 - $(use_with xattr xattrs)
883 -}
884 -
885 -src_install() {
886 - emake DESTDIR="${D}" install
887 -
888 - local p=$(usex userland_GNU "" "g")
889 - if [[ -z ${p} ]] ; then
890 - # a nasty yet required piece of baggage
891 - exeinto /etc
892 - doexe "${FILESDIR}"/rmt
893 - fi
894 -
895 - # autoconf looks for gtar before tar (in configure scripts), hence
896 - # in Prefix it is important that it is there, otherwise, a gtar from
897 - # the host system (FreeBSD, Solaris, Darwin) will be found instead
898 - # of the Prefix provided (GNU) tar
899 - if use prefix ; then
900 - dosym tar /bin/gtar
901 - fi
902 -
903 - dodoc AUTHORS ChangeLog* NEWS README* THANKS
904 - newman "${FILESDIR}"/tar.1-1.27 ${p}tar.1
905 - mv "${ED}"/usr/sbin/${p}backup{,-tar} || die
906 - mv "${ED}"/usr/sbin/${p}restore{,-tar} || die
907 -
908 - if use minimal ; then
909 - find "${ED}"/etc "${ED}"/*bin/ "${ED}"/usr/*bin/ \
910 - -type f -a '!' '(' -name tar -o -name ${p}tar ')' \
911 - -delete || die
912 - fi
913 -}
914
915 diff --git a/app-arch/tar/tar-1.28-r1.ebuild b/app-arch/tar/tar-1.28-r1.ebuild
916 deleted file mode 100644
917 index ee145ec..00000000
918 --- a/app-arch/tar/tar-1.28-r1.ebuild
919 +++ /dev/null
920 @@ -1,76 +0,0 @@
921 -# Copyright 1999-2016 Gentoo Foundation
922 -# Distributed under the terms of the GNU General Public License v2
923 -# $Id$
924 -
925 -EAPI=4
926 -
927 -inherit flag-o-matic eutils
928 -
929 -DESCRIPTION="Use this to make tarballs :)"
930 -HOMEPAGE="https://www.gnu.org/software/tar/"
931 -SRC_URI="mirror://gnu/tar/${P}.tar.bz2
932 - mirror://gnu-alpha/tar/${P}.tar.bz2"
933 -
934 -LICENSE="GPL-3+"
935 -SLOT="0"
936 -KEYWORDS="alpha amd64 arm ~arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
937 -IUSE="acl elibc_glibc minimal nls selinux static userland_GNU xattr"
938 -
939 -RDEPEND="acl? ( virtual/acl )
940 - selinux? ( sys-libs/libselinux )"
941 -DEPEND="${RDEPEND}
942 - nls? ( >=sys-devel/gettext-0.10.35 )
943 - xattr? ( elibc_glibc? ( sys-apps/attr ) )"
944 -
945 -src_prepare() {
946 - if ! use userland_GNU ; then
947 - sed -i \
948 - -e 's:/backup\.sh:/gbackup.sh:' \
949 - scripts/{backup,dump-remind,restore}.in \
950 - || die "sed non-GNU"
951 - fi
952 - epatch "${FILESDIR}"/${P}-concat-listed.patch #546294
953 - epatch "${FILESDIR}"/${P}-xattr.patch #548024
954 -}
955 -
956 -src_configure() {
957 - use static && append-ldflags -static
958 - FORCE_UNSAFE_CONFIGURE=1 \
959 - econf \
960 - --enable-backup-scripts \
961 - --bindir="${EPREFIX}"/bin \
962 - --libexecdir="${EPREFIX}"/usr/sbin \
963 - $(usex userland_GNU "" "--program-prefix=g") \
964 - $(use_with acl posix-acls) \
965 - $(use_enable nls) \
966 - $(use_with selinux) \
967 - $(use_with xattr xattrs)
968 -}
969 -
970 -src_install() {
971 - default
972 -
973 - local p=$(usex userland_GNU "" "g")
974 - if [[ -z ${p} ]] ; then
975 - # a nasty yet required piece of baggage
976 - exeinto /etc
977 - doexe "${FILESDIR}"/rmt
978 - fi
979 -
980 - # autoconf looks for gtar before tar (in configure scripts), hence
981 - # in Prefix it is important that it is there, otherwise, a gtar from
982 - # the host system (FreeBSD, Solaris, Darwin) will be found instead
983 - # of the Prefix provided (GNU) tar
984 - if use prefix ; then
985 - dosym tar /bin/gtar
986 - fi
987 -
988 - mv "${ED}"/usr/sbin/${p}backup{,-tar} || die
989 - mv "${ED}"/usr/sbin/${p}restore{,-tar} || die
990 -
991 - if use minimal ; then
992 - find "${ED}"/etc "${ED}"/*bin/ "${ED}"/usr/*bin/ \
993 - -type f -a '!' '(' -name tar -o -name ${p}tar ')' \
994 - -delete || die
995 - fi
996 -}
997
998 diff --git a/app-arch/tar/tar-1.29.ebuild b/app-arch/tar/tar-1.29.ebuild
999 deleted file mode 100644
1000 index 02f2c7e..00000000
1001 --- a/app-arch/tar/tar-1.29.ebuild
1002 +++ /dev/null
1003 @@ -1,74 +0,0 @@
1004 -# Copyright 1999-2016 Gentoo Foundation
1005 -# Distributed under the terms of the GNU General Public License v2
1006 -# $Id$
1007 -
1008 -EAPI=5
1009 -
1010 -inherit flag-o-matic eutils
1011 -
1012 -DESCRIPTION="Use this to make tarballs :)"
1013 -HOMEPAGE="https://www.gnu.org/software/tar/"
1014 -SRC_URI="mirror://gnu/tar/${P}.tar.bz2
1015 - mirror://gnu-alpha/tar/${P}.tar.bz2"
1016 -
1017 -LICENSE="GPL-3+"
1018 -SLOT="0"
1019 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1020 -IUSE="acl elibc_glibc minimal nls selinux static userland_GNU xattr"
1021 -
1022 -RDEPEND="acl? ( virtual/acl )
1023 - selinux? ( sys-libs/libselinux )"
1024 -DEPEND="${RDEPEND}
1025 - nls? ( >=sys-devel/gettext-0.10.35 )
1026 - xattr? ( elibc_glibc? ( sys-apps/attr ) )"
1027 -
1028 -src_prepare() {
1029 - if ! use userland_GNU ; then
1030 - sed -i \
1031 - -e 's:/backup\.sh:/gbackup.sh:' \
1032 - scripts/{backup,dump-remind,restore}.in \
1033 - || die "sed non-GNU"
1034 - fi
1035 -}
1036 -
1037 -src_configure() {
1038 - use static && append-ldflags -static
1039 - FORCE_UNSAFE_CONFIGURE=1 \
1040 - econf \
1041 - --enable-backup-scripts \
1042 - --bindir="${EPREFIX}"/bin \
1043 - --libexecdir="${EPREFIX}"/usr/sbin \
1044 - $(usex userland_GNU "" "--program-prefix=g") \
1045 - $(use_with acl posix-acls) \
1046 - $(use_enable nls) \
1047 - $(use_with selinux) \
1048 - $(use_with xattr xattrs)
1049 -}
1050 -
1051 -src_install() {
1052 - default
1053 -
1054 - local p=$(usex userland_GNU "" "g")
1055 - if [[ -z ${p} ]] ; then
1056 - # a nasty yet required piece of baggage
1057 - exeinto /etc
1058 - doexe "${FILESDIR}"/rmt
1059 - fi
1060 -
1061 - # autoconf looks for gtar before tar (in configure scripts), hence
1062 - # in Prefix it is important that it is there, otherwise, a gtar from
1063 - # the host system (FreeBSD, Solaris, Darwin) will be found instead
1064 - # of the Prefix provided (GNU) tar
1065 - if use prefix ; then
1066 - dosym tar /bin/gtar
1067 - fi
1068 -
1069 - mv "${ED}"/usr/sbin/${p}backup{,-tar} || die
1070 - mv "${ED}"/usr/sbin/${p}restore{,-tar} || die
1071 -
1072 - if use minimal ; then
1073 - find "${ED}"/etc "${ED}"/*bin/ "${ED}"/usr/*bin/ \
1074 - -type f -a '!' '(' -name tar -o -name ${p}tar ')' \
1075 - -delete || die
1076 - fi
1077 -}