NSS: Difference between revisions
From CBLFS
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
== Non-Multilib == | == Non-Multilib == | ||
Compile the package: | Compile the package: | ||
| Line 48: | Line 49: | ||
Cflags: -I${includedir} | Cflags: -I${includedir} | ||
EOF | EOF | ||
== Multilib == | |||
=== 32Bit === | |||
Compile the package: | |||
export WORKINGDIR=$PWD && | |||
echo 'INCLUDES += -I/usr/include/nspr' >> mozilla/security/coreconf/headers.mk && | |||
for dir in $PWD/mozilla/security/{coreconf,dbm,nss}; do | |||
cd $dir && | |||
make CC="gcc ${BUILD32}" BUILD_OPT=1 | |||
done | |||
Install the package | |||
export NSS_LINUXDIR=$(basename `dir -d $WORKINGDIR/mozilla/dist/Linux*`) && | |||
cd $WORKINGDIR/mozilla/dist && | |||
install -m755 $NSS_LINUXDIR/lib/*.so /usr/lib && | |||
install -m644 $NSS_LINUXDIR/lib/{*.chk,*.a} /usr/lib && | |||
install -d /usr/include/nss && | |||
install -m644 {public,private}/nss/* /usr/include/nss && | |||
Create the pkg-config file: | |||
cat > /usr/lib/pkgconfig/nss.pc << "EOF" | |||
prefix=/usr | |||
exec_prefix=/usr | |||
libdir=/usr/lib | |||
includedir=/usr/include/nss | |||
Name: NSS | |||
Description: Network Security Services | |||
Version: 3.11.3 | |||
Requires: nspr >= 4.6.3 | |||
Libs: -L${libdir} -lssl3 -lsmime3 -lnss3 -Wl,-R${libdir} | |||
Cflags: -I${includedir} | |||
EOF | |||
=== N32 === | |||
=== 64Bit === | |||
Revision as of 12:06, 16 October 2006
| Download Source: | http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_11_3_RTM/src/nss-3.11.3.tar.gz |
|---|
Look into why nss-config isn't shipped in the tarball.
Dependencies
Required
Non-Multilib
Compile the package:
export WORKINGDIR=$PWD &&
echo 'INCLUDES += -I/usr/include/nspr' >> mozilla/security/coreconf/headers.mk &&
for dir in $PWD/mozilla/security/{coreconf,dbm,nss}; do
cd $dir &&
make BUILD_OPT=1
done
Install the package
export NSS_LINUXDIR=$(basename `dir -d $WORKINGDIR/mozilla/dist/Linux*`) &&
cd $WORKINGDIR/mozilla/dist &&
install -m755 $NSS_LINUXDIR/lib/*.so /usr/lib &&
install -m644 $NSS_LINUXDIR/lib/{*.chk,*.a} /usr/lib &&
install -d /usr/include/nss &&
install -m644 {public,private}/nss/* /usr/include/nss &&
Create the pkg-config file:
cat > /usr/lib/pkgconfig/nss.pc << "EOF"
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include/nss
Name: NSS
Description: Network Security Services
Version: 3.11.3
Requires: nspr >= 4.6.3
Libs: -L${libdir} -lssl3 -lsmime3 -lnss3 -Wl,-R${libdir}
Cflags: -I${includedir}
EOF
Multilib
32Bit
Compile the package:
export WORKINGDIR=$PWD &&
echo 'INCLUDES += -I/usr/include/nspr' >> mozilla/security/coreconf/headers.mk &&
for dir in $PWD/mozilla/security/{coreconf,dbm,nss}; do
cd $dir &&
make CC="gcc ${BUILD32}" BUILD_OPT=1
done
Install the package
export NSS_LINUXDIR=$(basename `dir -d $WORKINGDIR/mozilla/dist/Linux*`) &&
cd $WORKINGDIR/mozilla/dist &&
install -m755 $NSS_LINUXDIR/lib/*.so /usr/lib &&
install -m644 $NSS_LINUXDIR/lib/{*.chk,*.a} /usr/lib &&
install -d /usr/include/nss &&
install -m644 {public,private}/nss/* /usr/include/nss &&
Create the pkg-config file:
cat > /usr/lib/pkgconfig/nss.pc << "EOF"
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include/nss
Name: NSS
Description: Network Security Services
Version: 3.11.3
Requires: nspr >= 4.6.3
Libs: -L${libdir} -lssl3 -lsmime3 -lnss3 -Wl,-R${libdir}
Cflags: -I${includedir}
EOF