source: postlfs/security/nss.xml@ e52d157

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e52d157 was e52d157, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Update to fontconfig-2.12.1.
Update to xfsprogs-4.7.0.
Update to nss-3.26.
Update to XML::LibXSLT-1.95.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17628 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 9.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7<!-- for when .0 is not part of the new tarball name, but always referenced -->
8 <!ENTITY nss-url "ftp.mozilla.org/pub/mozilla.org/security/nss/releases">
9
10<!--
11<!ENTITY nss-download-http "https://&nss-url;/NSS_3_&nss-minor-version;_&nss-micro-version;_RTM/src/nss-&nss-version;.tar.gz">
12-->
13<!-- <!ENTITY nss-download-ftp "ftp://&nss-url;/NSS_3_&nss-minor-version;_&nss-micro-version;_RTM/src/nss-&nss-version;.tar.gz">-->
14<!ENTITY nss-download-ftp " ">
15<!-- no micro versions -->
16<!ENTITY nss-download-http "https://&nss-url;/NSS_3_&nss-minor-version;_RTM/src/nss-&nss-version;.tar.gz">
17<!--<!ENTITY nss-download-ftp "ftp://&nss-url;/NSS_3_&nss-minor-version;_RTM/src/nss-&nss-version;.tar.gz">-->
18
19 <!ENTITY nss-md5sum "b71ab412cf07af436726679b204b0777">
20 <!ENTITY nss-size "7.0 MB">
21 <!ENTITY nss-buildsize "90 MB">
22 <!ENTITY nss-time "1.3 SBU">
23]>
24
25<sect1 id="nss" xreflabel="NSS-&nss-version;">
26 <?dbhtml filename="nss.html"?>
27
28 <sect1info>
29 <othername>$LastChangedBy$</othername>
30 <date>$Date$</date>
31 </sect1info>
32
33 <title>NSS-&nss-version;</title>
34
35 <indexterm zone="nss">
36 <primary sortas="a-NSS">NSS</primary>
37 </indexterm>
38
39 <sect2 role="package">
40 <title>Introduction to NSS</title>
41
42 <para>
43 The Network Security Services (<application>NSS</application>) package is
44 a set of libraries designed to support cross-platform development of
45 security-enabled client and server applications. Applications built with
46 NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12,
47 S/MIME, X.509 v3 certificates, and other security standards. This is
48 useful for implementing SSL and S/MIME or other Internet security
49 standards into an application.
50 </para>
51
52 &lfs79_checked;&gcc6_checked;
53
54 <bridgehead renderas="sect3">Package Information</bridgehead>
55 <itemizedlist spacing="compact">
56 <listitem>
57 <para>
58 Download (HTTP): <ulink url="&nss-download-http;"/>
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Download (FTP): <ulink url="&nss-download-ftp;"/>
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Download MD5 sum: &nss-md5sum;
69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Download size: &nss-size;
74 </para>
75 </listitem>
76 <listitem>
77 <para>
78 Estimated disk space required: &nss-buildsize;
79 </para>
80 </listitem>
81 <listitem>
82 <para>
83 Estimated build time: &nss-time;
84 </para>
85 </listitem>
86 </itemizedlist>
87
88 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
89 <itemizedlist spacing="compact">
90 <listitem>
91 <para>
92 Required patch:
93 <ulink url="&patch-root;/nss-&nss-version;-standalone-1.patch"/>
94 </para>
95 </listitem>
96 </itemizedlist>
97
98 <bridgehead renderas="sect3">NSS Dependencies</bridgehead>
99
100 <bridgehead renderas="sect4">Required</bridgehead>
101 <para role="required">
102 <xref linkend="nspr"/>
103 </para>
104
105 <bridgehead renderas="sect4">Recommended</bridgehead>
106 <para role="recommended">
107 <xref linkend="sqlite"/>
108 </para>
109
110 <para condition="html" role="usernotes">
111 User Notes: <ulink url="&blfs-wiki;/nss"/>
112 </para>
113 </sect2>
114
115 <sect2 role="installation">
116 <title>Installation of NSS</title>
117
118 <note>
119 <para>
120 This package does not support parallel build.
121 </para>
122 </note>
123
124 <para>
125 Install <application>NSS</application> by running the following commands:
126 </para>
127
128<screen><userinput>patch -Np1 -i ../nss-&nss-version;-standalone-1.patch &amp;&amp;
129
130cd nss &amp;&amp;
131
132make -j1 BUILD_OPT=1 \
133 NSPR_INCLUDE_DIR=/usr/include/nspr \
134 USE_SYSTEM_ZLIB=1 \
135 ZLIB_LIBS=-lz \
136 $([ $(uname -m) = x86_64 ] &amp;&amp; echo USE_64=1) \
137 $([ -f /usr/include/sqlite3.h ] &amp;&amp; echo NSS_USE_SYSTEM_SQLITE=1)</userinput></screen>
138
139 <para>
140 This package does not come with a test suite.
141 </para>
142
143 <para>
144 Now, as the <systemitem class="username">root</systemitem> user:
145 </para>
146
147<screen role="root"><userinput>cd ../dist &amp;&amp;
148
149install -v -m755 Linux*/lib/*.so /usr/lib &amp;&amp;
150install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib &amp;&amp;
151
152install -v -m755 -d /usr/include/nss &amp;&amp;
153cp -v -RL {public,private}/nss/* /usr/include/nss &amp;&amp;
154chmod -v 644 /usr/include/nss/* &amp;&amp;
155
156install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} /usr/bin &amp;&amp;
157
158install -v -m644 Linux*/lib/pkgconfig/nss.pc /usr/lib/pkgconfig</userinput></screen>
159
160 </sect2>
161
162 <sect2 role="commands">
163 <title>Command Explanations</title>
164
165 <para>
166 <parameter>BUILD_OPT=1</parameter>: This option is passed to
167 <command>make</command> so that the build is performed with no debugging
168 symbols built into the binaries and the default compiler optimizations are
169 used.
170 </para>
171
172 <para>
173 <parameter>NSPR_INCLUDE_DIR=/usr/include/nspr</parameter>: This option
174 sets the location of the nspr headers.
175 </para>
176
177 <para>
178 <parameter>USE_SYSTEM_ZLIB=1</parameter>: This option is passed to
179 <command>make</command> to ensure that the
180 <filename class="libraryfile">libssl3.so</filename> library is linked to
181 the system installed <application>zlib</application> instead of the
182 in-tree version.
183 </para>
184
185 <para>
186 <parameter>ZLIB_LIBS=-lz</parameter>: This option provides the
187 linker flags needed to link to the system <application>zlib</application>.
188 </para>
189
190 <para>
191 <command>$([ $(uname -m) = x86_64 ] &amp;&amp; echo USE_64=1)</command>:
192 The <parameter>USE_64=1</parameter> option is <emphasis>required on
193 x86_64</emphasis>, otherwise <command>make</command> will try (and fail)
194 to create 32-bit objects. The [ $(uname -m) = x86_64 ] test ensures it
195 has no effect on a 32 bit system.
196 </para>
197
198 <para>
199 <command>([ -f /usr/include/sqlite3.h ] &amp;&amp; echo
200 NSS_USE_SYSTEM_SQLITE=1)</command>: This tests if
201 <application>sqlite</application> is installed and if so it
202 <command>echo</command>s the option NSS_USE_SYSTEM_SQLITE=1 to
203 <command>make</command> so that
204 <filename class="libraryfile">libsoftokn3.so</filename> will link against
205 the system version of sqlite.
206 </para>
207
208 </sect2>
209
210 <sect2 role="content">
211 <title>Contents</title>
212
213 <segmentedlist>
214 <segtitle>Installed Programs</segtitle>
215 <segtitle>Installed Libraries</segtitle>
216 <segtitle>Installed Directories</segtitle>
217
218 <seglistitem>
219 <seg>
220 certutil, nss-config, and pk12util
221 </seg>
222 <seg>
223 libcrmf.a, libfreebl3.so, libfreeblpriv3.so, libgtest1.so, libnss3.so,
224 libnssckbi.so, libnssdbm3.so, libnsssysinit.so,
225 libnssutil3.so, libsmime3.so, libsoftokn3.so, and libssl3.so
226 </seg>
227 <seg>
228 /usr/include/nss
229 </seg>
230 </seglistitem>
231 </segmentedlist>
232
233 <variablelist>
234 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
235 <?dbfo list-presentation="list"?>
236 <?dbhtml list-presentation="table"?>
237
238 <varlistentry id="certutil">
239 <term><command>certutil</command></term>
240 <listitem>
241 <para>
242 is the Mozilla Certificate Database Tool. It is a command-line
243 utility that can create and modify the Netscape Communicator
244 cert8.db and key3.db database files. It can also list, generate,
245 modify, or delete certificates within the cert8.db file and create
246 or change the password, generate new public and private key pairs,
247 display the contents of the key database, or delete key pairs within
248 the key3.db file.
249 </para>
250 <indexterm zone="nss certutil">
251 <primary sortas="b-certutil">certutil</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255
256 <varlistentry id="nss-config">
257 <term><command>nss-config</command></term>
258 <listitem>
259 <para>
260 is used to determine the NSS library settings of the installed NSS
261 libraries.
262 </para>
263 <indexterm zone="nss nss-config">
264 <primary sortas="b-nss-config">nss-config</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="pk12util">
270 <term><command>pk12util</command></term>
271 <listitem>
272 <para>
273 is a tool for importing certificates and keys from pkcs #12 files
274 into NSS or exporting them. It can also list certificates and keys
275 in such files.
276 </para>
277 <indexterm zone="nss pk12util">
278 <primary sortas="b-pk12util">pk12util</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 </variablelist>
284
285 </sect2>
286
287</sect1>
Note: See TracBrowser for help on using the repository browser.