Print this page
4108 remove ON_CRYPTO_BINS from tools

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/bindrop.sh
          +++ new/usr/src/tools/scripts/bindrop.sh
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  
  23   23  #
  24   24  # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  25   25  #
  26   26  # Create an encumbered binaries tarball from a full build proto area,
  27      -# less the contents of an OpenSolaris proto area.  Special handling
  28      -# for crypto binaries that need to be signed by Sun Release
  29      -# Engineering.
       27 +# less the contents of an OpenSolaris proto area.
  30   28  #
  31   29  
  32   30  usage="bindrop [-n] basename"
  33   31  
  34   32  isa=`uname -p`
  35   33  
  36   34  PATH="$PATH:/usr/bin:/usr/sfw/bin"
  37   35  
  38   36  function fail {
  39   37          print -u2 "bindrop: $@"
↓ open down ↓ 63 lines elided ↑ open up ↑
 103  101  #
 104  102  needdirs=$(mktemp -t needdirsXXXXX)
 105  103  [[ -n "$needdirs" ]] || fail "can't create temporary directory list file."
 106  104  
 107  105  #
 108  106  # Copy the closed root parallel tree into a temp directory.
 109  107  #
 110  108  (cd "${ROOT}${suffix}-closed"; tar cf - .) | (cd "$tmpdir/closed/$rootdir"; tar xpf -)
 111  109  
 112  110  #
 113      -# Remove internal ON crypto signing certs
 114      -#
 115      -delete="
 116      -        etc/certs/SUNWosnetSE
 117      -        etc/certs/SUNWosnetSolaris
 118      -        etc/crypto/certs/SUNWosnet
 119      -        etc/crypto/certs/SUNWosnetLimited
 120      -        etc/crypto/certs/SUNWosnetCF
 121      -        etc/crypto/certs/SUNWosnetCFLimited
 122      -        "
 123      -
 124      -#
 125  111  # Remove miscellaneous files that we don't want to ship.
 126  112  #
 127  113  
 128  114  # SUNWsvvs (SVVS test drivers).
 129      -delete="$delete
      115 +delete="
 130  116          usr/include/sys/svvslo.h
 131  117          usr/include/sys/tidg.h
 132  118          usr/include/sys/tivc.h
 133  119          usr/include/sys/tmux.h
 134  120          usr/kernel/drv/amd64/svvslo
 135  121          usr/kernel/drv/amd64/tidg
 136  122          usr/kernel/drv/amd64/tivc
 137  123          usr/kernel/drv/amd64/tmux
 138  124          usr/kernel/drv/sparcv9/svvslo
 139  125          usr/kernel/drv/sparcv9/tidg
↓ open down ↓ 106 lines elided ↑ open up ↑
 246  232  # only want to delete empty directories--so redirect the complaints to
 247  233  # /dev/null.
 248  234  #
 249  235  (cd "$tmpdir/closed/$rootdir"; \
 250  236          find * -type d -print | /usr/xpg4/bin/grep -xv -f $needdirs | \
 251  237          sort -r | xargs -l rmdir 2>/dev/null )
 252  238  
 253  239  rm "$needdirs"
 254  240  
 255  241  #
 256      -# Exclude signed crypto binaries; they are delivered in their
 257      -# own tarball.
 258      -#
 259      -ROOT="$tmpdir/closed/$rootdir" findcrypto "$SRC/tools/codesign/creds" |
 260      -    awk '{ print $2 }' | (cd "$tmpdir/closed/$rootdir"; xargs rm -f)
 261      -
 262      -#
 263  242  # Add binary license files.
 264  243  #
 265  244  
 266  245  cp -p "$SRC/tools/opensolaris/BINARYLICENSE.txt" "$tmpdir/closed" || \
 267  246      fail "can't add BINARYLICENSE.txt"
 268  247  mkreadme "$tmpdir/closed"
 269  248  if [ -f "$CODEMGR_WS/THIRDPARTYLICENSE.ON-BINARIES" ]; then
 270  249      cp -p "$CODEMGR_WS/THIRDPARTYLICENSE.ON-BINARIES" "$tmpdir/closed"
 271  250  fi
 272  251  
 273  252  (cd "$tmpdir"; tar cf "$tarfile" closed) || fail "can't create $tarfile."
 274  253  bzip2 -f "$tarfile" || fail "can't compress $tarfile".
 275  254  
 276  255  rm -rf "$tmpdir"
 277  256  
 278  257  exit 0
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX