Difference between revisions of "NSS"

From CBLFS
Jump to navigationJump to search
Line 3: Line 3:
 
!Download Source:
 
!Download Source:
 
| http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_11_3_RTM/src/nss-3.11.3.tar.gz
 
| http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_11_3_RTM/src/nss-3.11.3.tar.gz
 +
|-
 +
!Download nss-config:
 +
| http://www.cross-lfs.org/~jciccone/nss-config
 
|}
 
|}
  
 
----
 
----
 
'''''Look into why nss-config isn't shipped in the tarball.'''''
 
  
 
== Dependencies ==
 
== Dependencies ==
Line 50: Line 51:
 
  Cflags: -I${includedir}
 
  Cflags: -I${includedir}
 
  EOF
 
  EOF
 +
 +
Create /usr/bin/nss-config:
 +
 +
install -v -m755 ../nss-config /usr/bin/nss-config
  
 
== Multilib ==
 
== Multilib ==
Line 89: Line 94:
 
  Cflags: -I${includedir}
 
  Cflags: -I${includedir}
 
  EOF
 
  EOF
 +
 +
Create /usr/bin/nss-config:
 +
 +
install -v -m755 ../nss-config /usr/bin/nss-config
  
 
=== N32 ===
 
=== N32 ===
Line 126: Line 135:
 
  Cflags: -I${includedir}
 
  Cflags: -I${includedir}
 
  EOF
 
  EOF
 +
 +
Create /usr/bin/nss-config:
 +
 +
install -v -m755 ../nss-config /usr/bin/nss-config &&
 +
sed -i "s:/lib:&32:g" /usr/bin/nss-config
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 163: Line 177:
 
  Cflags: -I${includedir}
 
  Cflags: -I${includedir}
 
  EOF
 
  EOF
 +
 +
Create /usr/bin/nss-config:
 +
 +
install -v -m755 ../nss-config /usr/bin/nss-config &&
 +
sed -i "s:/lib:&64:g" /usr/bin/nss-config

Revision as of 19:03, 29 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
Download nss-config: http://www.cross-lfs.org/~jciccone/nss-config

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 -v -m755 $NSS_LINUXDIR/lib/*.so /usr/lib &&
install -v -m644 $NSS_LINUXDIR/lib/{*.chk,*.a} /usr/lib &&
install -v -d /usr/include/nss &&
install -v -m644 {public,private}/nss/* /usr/include/nss &&
unset NSS_LINUXDIR WORKINGDIR

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

Create /usr/bin/nss-config:

install -v -m755 ../nss-config /usr/bin/nss-config

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 -v -m755 $NSS_LINUXDIR/lib/*.so /usr/lib &&
install -v -m644 $NSS_LINUXDIR/lib/{*.chk,*.a} /usr/lib &&
install -v -d /usr/include/nss &&
install -v -m644 {public,private}/nss/* /usr/include/nss &&
unset NSS_LINUXDIR WORKINGDIR

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

Create /usr/bin/nss-config:

install -v -m755 ../nss-config /usr/bin/nss-config

N32

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 ${BUILDN32}" BUILD_OPT=1
done

Install the package

export NSS_LINUXDIR=$(basename `dir -d $WORKINGDIR/mozilla/dist/Linux*`) &&
cd $WORKINGDIR/mozilla/dist &&
install -v -m755 $NSS_LINUXDIR/lib/*.so /usr/lib32 &&
install -v -m644 $NSS_LINUXDIR/lib/{*.chk,*.a} /usr/lib32 &&
install -v -d /usr/include/nss &&
install -v -m644 {public,private}/nss/* /usr/include/nss &&
unset NSS_LINUXDIR WORKINGDIR

Create the pkg-config file:

cat > /usr/lib32/pkgconfig/nss.pc << "EOF"
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib32
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

Create /usr/bin/nss-config:

install -v -m755 ../nss-config /usr/bin/nss-config &&
sed -i "s:/lib:&32:g" /usr/bin/nss-config

64Bit

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 ${BUILD64}" USE_64=1 BUILD_OPT=1
done

Install the package

export NSS_LINUXDIR=$(basename `dir -d $WORKINGDIR/mozilla/dist/Linux*`) &&
cd $WORKINGDIR/mozilla/dist &&
install -v -m755 $NSS_LINUXDIR/lib/*.so /usr/lib64 &&
install -v -m644 $NSS_LINUXDIR/lib/{*.chk,*.a} /usr/lib64 &&
install -v -d /usr/include/nss &&
install -v -m644 {public,private}/nss/* /usr/include/nss &&
unset NSS_LINUXDIR WORKINGDIR

Create the pkg-config file:

cat > /usr/lib64/pkgconfig/nss.pc << "EOF"
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib64
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

Create /usr/bin/nss-config:

install -v -m755 ../nss-config /usr/bin/nss-config &&
sed -i "s:/lib:&64:g" /usr/bin/nss-config
Retrieved from "?title=NSS&oldid=3526"