source: postlfs/security/nss.xml@ 67e58a5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 67e58a5 was 014d750f, checked in by Igor Živković <igor@…>, 10 years ago

add -j1 flag to make command for packages that do not support parallel build

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

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