| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # | 2 # |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # TODO(mmoss) This currently only works with official builds, since non-official | 7 # TODO(mmoss) This currently only works with official builds, since non-official |
| 8 # builds don't add the "${BUILDDIR}/installer/" files needed for packaging. | 8 # builds don't add the "${BUILDDIR}/installer/" files needed for packaging. |
| 9 | 9 |
| 10 set -e | 10 set -e |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 VERSIONFULL="${VERSION}-${PACKAGE_RELEASE}" | 229 VERSIONFULL="${VERSION}-${PACKAGE_RELEASE}" |
| 230 | 230 |
| 231 if [ "$BRANDING" = "google_chrome" ]; then | 231 if [ "$BRANDING" = "google_chrome" ]; then |
| 232 source "${BUILDDIR}/installer/common/google-chrome.info" | 232 source "${BUILDDIR}/installer/common/google-chrome.info" |
| 233 else | 233 else |
| 234 source "${BUILDDIR}/installer/common/chromium-browser.info" | 234 source "${BUILDDIR}/installer/common/chromium-browser.info" |
| 235 fi | 235 fi |
| 236 eval $(sed -e "s/^\([^=]\+\)=\(.*\)$/export \1='\2'/" \ | 236 eval $(sed -e "s/^\([^=]\+\)=\(.*\)$/export \1='\2'/" \ |
| 237 "${BUILDDIR}/installer/theme/BRANDING") | 237 "${BUILDDIR}/installer/theme/BRANDING") |
| 238 | 238 |
| 239 REPOCONFIG="deb http://dl.google.com/linux/chrome/deb/ stable main" | |
| 240 SSLREPOCONFIG="deb https://dl.google.com/linux/chrome/deb/ stable main" | |
| 241 verify_channel | 239 verify_channel |
| 242 | 240 |
| 243 # Some Debian packaging tools want these set. | 241 # Some Debian packaging tools want these set. |
| 244 export DEBFULLNAME="${MAINTNAME}" | 242 export DEBFULLNAME="${MAINTNAME}" |
| 245 export DEBEMAIL="${MAINTMAIL}" | 243 export DEBEMAIL="${MAINTMAIL}" |
| 246 | 244 |
| 247 # We'd like to eliminate more of these deps by relying on the 'lsb' package, but | 245 # We'd like to eliminate more of these deps by relying on the 'lsb' package, but |
| 248 # that brings in tons of unnecessary stuff, like an mta and rpm. Until that full | 246 # that brings in tons of unnecessary stuff, like an mta and rpm. Until that full |
| 249 # 'lsb' package is installed by default on DEB distros, we'll have to stick with | 247 # 'lsb' package is installed by default on DEB distros, we'll have to stick with |
| 250 # the LSB sub-packages, to avoid pulling in all that stuff that's not installed | 248 # the LSB sub-packages, to avoid pulling in all that stuff that's not installed |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 COMMON_DEPS="${DPKG_SHLIB_DEPS}, ${ADDITION_DEPS}" | 314 COMMON_DEPS="${DPKG_SHLIB_DEPS}, ${ADDITION_DEPS}" |
| 317 COMMON_PREDEPS="dpkg (>= 1.14.0)" | 315 COMMON_PREDEPS="dpkg (>= 1.14.0)" |
| 318 | 316 |
| 319 | 317 |
| 320 # Make everything happen in the OUTPUTDIR. | 318 # Make everything happen in the OUTPUTDIR. |
| 321 cd "${OUTPUTDIR}" | 319 cd "${OUTPUTDIR}" |
| 322 | 320 |
| 323 case "$TARGETARCH" in | 321 case "$TARGETARCH" in |
| 324 ia32 ) | 322 ia32 ) |
| 325 export ARCHITECTURE="i386" | 323 export ARCHITECTURE="i386" |
| 326 stage_install_debian | |
| 327 ;; | 324 ;; |
| 328 x64 ) | 325 x64 ) |
| 329 export ARCHITECTURE="amd64" | 326 export ARCHITECTURE="amd64" |
| 330 stage_install_debian | |
| 331 ;; | 327 ;; |
| 332 * ) | 328 * ) |
| 333 echo | 329 echo |
| 334 echo "ERROR: Don't know how to build DEBs for '$TARGETARCH'." | 330 echo "ERROR: Don't know how to build DEBs for '$TARGETARCH'." |
| 335 echo | 331 echo |
| 336 exit 1 | 332 exit 1 |
| 337 ;; | 333 ;; |
| 338 esac | 334 esac |
| 335 BASEREPOCONFIG="dl.google.com/linux/chrome/deb/ stable main" |
| 336 # Only use the default REPOCONFIG if it's unset (e.g. verify_channel might have |
| 337 # set it to an empty string) |
| 338 REPOCONFIG="${REPOCONFIG-deb [arch=${ARCHITECTURE}] http://${BASEREPOCONFIG}}" |
| 339 # Allowed configs include optional HTTPS support and explicit multiarch |
| 340 # platforms. |
| 341 REPOCONFIGREGEX="deb (\\\\[arch=[^]]*\\\\b${ARCHITECTURE}\\\\b[^]]*\\\\]" |
| 342 REPOCONFIGREGEX+="[[:space:]]*)?https?://${BASEREPOCONFIG}" |
| 343 stage_install_debian |
| 339 | 344 |
| 340 do_package | 345 do_package |
| OLD | NEW |