Changeset 1707b87


Ignore:
Timestamp:
03/29/2006 08:35:47 PM (18 years ago)
Author:
Ken Moffat <ken@…>
Children:
3dc2cf3
Parents:
01486e4
Message:

Upgrade shadow to 4.0.15 with its UTF-8 man pages.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/udev_update/BOOK@7469 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r01486e4 r1707b87  
    3636    </listitem>
    3737-->
     38
     39    <listitem>
     40      <para>March 29, 2006</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[ken] - Upgrade to shadow-4.0.15 and add convert-mans script
     44          to convert its UTF-8 man pages.  Thanks to Alexander and Archaic for
     45          the script and commands.  Fixes tickets #1748 and #1750.</para>
     46        </listitem>
     47      </itemizedlist>
     48    </listitem>
    3849
    3950     <listitem>
  • chapter03/packages.xml

    r01486e4 r1707b87  
    371371
    372372    <varlistentry>
    373       <term>Shadow (&shadow-version;) - 1,218 KB:</term>
     373      <term>Shadow (&shadow-version;) - 1,265 KB:</term>
    374374      <listitem>
    375375        <para><ulink url="ftp://ftp.pld.org.pl/software/shadow/"/></para>
  • chapter06/man-db.xml

    r01486e4 r1707b87  
    2626
    2727      <seglistitem>
    28         <seg>0.1 SBU</seg>
    29         <seg>1.1 MB</seg>
     28        <seg>0.2 SBU</seg>
     29        <seg>9.0 MB</seg>
    3030      </seglistitem>
    3131    </segmentedlist>
     
    117117<screen><userinput>make install</userinput></screen>
    118118
     119    <para>Some packages provide UTF-8 man pages which this version of
     120    <command>man</command> is unable to display.  The following script will
     121    allow some of these to be converted into the expected encodings shown in
     122    the table below. It will not help if you are using a UTF-8 locale.
     123    Because this script  is intended for limited use during the system build,
     124    for public data, we will not bother with error checking, nor use a
     125    non-predictable temporary file name.</para>
     126
     127<screen><userinput>cat &gt;&gt;convert-mans &lt;&lt;"EOF"
     128<literal>#!/bin/sh -e
     129FROM="$1"
     130TO="$2"
     131shift ; shift
     132while [ $# -gt 0 ]
     133do
     134        FILE="$1"
     135        shift
     136        iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
     137        mv .tmp.iconv "$FILE"
     138done
     139</literal>
     140EOF
     141        install -m755 convert-mans  /usr/bin</userinput></screen>
     142
    119143    <para>Additional information regarding the compression of
    120144    man and info pages can be found in the BLFS book at
     
    275299    RedHat</quote>) instead of the encoding listed in the table above, they
    276300    have to be converted from UTF-8 to the encoding listed in the table before
    277     installation. E.g., Spanish manual pages (<ulink
    278     url="http://ditec.um.es/~piernas/manpages-es/man-pages-es-1.55.tar.bz2"/>)
     301    installation. This can be achieved with convert-mans, e.g., Spanish manual
     302    pages (<ulink url="http://ditec.um.es/~piernas/manpages-es/man-pages-es-1.55.tar.bz2"/>)
    279303    can be installed with the following commands:</para>
    280304
    281 <screen role="nodump"><userinput>mkdir -p /usr/share/man/es &amp;&amp;
    282 find man? -type f | grep -v 'man7/iso_8859-7.7' | \
    283 while read F ; do
    284   iconv -f UTF-8 -t ISO-8859-1 $F >tmp ; mv tmp $F
    285 done &amp;&amp;
    286 cp -rv man? /usr/share/man/es</userinput></screen>
     305<screen role="nodump"><userinput>mv man7/iso_8859-7.7{,X}
     306convert-mans UTF-8 ISO-8859-1 man?/*.?
     307mv man7/iso_8859-7.7{X,}
     308make install</userinput></screen>
    287309
    288310    <note>
     
    302324
    303325      <seglistitem>
    304         <seg>accessdb, apropos, catman, lexgrog, man, mandb, manpath,
    305         and whatis</seg>
     326        <seg>accessdb, apropos, catman, convert-mans,lexgrog, man, mandb,
     327        manpath, and whatis</seg>
    306328      </seglistitem>
    307329    </segmentedlist>
     
    345367      </varlistentry>
    346368
     369      <varlistentry id="convert-mans">
     370        <term><command>convert-mans</command></term>
     371        <listitem>
     372          <para>Reformat man pages so that Man-DB can display them</para>
     373          <indexterm zone="ch-system-man-db convert-mans">
     374            <primary sortas="b-convert-mans">convert-mans</primary>
     375          </indexterm>
     376        </listitem>
     377      </varlistentry>
     378
    347379      <varlistentry id="lexgrog">
    348380        <term><command>lexgrog</command></term>
  • chapter06/shadow.xml

    r01486e4 r1707b87  
    2626
    2727      <seglistitem>
    28         <seg>0.4 SBU</seg>
    29         <seg>14.7 MB</seg>
     28        <seg>0.3 SBU</seg>
     29        <seg>18.6 MB</seg>
    3030      </seglistitem>
    3131    </segmentedlist>
     
    8181
    8282<screen><userinput>sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile</userinput></screen>
     83
     84    <para>Shadow supplies other manual pages in a UTF-8 encoding.  Man-DB
     85    can display these in the recommended encodings by using the convert-mans
     86    script which we installed.</para>
     87
     88<screen><userinput> for i in de es fi fr id it pt_BR; do
     89    convert-mans UTF-8 ISO-8859-1 man/${i}/*.?
     90done
     91
     92for i in cs hu pl; do
     93    convert-mans UTF-8 ISO-8859-2 man/${i}/*.?
     94done
     95
     96convert-mans UTF-8 EUC-JP man/ja/*.?
     97convert-mans UTF-8 KOI8-R man/ru/*.?
     98convert-mans UTF-8 ISO-8859-9 man/tr/*.?</userinput></screen>
    8399
    84100    <para>Compile the package:</para>
  • general.ent

    r01486e4 r1707b87  
    7676<!ENTITY readline-version "5.1">
    7777<!ENTITY sed-version "4.1.5">
    78 <!ENTITY shadow-version "4.0.14">
     78<!ENTITY shadow-version "4.0.15">
    7979<!ENTITY sysklogd-version "1.4.1">
    8080<!ENTITY sysvinit-version "2.86">
Note: See TracChangeset for help on using the changeset viewer.