~ubuntu-branches/ubuntu/raring/nss/raring-security

« back to all changes in this revision

Viewing changes to mozilla/security/nss/tests/tools/tools.sh

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-03-25 13:46:06 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100325134606-bl6liuok2w9l7snv
Tags: 3.12.6-0ubuntu1
* New upstream release 3.12.6 RTM (NSS_3_12_6_RTM)
  - fixes CVE-2009-3555 aka US-CERT VU#120541
* Adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
  - update debian/patches/38_mips64_build.patch
  - update debian/patches/85_security_load.patch
* Remove patches that are merged upstream
  - delete debian/patches/91_nonexec_stack.patch
  - update debian/patches/series
* Bump nspr dependency to 4.8
  - update debian/control
* Add new symbols for 3.12.6
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#
18
18
# The Initial Developer of the Original Code is
19
19
# Netscape Communications Corporation.
20
 
# Portions created by the Initial Developer are Copyright (C) 1994-2000
 
20
# Portions created by the Initial Developer are Copyright (C) 1994-2009
21
21
# the Initial Developer. All Rights Reserved.
22
22
#
23
23
# Contributor(s):
121
121
 
122
122
  TOOLSDIR=${HOSTDIR}/tools
123
123
  COPYDIR=${TOOLSDIR}/copydir
 
124
  SIGNDIR=${TOOLSDIR}/signdir
124
125
 
125
126
  R_TOOLSDIR=../tools
126
127
  R_COPYDIR=../tools/copydir
 
128
  R_SIGNDIR=../tools/signdir
127
129
  P_R_COPYDIR=${R_COPYDIR}
 
130
  P_R_SIGNDIR=${R_SIGNDIR}
128
131
  if [ -n "${MULTIACCESS_DBM}" ]; then
129
132
      P_R_COPYDIR="multiaccess:Tools.$version"
 
133
      P_R_SIGNDIR="multiaccess:Tools.sign.$version"
130
134
  fi
131
135
 
132
136
  mkdir -p ${TOOLSDIR}
133
137
  mkdir -p ${COPYDIR}
 
138
  mkdir -p ${SIGNDIR}
 
139
  cp ${ALICEDIR}/* ${SIGNDIR}/
134
140
  mkdir -p ${TOOLSDIR}/html
135
141
  cp ${QADIR}/tools/sign*.html ${TOOLSDIR}/html
136
142
 
455
461
tools_sign()
456
462
{
457
463
  echo "$SCRIPTNAME: Create objsign cert -------------------------------"
458
 
  echo "signtool -G \"objectsigner\" -d ${P_R_ALICEDIR} -p \"nss\""
459
 
  ${BINDIR}/signtool -G "objsigner" -d ${P_R_ALICEDIR} -p "nss" 2>&1 <<SIGNSCRIPT
 
464
  echo "signtool -G \"objectsigner\" -d ${P_R_SIGNDIR} -p \"nss\""
 
465
  ${BINDIR}/signtool -G "objsigner" -d ${P_R_SIGNDIR} -p "nss" 2>&1 <<SIGNSCRIPT
460
466
y
461
467
TEST
462
468
MOZ
469
475
  html_msg $? 0 "Create objsign cert (signtool -G)"
470
476
 
471
477
  echo "$SCRIPTNAME: Signing a jar of files ----------------------------"
472
 
  echo "signtool -Z nojs.jar -d ${P_R_ALICEDIR} -p \"nss\" -k objsigner \\"
 
478
  echo "signtool -Z nojs.jar -d ${P_R_SIGNDIR} -p \"nss\" -k objsigner \\"
473
479
  echo "         ${R_TOOLSDIR}/html"
474
 
  ${BINDIR}/signtool -Z nojs.jar -d ${P_R_ALICEDIR} -p "nss" -k objsigner \
 
480
  ${BINDIR}/signtool -Z nojs.jar -d ${P_R_SIGNDIR} -p "nss" -k objsigner \
475
481
           ${R_TOOLSDIR}/html
476
482
  html_msg $? 0 "Signing a jar of files (signtool -Z)"
477
483
 
478
484
  echo "$SCRIPTNAME: Listing signed files in jar ----------------------"
479
 
  echo "signtool -v nojs.jar -d ${P_R_ALICEDIR} -p nss -k objsigner"
480
 
  ${BINDIR}/signtool -v nojs.jar -d ${P_R_ALICEDIR} -p nss -k objsigner
 
485
  echo "signtool -v nojs.jar -d ${P_R_SIGNDIR} -p nss -k objsigner"
 
486
  ${BINDIR}/signtool -v nojs.jar -d ${P_R_SIGNDIR} -p nss -k objsigner
481
487
  html_msg $? 0 "Listing signed files in jar (signtool -v)"
482
488
 
483
489
  echo "$SCRIPTNAME: Show who signed jar ------------------------------"
484
 
  echo "signtool -w nojs.jar -d ${P_R_ALICEDIR}"
485
 
  ${BINDIR}/signtool -w nojs.jar -d ${P_R_ALICEDIR}
 
490
  echo "signtool -w nojs.jar -d ${P_R_SIGNDIR}"
 
491
  ${BINDIR}/signtool -w nojs.jar -d ${P_R_SIGNDIR}
486
492
  html_msg $? 0 "Show who signed jar (signtool -w)"
487
493
 
488
494
  echo "$SCRIPTNAME: Signing a xpi of files ----------------------------"
489
 
  echo "signtool -Z nojs.xpi -X -d ${P_R_ALICEDIR} -p \"nss\" -k objsigner \\"
 
495
  echo "signtool -Z nojs.xpi -X -d ${P_R_SIGNDIR} -p \"nss\" -k objsigner \\"
490
496
  echo "         ${R_TOOLSDIR}/html"
491
 
  ${BINDIR}/signtool -Z nojs.xpi -X -d ${P_R_ALICEDIR} -p "nss" -k objsigner \
 
497
  ${BINDIR}/signtool -Z nojs.xpi -X -d ${P_R_SIGNDIR} -p "nss" -k objsigner \
492
498
           ${R_TOOLSDIR}/html
493
499
  html_msg $? 0 "Signing a xpi of files (signtool -Z -X)"
494
500
 
495
501
  echo "$SCRIPTNAME: Listing signed files in xpi ----------------------"
496
 
  echo "signtool -v nojs.xpi -d ${P_R_ALICEDIR} -p nss -k objsigner"
497
 
  ${BINDIR}/signtool -v nojs.xpi -d ${P_R_ALICEDIR} -p nss -k objsigner
 
502
  echo "signtool -v nojs.xpi -d ${P_R_SIGNDIR} -p nss -k objsigner"
 
503
  ${BINDIR}/signtool -v nojs.xpi -d ${P_R_SIGNDIR} -p nss -k objsigner
498
504
  html_msg $? 0 "Listing signed files in xpi (signtool -v)"
499
505
 
500
506
  echo "$SCRIPTNAME: Show who signed xpi ------------------------------"
501
 
  echo "signtool -w nojs.xpi -d ${P_R_ALICEDIR}"
502
 
  ${BINDIR}/signtool -w nojs.xpi -d ${P_R_ALICEDIR}
 
507
  echo "signtool -w nojs.xpi -d ${P_R_SIGNDIR}"
 
508
  ${BINDIR}/signtool -w nojs.xpi -d ${P_R_SIGNDIR}
503
509
  html_msg $? 0 "Show who signed xpi (signtool -w)"
504
510
 
505
511
}