Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-apps/man/files/, sys-apps/man/
Date: Tue, 22 Dec 2020 21:05:21
Message-Id: 1608671066.1828deec2f8fb741b9a1f6abf1fcec756387eafd.grobian@gentoo
1 commit: 1828deec2f8fb741b9a1f6abf1fcec756387eafd
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 22 21:04:26 2020 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 22 21:04:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=1828deec
7
8 sys-apps/man: drop ~ppc-aix
9
10 Bug: https://bugs.gentoo.org/760057
11 Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2
12 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
13
14 sys-apps/man/files/man-1.5m-groff-1.18.patch | 31 ----
15 .../man/files/man-1.5p-defmanpath-symlinks.patch | 26 ---
16 sys-apps/man/files/man-1.5p-search-order.patch | 19 ---
17 sys-apps/man/files/man-1.6b-more-sections.patch | 13 --
18 sys-apps/man/files/man-1.6d-fbsd.patch | 15 --
19 sys-apps/man/files/man-1.6e-bsdish.patch | 15 --
20 .../man/files/man-1.6e-dont-kill-shebangs.patch | 25 ---
21 sys-apps/man/files/man-1.6e-hpux.patch | 11 --
22 sys-apps/man/files/man-1.6e-man2html-bzip2.patch | 53 ------
23 sys-apps/man/files/man-1.6e-prefix-path.patch | 41 -----
24 sys-apps/man/files/man-1.6e-readonly-whatis.patch | 56 ------
25 sys-apps/man/files/man-1.6e-readonly-whatis2.patch | 47 ------
26 sys-apps/man/files/man-1.6f-compress.patch | 42 -----
27 sys-apps/man/files/man-1.6f-echo.patch | 30 ----
28 .../man/files/man-1.6f-interix-all_source.patch | 12 --
29 sys-apps/man/files/man-1.6f-irix.patch | 22 ---
30 .../man/files/man-1.6f-man2html-compression.patch | 54 ------
31 sys-apps/man/files/man-1.6f-so-search.patch | 34 ----
32 sys-apps/man/files/man-1.6f-xz.patch | 128 --------------
33 sys-apps/man/man-1.6g-r1.ebuild | 8 +-
34 sys-apps/man/man-1.6g.ebuild | 188 ---------------------
35 21 files changed, 2 insertions(+), 868 deletions(-)
36
37 diff --git a/sys-apps/man/files/man-1.5m-groff-1.18.patch b/sys-apps/man/files/man-1.5m-groff-1.18.patch
38 deleted file mode 100644
39 index 08dff37503..0000000000
40 --- a/sys-apps/man/files/man-1.5m-groff-1.18.patch
41 +++ /dev/null
42 @@ -1,31 +0,0 @@
43 -With newer versions of groff (1.18+), we need to use -c
44 -so as to filter color output.
45 -
46 -Also, change the -Tlatin1 to -Tascii to get rid of '<B7>'
47 -gremlins and output the normal bullets 'o'.
48 -http://bugs.gentoo.org/show_bug.cgi?id=44201
49 -
50 ---- man-1.5k/configure.orig 2002-12-26 06:23:53.000000000 +0200
51 -+++ man-1.5k/configure 2002-12-26 06:25:14.000000000 +0200
52 -@@ -473,9 +473,9 @@
53 - then
54 - if test $Fnroff = "missing"
55 - then
56 -- nroff="nroff -Tlatin1 -mandoc"
57 -+ nroff="nroff -Tascii -c -mandoc"
58 - else
59 -- nroff="$Fnroff -Tlatin1 -mandoc"
60 -+ nroff="$Fnroff -Tascii -c -mandoc"
61 - fi
62 - troff="troff -mandoc"
63 - echo "Warning: could not find groff"
64 -@@ -484,7 +484,7 @@
65 - then
66 - nroff="$Fgroff -Tlatin1 -mandoc"
67 - else
68 -- nroff="$Fnroff -Tlatin1 -mandoc"
69 -+ nroff="$Fnroff -Tascii -c -mandoc"
70 - fi
71 - troff="$Fgroff -Tps -mandoc"
72 - jnroff="$Fgroff -Tnippon -mandocj"
73 -
74
75 diff --git a/sys-apps/man/files/man-1.5p-defmanpath-symlinks.patch b/sys-apps/man/files/man-1.5p-defmanpath-symlinks.patch
76 deleted file mode 100644
77 index f8ff4f4459..0000000000
78 --- a/sys-apps/man/files/man-1.5p-defmanpath-symlinks.patch
79 +++ /dev/null
80 @@ -1,26 +0,0 @@
81 -makewhatis traverses manpages twice, as default manpath contains two
82 -directories that are symlinked together ... this isn't a real fix, just
83 -a workaround that should be OK for the way Gentoo does things. a real
84 -fix would be to filter out any directories which resolv to the same
85 -directory ...
86 -
87 ---- man-1.5o2/src/makewhatis.sh
88 -+++ man-1.5o2/src/makewhatis.sh
89 -@@ -41,7 +41,7 @@
90 - # and should be first.
91 - # It is a bug to add /var/cache/man to DEFCATPATH.
92 - dm=
93 --for d in /usr/man /usr/share/man /usr/X11R6/man /usr/local/man
94 -+for d in /usr/local/man /usr/share/man
95 - do
96 - if [ -d $d ]; then
97 - if [ x$dm = x ]; then dm=$d; else dm=$dm:$d; fi
98 -@@ -49,7 +49,7 @@
99 - done
100 - DEFMANPATH=$dm
101 - dc=
102 --for d in /usr/man/preformat /usr/man /usr/share/man/preformat /usr/share/man
103 -+for d in /usr/local/man /usr/share/man
104 - do
105 - if [ -d $d ]; then
106 - if [ x$dc = x ]; then dc=$d; else dc=$dc:$d; fi
107
108 diff --git a/sys-apps/man/files/man-1.5p-search-order.patch b/sys-apps/man/files/man-1.5p-search-order.patch
109 deleted file mode 100644
110 index b6603b6cf0..0000000000
111 --- a/sys-apps/man/files/man-1.5p-search-order.patch
112 +++ /dev/null
113 @@ -1,19 +0,0 @@
114 -Fix search order in man.conf so that system installed manpages
115 -will be found first ...
116 -
117 ---- man-1.5p/src/man.conf.in
118 -+++ man-1.5p/src/man.conf.in
119 -@@ -36,11 +36,11 @@
120 - #
121 - # Every automatically generated MANPATH includes these fields
122 - #
123 --MANPATH /usr/man
124 - MANPATH /usr/share/man
125 --MANPATH /usr/local/man
126 - MANPATH /usr/local/share/man
127 - MANPATH /usr/X11R6/man
128 -+MANPATH /usr/local/man
129 -+MANPATH /usr/man
130 - #
131 - # Uncomment if you want to include one of these by default
132 - #
133
134 diff --git a/sys-apps/man/files/man-1.6b-more-sections.patch b/sys-apps/man/files/man-1.6b-more-sections.patch
135 deleted file mode 100644
136 index 9e13c09e8f..0000000000
137 --- a/sys-apps/man/files/man-1.6b-more-sections.patch
138 +++ /dev/null
139 @@ -1,13 +0,0 @@
140 -[1-8]x are for xorg man-pages
141 -
142 ---- configure
143 -+++ configure
144 -@@ -949,7 +949,7 @@
145 -
146 - # What sections do we anticipate?
147 -
148 --tmpsections="1 1p 8 2 3 3p 4 5 6 7 9 0p tcl n l p o"
149 -+tmpsections="1 1p 8 2 3 3p 4 5 6 7 9 0p tcl n l p o 1x 2x 3x 4x 5x 6x 7x 8x"
150 -
151 - if [ x$default = x ]; then
152 - echo ""
153
154 diff --git a/sys-apps/man/files/man-1.6d-fbsd.patch b/sys-apps/man/files/man-1.6d-fbsd.patch
155 deleted file mode 100644
156 index 62189e0e85..0000000000
157 --- a/sys-apps/man/files/man-1.6d-fbsd.patch
158 +++ /dev/null
159 @@ -1,15 +0,0 @@
160 -Fixes compilation in FreeBSD
161 -
162 -http://bugs.gentoo.org/138123
163 -
164 ---- man-1.6d/gencat/genlib.c
165 -+++ man-1.6d/gencat/genlib.c
166 -@@ -54,7 +54,7 @@
167 - #include <unistd.h>
168 - #endif
169 -
170 --#ifndef __linux__
171 -+#if !defined(__linux__) && !defined(__FreeBSD__)
172 - #include <memory.h>
173 - static int bcopy(src, dst, length)
174 - char *src, *dst;
175
176 diff --git a/sys-apps/man/files/man-1.6e-bsdish.patch b/sys-apps/man/files/man-1.6e-bsdish.patch
177 deleted file mode 100644
178 index d79ea1a723..0000000000
179 --- a/sys-apps/man/files/man-1.6e-bsdish.patch
180 +++ /dev/null
181 @@ -1,15 +0,0 @@
182 -This patch could be easily merged with the FreeBSD one, but we don't
183 -because the files have no CVS header and then auto syncing overwrites
184 -the local difference we make. <grobian@g.o>
185 -
186 ---- gencat/genlib.c
187 -+++ gencat/genlib.c
188 -@@ -54,7 +54,7 @@
189 - #include <unistd.h>
190 - #endif
191 -
192 --#if !defined(__linux__) && !defined(__FreeBSD__)
193 -+#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__NetBSD__)
194 - #include <memory.h>
195 - static int bcopy(src, dst, length)
196 - char *src, *dst;
197
198 diff --git a/sys-apps/man/files/man-1.6e-dont-kill-shebangs.patch b/sys-apps/man/files/man-1.6e-dont-kill-shebangs.patch
199 deleted file mode 100644
200 index dbbc243b56..0000000000
201 --- a/sys-apps/man/files/man-1.6e-dont-kill-shebangs.patch
202 +++ /dev/null
203 @@ -1,25 +0,0 @@
204 -http://bugs.gentoo.org/159192
205 -
206 ---- configure
207 -+++ configure
208 -@@ -1250,6 +1250,7 @@
209 - allargs='$@'
210 - infiles='$infiles'
211 - infile='$infile'
212 -+shebang='`sed -n -e 1p $infile.in`'
213 - cb='$cb'
214 - cs='$cs'
215 - ce='$ce'
216 -@@ -1273,7 +1274,11 @@
217 - *.1|*.5|*.8|*.man)
218 - cb=$mancomment; cs=$mancomment; ce=$mancomment;;
219 - *)
220 -- cb="#"; cs="#"; ce="#";;
221 -+ case "$shebang" in
222 -+ '#!'*) cb="$shebang";;
223 -+ *) cb="#";;
224 -+ esac
225 -+ cs="#"; ce="#";;
226 - esac
227 - echo "$cb" > $infile
228 - echo "$cs Generated automatically from $infile.in by the" >> $infile
229
230 diff --git a/sys-apps/man/files/man-1.6e-hpux.patch b/sys-apps/man/files/man-1.6e-hpux.patch
231 deleted file mode 100644
232 index 4af30bf85f..0000000000
233 --- a/sys-apps/man/files/man-1.6e-hpux.patch
234 +++ /dev/null
235 @@ -1,11 +0,0 @@
236 ---- src/man-getopt.c.orig 2007-11-20 14:52:24 +0100
237 -+++ src/man-getopt.c 2007-11-20 14:52:38 +0100
238 -@@ -233,7 +233,7 @@
239 -
240 - static void
241 - mysetenv(const char *name, const char *value) {
242 --#if defined(__sgi__) || defined(__sun__) || defined(sun)
243 -+#if defined(__sgi__) || defined(__sun__) || defined(sun) || defined(__hpux)
244 - int len = strlen(value)+1+strlen(value)+1;
245 - char *str = my_malloc(len);
246 - sprintf(str, "%s=%s", name, value);
247
248 diff --git a/sys-apps/man/files/man-1.6e-man2html-bzip2.patch b/sys-apps/man/files/man-1.6e-man2html-bzip2.patch
249 deleted file mode 100644
250 index 091d4bdecc..0000000000
251 --- a/sys-apps/man/files/man-1.6e-man2html-bzip2.patch
252 +++ /dev/null
253 @@ -1,53 +0,0 @@
254 -add support for bzip2 compression to man2html and friends
255 -
256 ---- man2html/glimpse_filters
257 -+++ man2html/glimpse_filters
258 -@@ -1,3 +1,4 @@
259 -+*.bz2 bzip2 -d -c
260 - *.gz gzip -d -c
261 - *.Z gzip -d -c
262 -
263 ---- man2html/scripts/cgi-bin/man/man2html
264 -+++ man2html/scripts/cgi-bin/man/man2html
265 -@@ -87,6 +87,9 @@
266 - if [ -r "$PAGE" ]
267 - then
268 - case "$PAGE" in
269 -+ *.bz2)
270 -+ bzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE"
271 -+ ;;
272 - *.gz)
273 - zcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE"
274 - ;;
275 -@@ -94,6 +97,9 @@
276 - "$MAN2HTML" "$LL" "$PAGE"
277 - ;;
278 - esac
279 -+elif [ -r "$PAGE".bz2 ]
280 -+then
281 -+ bzcat "$PAGE".bz2 | "$MAN2HTML" "$LL" -D "$PAGE"
282 - elif [ -r "$PAGE".gz ]
283 - then
284 - zcat "$PAGE".gz | "$MAN2HTML" "$LL" -D "$PAGE"
285 ---- man2html/scripts/cgi-bin/man/mansearch
286 -+++ man2html/scripts/cgi-bin/man/mansearch
287 -@@ -153,7 +153,7 @@
288 - }
289 - print "<DT> <a href=\"" cgipath "/man2html?" fullname "\">";
290 - textname = filename;
291 -- sub(/\.(gz)|Z|z$/, "", textname);
292 -+ sub(/\.(gz)|(bz2)|Z|z$/, "", textname);
293 - sub(/\./, "(", textname);
294 - textname = textname ")";
295 - print textname;
296 ---- man2html/scripts/cgi-bin/man/mansec
297 -+++ man2html/scripts/cgi-bin/man/mansec
298 -@@ -128,7 +128,7 @@
299 - # Print out alphabetic quick index and other links
300 - }
301 - # Split page.n into "page" and "n" and generate an entry
302 -- sub(/[.]([zZ]|(gz))$/, "", manpage);
303 -+ sub(/[.]([zZ]|(gz)|(bz2))$/, "", manpage);
304 - match(manpage, /[.][^.]+$/);
305 - title = substr(manpage, 1, RSTART - 1);
306 - if (section != "all") {
307
308 diff --git a/sys-apps/man/files/man-1.6e-prefix-path.patch b/sys-apps/man/files/man-1.6e-prefix-path.patch
309 deleted file mode 100644
310 index 823704a17e..0000000000
311 --- a/sys-apps/man/files/man-1.6e-prefix-path.patch
312 +++ /dev/null
313 @@ -1,41 +0,0 @@
314 ---- configure
315 -+++ configure
316 -@@ -360,7 +360,8 @@
317 - # for i in /bin:/usr/bin:$PATH
318 - # does not work everywhere.)
319 - # Some people might prefer having $PATH first in PREPATH
320 --PREPATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:$PATH
321 -+# => Yes we do in prefix
322 -+PREPATH=$PATH:/bin:/usr/bin:/usr/ucb:/usr/local/bin
323 - IFS0="$IFS"
324 - IFS=":$IFS"
325 - for i in $PREPATH
326 -@@ -824,7 +824,7 @@
327 -
328 - if [ "x$languages" != x -a "x$languages" != xen ]
329 - then
330 -- DEF_NLSPATH="/usr/share/locale/%L/%N:/usr/lib/locale/%N/%L"
331 -+ DEF_NLSPATH="${prefix}/share/locale/%L/%N:${prefix}/lib/locale/%N/%L"
332 - deflocalepath=`echo $NLSPATH:$DEF_NLSPATH | sed 's/:/ /g'`
333 - for i in $deflocalepath; do
334 - if [ x$deflocale = x ]; then
335 -@@ -840,7 +840,7 @@
336 - fi
337 - done
338 - if [ x$deflocale = x ]; then
339 -- deflocale="/usr/lib/locale/%N/%L"
340 -+ deflocale="${prefix}/lib/locale/%N/%L"
341 - fi
342 - if [ x$default = x ]; then
343 - echo ""
344 ---- man2html/Makefile.in
345 -+++ man2html/Makefile.in
346 -@@ -1,7 +1,7 @@
347 - CC = @CC@
348 - CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes
349 - OBJECTS = man2html.o cgibase.o abbrev.o strdefs.o
350 --bindir = $(DESTDIR)$(PREFIX)/usr/bin
351 -+bindir = $(DESTDIR)$(PREFIX)@bindir@
352 - mandir = $(DESTDIR)$(PREFIX)@mandir@
353 - vardir = $(DESTDIR)$(PREFIX)/var
354 - httpdir = $(DESTDIR)$(PREFIX)/home/httpd
355
356 diff --git a/sys-apps/man/files/man-1.6e-readonly-whatis.patch b/sys-apps/man/files/man-1.6e-readonly-whatis.patch
357 deleted file mode 100644
358 index d0f8ce1aab..0000000000
359 --- a/sys-apps/man/files/man-1.6e-readonly-whatis.patch
360 +++ /dev/null
361 @@ -1,56 +0,0 @@
362 -Dont update makewhatis files if they're on readonly filesystems
363 -
364 -http://bugs.gentoo.org/163932
365 -
366 ---- src/makewhatis.sh
367 -+++ src/makewhatis.sh
368 -@@ -184,6 +188,34 @@
369 - if [ x$verbose != x ]; then
370 - echo "about to enter $mandir" > /dev/stderr
371 - fi
372 -+
373 -+ # kludge for Slackware's /usr/man/preformat
374 -+ if [ $mandir = /usr/man/preformat ]
375 -+ then
376 -+ mandir1=/usr/man
377 -+ else
378 -+ mandir1=$mandir
379 -+ fi
380 -+
381 -+ # if $mandir is on a readonly partition, and the whatis file
382 -+ # is not a symlink, then let's skip trying to update it
383 -+ if [ ! -L ${mandir1}/whatis ]
384 -+ then
385 -+ if [ -e ${mandir1}/whatis ] && [ ! -w ${mandir1}/whatis ]
386 -+ then
387 -+ if [ x$verbose != x ]; then
388 -+ echo skipping $mandir - whatis file is readonly > /dev/stderr
389 -+ fi
390 -+ continue
391 -+ elif [ ! -e ${mandir1}/whatis ] && [ ! -w ${mandir1} ]
392 -+ then
393 -+ if [ x$verbose != x ]; then
394 -+ echo skipping $mandir - directory is readonly > /dev/stderr
395 -+ fi
396 -+ continue
397 -+ fi
398 -+ fi
399 -+
400 - if [ -s ${mandir}/whatis -a $pages = man -a x$update = x ]; then
401 - if [ x$verbose != x ]; then
402 - echo skipping $mandir - we did it already > /dev/stderr
403 -@@ -407,14 +439,6 @@
404 -
405 - cd $here
406 -
407 -- # kludge for Slackware's /usr/man/preformat
408 -- if [ $mandir = /usr/man/preformat ]
409 -- then
410 -- mandir1=/usr/man
411 -- else
412 -- mandir1=$mandir
413 -- fi
414 --
415 - if [ -f ${mandir1}/whatis ]
416 - then
417 - cat ${mandir1}/whatis >> $TMPFILE
418
419 diff --git a/sys-apps/man/files/man-1.6e-readonly-whatis2.patch b/sys-apps/man/files/man-1.6e-readonly-whatis2.patch
420 deleted file mode 100644
421 index 92e37d0df1..0000000000
422 --- a/sys-apps/man/files/man-1.6e-readonly-whatis2.patch
423 +++ /dev/null
424 @@ -1,47 +0,0 @@
425 -Dont update makewhatis files if they're on readonly filesystems
426 -
427 -http://bugs.gentoo.org/163932
428 -
429 ---- src/makewhatis.sh
430 -+++ src/makewhatis.sh
431 -@@ -184,6 +188,25 @@
432 - if [ x$verbose != x ]; then
433 - echo "about to enter $mandir" > /dev/stderr
434 - fi
435 -+
436 -+ # kludge for Slackware's /usr/man/preformat
437 -+ if [ $mandir = /usr/man/preformat ]
438 -+ then
439 -+ mandir1=/usr/man
440 -+ else
441 -+ mandir1=$mandir
442 -+ fi
443 -+
444 -+ # if $mandir is on a readonly partition and we cannot update the whatis
445 -+ # file, then let's simply skip it
446 -+ if ! touch ${mandir1}/whatis 2> /dev/null
447 -+ then
448 -+ if [ x$verbose != x ]; then
449 -+ echo skipping $mandir - whatis file is readonly > /dev/stderr
450 -+ fi
451 -+ continue
452 -+ fi
453 -+
454 - if [ -s ${mandir}/whatis -a $pages = man -a x$update = x ]; then
455 - if [ x$verbose != x ]; then
456 - echo skipping $mandir - we did it already > /dev/stderr
457 -@@ -407,14 +430,6 @@
458 -
459 - cd $here
460 -
461 -- # kludge for Slackware's /usr/man/preformat
462 -- if [ $mandir = /usr/man/preformat ]
463 -- then
464 -- mandir1=/usr/man
465 -- else
466 -- mandir1=$mandir
467 -- fi
468 --
469 - if [ -f ${mandir1}/whatis ]
470 - then
471 - cat ${mandir1}/whatis >> $TMPFILE
472
473 diff --git a/sys-apps/man/files/man-1.6f-compress.patch b/sys-apps/man/files/man-1.6f-compress.patch
474 deleted file mode 100644
475 index f110acd806..0000000000
476 --- a/sys-apps/man/files/man-1.6f-compress.patch
477 +++ /dev/null
478 @@ -1,42 +0,0 @@
479 ---- configure.orig 2008-12-26 23:59:40.779042906 -0600
480 -+++ configure 2008-12-27 00:13:15.265256215 -0600
481 -@@ -1012,20 +1012,25 @@
482 - if test "$ans" = "true"
483 - then
484 - DO_COMPRESSION=true
485 -- compress=
486 -- for i in lzma bzip2 gzip bzip tzip pack compress freeze yabba
487 -- do
488 -- eval F$i=missing
489 -- for j in $DEFPATH
490 -- do
491 -- if test -f $j/$i
492 -- then
493 -- eval F$i=$j/$i
494 -- if [ x$compress = x ]; then compress=$j/$i; fi
495 -- break
496 -- fi
497 -- done
498 -- done
499 -+ if [ x$COMPRESS != x ]; then
500 -+ compress=$COMPRESS
501 -+ echo $compress
502 -+ else
503 -+ compress=
504 -+ for i in lzma bzip2 gzip bzip tzip pack compress freeze yabba
505 -+ do
506 -+ eval F$i=missing
507 -+ for j in $DEFPATH
508 -+ do
509 -+ if test -f $j/$i
510 -+ then
511 -+ eval F$i=$j/$i
512 -+ if [ x$compress = x ]; then compress=$j/$i; fi
513 -+ break
514 -+ fi
515 -+ done
516 -+ done
517 -+ fi
518 -
519 - if [ x$default = x ]; then
520 - echo ""
521
522 diff --git a/sys-apps/man/files/man-1.6f-echo.patch b/sys-apps/man/files/man-1.6f-echo.patch
523 deleted file mode 100644
524 index 1da8f4472b..0000000000
525 --- a/sys-apps/man/files/man-1.6f-echo.patch
526 +++ /dev/null
527 @@ -1,30 +0,0 @@
528 ---- src/man.c
529 -+++ src/man.c
530 -@@ -598,14 +598,14 @@
531 - * .ev 1; .lt ...; .ev helps for my version of groff.
532 - * The LL assignment is needed by the mandoc macros.
533 - */
534 -- sprintf(eos(bufh), "echo \".ll %d.%di\"; ", ll/10, ll%10);
535 -- sprintf(eos(bufh), "echo \".nr LL %d.%di\"; ", ll/10, ll%10);
536 -+ sprintf(eos(bufh), "@GENTOO_PORTAGE_EPREFIX@/bin/echo \".ll %d.%di\"; ", ll/10, ll%10);
537 -+ sprintf(eos(bufh), "@GENTOO_PORTAGE_EPREFIX@/bin/echo \".nr LL %d.%di\"; ", ll/10, ll%10);
538 - #if 0
539 -- sprintf(eos(bufh), "echo \".lt %d.%di\"; ", ll/10, ll%10);
540 -+ sprintf(eos(bufh), "@GENTOO_PORTAGE_EPREFIX@/bin/echo \".lt %d.%di\"; ", ll/10, ll%10);
541 - #endif
542 - }
543 - if (pl)
544 -- sprintf(eos(bufh), "echo \".pl %.128s\"; ", pl);
545 -+ sprintf(eos(bufh), "@GENTOO_PORTAGE_EPREFIX@/bin/echo \".pl %.128s\"; ", pl);
546 - }
547 -
548 - /* tail */
549 -@@ -616,7 +616,7 @@
550 - the current position plus 10 lines. This plus setpl()
551 - gives us a single page that just contains the whole
552 - man page. (William Webber, wew@×××××××××××.au) */
553 -- strcat(buft, "; echo \".\\\\\\\"\"; echo \".pl \\n(nlu+10\"");
554 -+ strcat(buft, "; @GENTOO_PORTAGE_EPREFIX@/bin/echo \".\\\\\\\"\"; @GENTOO_PORTAGE_EPREFIX@/bin/echo \".pl \\n(nlu+10\"");
555 - #if 0
556 - /* In case this doesnt work for some reason,
557 - michaelkjohnson suggests: I've got a simple
558
559 diff --git a/sys-apps/man/files/man-1.6f-interix-all_source.patch b/sys-apps/man/files/man-1.6f-interix-all_source.patch
560 deleted file mode 100644
561 index 2b75b4c372..0000000000
562 --- a/sys-apps/man/files/man-1.6f-interix-all_source.patch
563 +++ /dev/null
564 @@ -1,12 +0,0 @@
565 -diff -ru man-1.6f.orig/gencat/genlib.c man-1.6f/gencat/genlib.c
566 ---- man-1.6f.orig/gencat/genlib.c 2008-07-21 10:53:16 +0200
567 -+++ man-1.6f/gencat/genlib.c 2008-07-21 10:55:18 +0200
568 -@@ -52,7 +52,7 @@
569 - #include <sys/types.h>
570 - #include <unistd.h>
571 -
572 --#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__NetBSD__)
573 -+#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__NetBSD__) && !( defined(__INTERIX) && defined(_ALL_SOURCE))
574 - #include <memory.h>
575 - static int bcopy(src, dst, length)
576 - char *src, *dst;
577
578 diff --git a/sys-apps/man/files/man-1.6f-irix.patch b/sys-apps/man/files/man-1.6f-irix.patch
579 deleted file mode 100644
580 index ec43d9ce08..0000000000
581 --- a/sys-apps/man/files/man-1.6f-irix.patch
582 +++ /dev/null
583 @@ -1,22 +0,0 @@
584 ---- src/man-getopt.c
585 -+++ src/man-getopt.c
586 -@@ -233,7 +233,7 @@ get_options_from_string(const char *s) {
587 -
588 - static void
589 - mysetenv(const char *name, const char *value) {
590 --#if defined(__sgi__) || defined(__sun__) || defined(sun) || defined(__hpux)
591 -+#if defined(__sgi) || defined(__sun__) || defined(sun) || defined(__hpux)
592 - int len = strlen(value)+1+strlen(value)+1;
593 - char *str = my_malloc(len);
594 - sprintf(str, "%s=%s", name, value);
595 ---- catopen/catopen.c
596 -+++ catopen/catopen.c
597 -@@ -49,7 +49,7 @@ my_catopen(char *name, int oflag) {
598 - * "If `name' contains a `/', then `name' specifies a pathname"
599 - */
600 - if (index(name, '/')) {
601 --#ifdef __GLIBC__
602 -+#if defined __GLIBC__ || defined __sgi
603 - /* glibc uses a pointer type for nl_catd, not a fd */
604 - return fd;
605 - #else
606
607 diff --git a/sys-apps/man/files/man-1.6f-man2html-compression.patch b/sys-apps/man/files/man-1.6f-man2html-compression.patch
608 deleted file mode 100644
609 index ae059d3aed..0000000000
610 --- a/sys-apps/man/files/man-1.6f-man2html-compression.patch
611 +++ /dev/null
612 @@ -1,54 +0,0 @@
613 -add support for bzip2/lzma to man2html and friends
614 -
615 ---- man2html/glimpse_filters
616 -+++ man2html/glimpse_filters
617 -@@ -1,3 +1,5 @@
618 -+*.bz2 bzip2 -d -c
619 -+*.lzma lzma -d -c
620 - *.gz gzip -d -c
621 - *.Z gzip -d -c
622 -
623 ---- man2html/scripts/cgi-bin/man/man2html
624 -+++ man2html/scripts/cgi-bin/man/man2html
625 -@@ -93,6 +93,9 @@
626 - *.bz2)
627 - bzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE"
628 - ;;
629 -+ *.lzma)
630 -+ lzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE"
631 -+ ;;
632 - *)
633 - "$MAN2HTML" "$LL" "$PAGE"
634 - ;;
635 -@@ -103,6 +106,9 @@
636 - elif [ -r "$PAGE".bz2 ]
637 - then
638 - bzcat "$PAGE".bz2 | "$MAN2HTML" "$LL" -D "$PAGE"
639 -+elif [ -r "$PAGE".lzma ]
640 -+then
641 -+ lzcat "$PAGE".lzma | "$MAN2HTML" "$LL" -D "$PAGE"
642 - else
643 - "$MAN2HTML" -E "Strange... Cannot find (or read) $PAGE."
644 - fi
645 ---- man2html/scripts/cgi-bin/man/mansearch
646 -+++ man2html/scripts/cgi-bin/man/mansearch
647 -@@ -153,7 +153,7 @@
648 - }
649 - print "<DT> <a href=\"" cgipath "/man2html?" fullname "\">";
650 - textname = filename;
651 -- sub(/\.(gz)|Z|z$/, "", textname);
652 -+ sub(/\.([zZ]|gz|bz2|lzma)$/, "", textname);
653 - sub(/\./, "(", textname);
654 - textname = textname ")";
655 - print textname;
656 ---- man2html/scripts/cgi-bin/man/mansec
657 -+++ man2html/scripts/cgi-bin/man/mansec
658 -@@ -128,7 +128,7 @@
659 - # Print out alphabetic quick index and other links
660 - }
661 - # Split page.n into "page" and "n" and generate an entry
662 -- sub(/[.]([zZ]|(gz))$/, "", manpage);
663 -+ sub(/[.]([zZ]|gz|bz2|lzma)$/, "", manpage);
664 - match(manpage, /[.][^.]+$/);
665 - title = substr(manpage, 1, RSTART - 1);
666 - if (section != "all") {
667
668 diff --git a/sys-apps/man/files/man-1.6f-so-search.patch b/sys-apps/man/files/man-1.6f-so-search.patch
669 deleted file mode 100644
670 index d9d4af4fe3..0000000000
671 --- a/sys-apps/man/files/man-1.6f-so-search.patch
672 +++ /dev/null
673 @@ -1,34 +0,0 @@
674 -improve the uncompressed .so search
675 -
676 ---- a/src/man.c
677 -+++ b/src/man.c
678 -@@ -381,13 +381,23 @@ again:
679 - }
680 - /*
681 - * Some people have compressed man pages, but uncompressed
682 -- * .so files - we could glob for all possible extensions,
683 -- * for now: only try .gz
684 -+ * .so files - we should discover this list dynamically, but
685 -+ * for now just hardcode it.
686 - */
687 -- else if (fp == NULL && get_expander(".gz") &&
688 -- strlen(name)+strlen(".gz") < BUFSIZE) {
689 -- strcat(name, ".gz");
690 -- fp = fopen (name, "r");
691 -+ else if (fp == NULL) {
692 -+#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a)))
693 -+ size_t i, name_len = strlen(name);
694 -+ const char *extensions[] = { ".gz", ".bz2", ".lzma", ".z", ".Z" };
695 -+ for (i = 0; i < ARRAY_SIZE(extensions); ++i) {
696 -+ const char *comp = extensions[i];
697 -+ name[name_len] = '\0';
698 -+ if (get_expander(comp) && name_len+strlen(comp) < BUFSIZE) {
699 -+ strcat(name, comp);
700 -+ fp = fopen(name, "r");
701 -+ if (fp)
702 -+ break;
703 -+ }
704 -+ }
705 - }
706 -
707 - if (fp == NULL) {
708
709 diff --git a/sys-apps/man/files/man-1.6f-xz.patch b/sys-apps/man/files/man-1.6f-xz.patch
710 deleted file mode 100644
711 index 7b2ed90857..0000000000
712 --- a/sys-apps/man/files/man-1.6f-xz.patch
713 +++ /dev/null
714 @@ -1,128 +0,0 @@
715 -add support for xz
716 -
717 -http://bugs.gentoo.org/302380
718 -
719 ---- a/configure
720 -+++ b/configure
721 -@@ -1017,7 +1017,7 @@
722 - echo $compress
723 - else
724 - compress=
725 -- for i in lzma bzip2 gzip bzip tzip pack compress freeze yabba
726 -+ for i in xz lzma bzip2 gzip bzip tzip pack compress freeze yabba
727 - do
728 - eval F$i=missing
729 - for j in $DEFPATH
730 -@@ -1076,6 +1076,7 @@
731 - *gzip*) ext=".gz" ;;
732 - *bzip*) ext=".bz" ;;
733 - *tzip*) ext=".tz" ;;
734 -+ *xz*) ext=".xz" ;;
735 - *pack*) ext=".z" ;;
736 - *compress*) ext=".Z" ;;
737 - *freeze*) ext=".F" ;;
738 -@@ -1114,7 +1115,7 @@
739 - fi
740 -
741 - # unconditionally handle uncompression
742 --UNCOMPRESSORS="unlzma gunzip bzip2 pcat zcat fcat unyabba"
743 -+UNCOMPRESSORS="unxz unlzma gunzip bzip2 pcat zcat fcat unyabba"
744 - for i in $UNCOMPRESSORS
745 - do
746 - eval F$i=missing
747 -@@ -1139,6 +1140,10 @@
748 - if [ $Funlzma != missing ]; then
749 - unlzma="$Funlzma -c -d"
750 - fi
751 -+unxz=missing
752 -+if [ $Funxz != missing ]; then
753 -+ unxz="$Funxz -c -d"
754 -+fi
755 - pcat="$Fpcat"
756 - zcat="$Fzcat"
757 - fcat="$Ffcat"
758 -@@ -1170,6 +1175,9 @@
759 - lzma)
760 - echo "Command to use for .lzma files (standard lzma)"
761 - echo $n "[`eval echo \\$$filter`] $c" ;;
762 -+ xz)
763 -+ echo "Command to use for .xz files (standard xz)"
764 -+ echo $n "[`eval echo \\$$filter`] $c" ;;
765 - pcat)
766 - echo "Command to use for .z files (pack/unpack)"
767 - echo $n "[`eval echo \\$$filter`] $c" ;;
768 -@@ -1232,6 +1240,7 @@
769 - .gz) decompress=$gunzip ;;
770 - .bz2) decompress=$bzip2 ;;
771 - .lzma) decompress=$unlzma ;;
772 -+ .xz) decompress=$unxz ;;
773 - .z) decompress=$pcat ;;
774 - .Z) decompress=$zcat ;;
775 - .F) decompress=$fcat ;;
776 -@@ -1325,6 +1334,7 @@
777 - s,@gunzip@,$gunzip,
778 - s,@bzip2@,$bzip2,
779 - s,@unlzma@,$unlzma,
780 -+s,@unxz@,$unxz,
781 - s,@unyabba@,$unyabba,
782 - s,@compress@,$compress,
783 - s,@compress_ext@,$compress_ext,
784 ---- a/src/makewhatis.sh
785 -+++ b/src/makewhatis.sh
786 -@@ -230,7 +230,7 @@
787 - find $mandir/${pages}$i/. -name '*' $findarg0 $findarg -print | $AWK '
788 -
789 - function readline() {
790 -- if (use_zcat || use_bzcat || use_lzcat) {
791 -+ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) {
792 - result = (pipe_cmd | getline);
793 - if (result < 0) {
794 - print "Pipe error: " pipe_cmd " " ERRNO > "/dev/stderr";
795 -@@ -245,7 +245,7 @@
796 - }
797 -
798 - function closeline() {
799 -- if (use_zcat || use_bzcat || use_lzcat) {
800 -+ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) {
801 - return close(pipe_cmd);
802 - } else {
803 - return close(filename);
804 -@@ -266,7 +266,9 @@
805 - use_bzcat = match(filename,"\\.bz2");
806 - if(!use_bzcat)
807 - use_lzcat = match(filename,"\\.lzma");
808 -- if (use_zcat || use_bzcat || use_lzcat ) {
809 -+ if(!use_lzcat)
810 -+ use_xzcat = match(filename,"\\.xz");
811 -+ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) {
812 - filename_no_gz = substr(filename, 0, RSTART - 1);
813 - } else {
814 - filename_no_gz = filename;
815 -@@ -279,13 +281,15 @@
816 - actual_section = section;
817 - }
818 - sub(/\..*/, "", progname);
819 -- if (use_zcat || use_bzcat || use_lzcat) {
820 -+ if (use_zcat || use_bzcat || use_lzcat || use_xzcat) {
821 - if (use_zcat) {
822 - pipe_cmd = "zcat \"" filename "\"";
823 - } else if (use_bzcat) {
824 - pipe_cmd = "bzcat \"" filename "\"";
825 -- } else {
826 -+ } else if (use_lzcat) {
827 - pipe_cmd = "lzcat \"" filename "\"";
828 -+ } else {
829 -+ pipe_cmd = "xzcat \"" filename "\"";
830 - }
831 - # try to avoid suspicious stuff
832 - if (filename ~ /[;&|`$(]/) {
833 ---- a/src/man.conf.in
834 -+++ b/src/man.conf.in
835 -@@ -133,6 +133,7 @@
836 - .gz @gunzip@
837 - .bz2 @bzip2@
838 - .lzma @unlzma@
839 -+.xz @unxz@
840 - .z @pcat@
841 - .Z @zcat@
842 - .F @fcat@
843
844 diff --git a/sys-apps/man/man-1.6g-r1.ebuild b/sys-apps/man/man-1.6g-r1.ebuild
845 index 57c84bfa75..36f594f1e6 100644
846 --- a/sys-apps/man/man-1.6g-r1.ebuild
847 +++ b/sys-apps/man/man-1.6g-r1.ebuild
848 @@ -1,4 +1,4 @@
849 -# Copyright 1999-2017 Gentoo Foundation
850 +# Copyright 1999-2020 Gentoo Authors
851 # Distributed under the terms of the GNU General Public License v2
852 # $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.6g-r1.ebuild,v 1.1 2015/05/08 03:22:04 vapier Exp $
853
854 @@ -12,7 +12,7 @@ SRC_URI="http://primates.ximian.com/~flucifredi/man/${P}.tar.gz"
855
856 LICENSE="GPL-2"
857 SLOT="0"
858 -KEYWORDS="~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
859 +KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
860 IUSE="+lzma nls selinux"
861
862 DEPEND="nls? ( sys-devel/gettext )"
863 @@ -50,10 +50,6 @@ src_prepare() {
864 epatch "${FILESDIR}"/man-1.6g-bsdish.patch
865 # Solaris needs fcntl.h included for O_CREAT etc, like SYSV
866 epatch "${FILESDIR}"/man-1.6e-solaris.patch
867 - # hpux does not have setenv()
868 - epatch "${FILESDIR}"/man-1.6e-hpux.patch
869 - # irix support is a bit messed up in defines
870 - epatch "${FILESDIR}"/man-1.6f-irix.patch
871 # Results in grabbing as much tools from the prefix, instead of main
872 # system in a prefixed environment
873 epatch "${FILESDIR}"/man-1.6g-prefix-path.patch
874
875 diff --git a/sys-apps/man/man-1.6g.ebuild b/sys-apps/man/man-1.6g.ebuild
876 deleted file mode 100644
877 index e453b933a5..0000000000
878 --- a/sys-apps/man/man-1.6g.ebuild
879 +++ /dev/null
880 @@ -1,188 +0,0 @@
881 -# Copyright 1999-2017 Gentoo Foundation
882 -# Distributed under the terms of the GNU General Public License v2
883 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.6g.ebuild,v 1.14 2014/11/02 09:47:12 swift Exp $
884 -
885 -EAPI="2"
886 -
887 -inherit eutils toolchain-funcs user flag-o-matic prefix
888 -
889 -DESCRIPTION="Standard commands to read man pages"
890 -HOMEPAGE="http://primates.ximian.com/~flucifredi/man/"
891 -SRC_URI="http://primates.ximian.com/~flucifredi/man/${P}.tar.gz"
892 -
893 -LICENSE="GPL-2"
894 -SLOT="0"
895 -KEYWORDS="~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
896 -IUSE="+lzma nls selinux"
897 -
898 -DEPEND="nls? ( sys-devel/gettext )"
899 -RDEPEND="|| ( >=sys-apps/groff-1.19.2-r1 app-doc/heirloom-doctools )
900 - !sys-apps/man-db
901 - !<app-arch/lzma-4.63
902 - lzma? ( app-arch/xz-utils )
903 - selinux? ( sec-policy/selinux-makewhatis )"
904 -
905 -pkg_setup() {
906 - enewgroup man 15
907 - enewuser man 13 -1 ${EPREFIX}/usr/share/man man
908 -}
909 -
910 -src_prepare() {
911 - epatch "${FILESDIR}"/man-1.6f-man2html-compression-2.patch
912 - epatch "${FILESDIR}"/man-1.6-cross-compile.patch
913 - epatch "${FILESDIR}"/man-1.6f-unicode.patch #146315
914 - epatch "${FILESDIR}"/man-1.6c-cut-duplicate-manpaths.patch
915 - epatch "${FILESDIR}"/man-1.5m2-apropos.patch
916 - epatch "${FILESDIR}"/man-1.6g-fbsd.patch #138123
917 - epatch "${FILESDIR}"/man-1.6e-headers.patch
918 - epatch "${FILESDIR}"/man-1.6f-so-search-2.patch
919 - epatch "${FILESDIR}"/man-1.6g-compress.patch #205147
920 - epatch "${FILESDIR}"/man-1.6f-parallel-build.patch #207148 #258916
921 - epatch "${FILESDIR}"/man-1.6g-xz.patch #302380
922 - epatch "${FILESDIR}"/man-1.6f-makewhatis-compression-cleanup.patch #331979
923 - # make sure `less` handles escape sequences #287183
924 - sed -i -e '/^DEFAULTLESSOPT=/s:"$:R":' configure
925 -
926 - # This patch could be easily merged with the FreeBSD one, but we don't
927 - # because the files have no CVS header and then auto syncing overwrites the
928 - # local difference we make. <grobian@g.o>
929 - epatch "${FILESDIR}"/man-1.6g-bsdish.patch
930 - # Solaris needs fcntl.h included for O_CREAT etc, like SYSV
931 - epatch "${FILESDIR}"/man-1.6e-solaris.patch
932 - # hpux does not have setenv()
933 - epatch "${FILESDIR}"/man-1.6e-hpux.patch
934 - # irix support is a bit messed up in defines
935 - epatch "${FILESDIR}"/man-1.6f-irix.patch
936 - # Results in grabbing as much tools from the prefix, instead of main
937 - # system in a prefixed environment
938 - epatch "${FILESDIR}"/man-1.6g-prefix-path.patch
939 -
940 - # Fix the makewhatis script for prefix.
941 - cp "${FILESDIR}"/makewhatis.cron "${T}"/
942 - pushd "${T}" > /dev/null
943 - epatch "${FILESDIR}"/makewhatis.cron-prefix.patch
944 - popd > /dev/null
945 - eprefixify "${T}"/makewhatis.cron
946 - # Hardcode path to echo(1), to keep some shells (e.g. zsh, mksh) from
947 - # expanding "\n".
948 - epatch "${FILESDIR}"/man-1.6f-echo.patch
949 - eprefixify "${S}"/src/man.c
950 -
951 - # fix man.conf file, bug #351245
952 - sed -i \
953 - -e "/^MANPATH\t/s:\t/:\t${EPREFIX}/:" \
954 - -e "/^MANPATH_MAP\t/s:\t/:\t${EPREFIX}/:g" \
955 - src/man.conf.in || die
956 -
957 - if use prefix ; then
958 - ebegin "Allowing unpriviliged install"
959 - sed -i \
960 - -e 's/@man_install_flags@//g' \
961 - "${S}"/src/Makefile.in
962 - eend $?
963 - fi
964 -
965 -}
966 -
967 -echoit() { echo "$@" ; "$@" ; }
968 -src_configure() {
969 - strip-linguas $(eval $(grep ^LANGUAGES= configure) ; echo ${LANGUAGES//,/ })
970 -
971 - unset NLSPATH #175258
972 -
973 - tc-export CC BUILD_CC
974 -
975 - local mylang=
976 - if use nls ; then
977 - if [[ -z ${LINGUAS} ]] ; then
978 - mylang="all"
979 - else
980 - mylang="${LINGUAS// /,}"
981 - fi
982 - else
983 - mylang="none"
984 - fi
985 -
986 - local myconf=
987 - use prefix || myconf="${myconf} +sgid"
988 -
989 - [[ ${CHOST} == *-interix* ]] && append-flags "-D_POSIX_SOURCE"
990 -
991 - export COMPRESS
992 - if use lzma ; then
993 - COMPRESS="${EPREFIX}"/usr/bin/xz
994 - else
995 - COMPRESS="${EPREFIX}"/bin/bzip2
996 - fi
997 - echoit \
998 - ./configure \
999 - -prefix="${EPREFIX}/usr" \
1000 - -confdir="${EPREFIX}"/etc \
1001 - ${myconf} \
1002 - +fhs \
1003 - +lang ${mylang} \
1004 - || die "configure failed"
1005 -}
1006 -
1007 -src_install() {
1008 - unset NLSPATH #175258
1009 -
1010 - emake DESTDIR="${D}" install || die "make install failed"
1011 - dosym man /usr/bin/manpath
1012 -
1013 - dodoc LSM README* TODO
1014 -
1015 - # Make all Solaris man-pages available
1016 - if [[ ${CHOST} == *-solaris* && -e /usr/share/man/man.cf ]] ; then
1017 - source /usr/share/man/man.cf
1018 - sed -i -e 's/^\(MANSECT.*\)$/\1:'"${MANSECTS//,/:}"'/' \
1019 - "${ED}"/etc/man.conf || die "failed to adapt to Solaris"
1020 - fi
1021 -
1022 - # makewhatis only adds man-pages from the last 24hrs
1023 - exeinto /etc/cron.daily
1024 - newexe "${T}"/makewhatis.cron makewhatis
1025 -
1026 - keepdir /var/cache/man
1027 - use prefix || diropts -m0775 -g man && diropts -m0775
1028 - local mansects=$(grep ^MANSECT "${ED}"/etc/man.conf | cut -f2-)
1029 - for x in ${mansects//:/ } ; do
1030 - keepdir /var/cache/man/cat${x}
1031 - done
1032 -}
1033 -
1034 -pkg_postinst() {
1035 - if use !prefix ; then
1036 -
1037 - einfo "Forcing sane permissions onto ${EROOT}var/cache/man (Bug #40322)"
1038 - chown -R root:man "${EROOT}"/var/cache/man
1039 - [[ -e ${EROOT}/var/cache/man/whatis ]] \
1040 - && chown root:0 "${EROOT}"/var/cache/man/whatis
1041 -
1042 - fi # end lame indenting
1043 -
1044 - chmod -R g+w "${EROOT}"/var/cache/man
1045 -
1046 - echo
1047 -
1048 - local f files=$(ls "${EROOT}"/etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
1049 - for f in ${files} ; do
1050 - [[ ${f} == */etc/cron.daily/makewhatis ]] && continue
1051 - [[ $(md5sum "${f}") == "8b2016cc778ed4e2570b912c0f420266 "* ]] \
1052 - && rm -f "${f}"
1053 - done
1054 - files=$(ls "${EROOT}"etc/cron.{daily,weekly}/makewhatis{,.cron} 2>/dev/null)
1055 - if [[ ${files/$'\n'} != ${files} ]] ; then
1056 - ewarn "You have multiple makewhatis cron files installed."
1057 - ewarn "You might want to delete all but one of these:"
1058 - ewarn ${files}
1059 - fi
1060 -
1061 - if has_version app-doc/heirloom-doctools; then
1062 - ewarn "Please note that the /etc/man.conf file installed will not"
1063 - ewarn "work with heirloom's nroff by default (yet)."
1064 - ewarn ""
1065 - ewarn "Check app-doc/heirloom-doctools elog messages for the proper"
1066 - ewarn "configuration."
1067 - fi
1068 -}