Browse Source

build: add `fingerprint' target

pull/146/head 19.1.10
Franco Fichtner 1 year ago
parent
commit
b22e911fab
4 changed files with 45 additions and 5 deletions
  1. +5
    -4
      Makefile
  2. +5
    -0
      README.md
  3. +1
    -1
      build/common.sh
  4. +34
    -0
      build/fingerprint.sh

+ 5
- 4
Makefile View File

@ -24,11 +24,12 @@
# SUCH DAMAGE.
STEPS= arm base boot chroot clean compress confirm core distfiles \
download dvd info kernel nano plugins ports prefetch print \
rebase release rename rewind serial sign skim test update \
upload verify vga vm xtools
download dvd fingerprint info kernel nano plugins ports \
prefetch print rebase release rename rewind serial sign \
skim test update upload verify vga vm xtools
SCRIPTS= batch hotfix nightly
.PHONY: ${STEPS}
.PHONY: ${STEPS} ${SCRIPTS}
PAGER?= less

+ 5
- 0
README.md View File

@ -370,6 +370,11 @@ out on the system can be printed using:
# make info
Repositories that have signing keys can show the current
fingerprint using:
# make fingerprint
Last but not least, in case build variables needs to be inspected,
they can be printed selectively using:

+ 1
- 1
build/common.sh View File

@ -256,7 +256,7 @@ export PRODUCT_PLUGIN="os-*${PRODUCT_SUFFIX}"
case "${SELF}" in
confirm|info|print)
confirm|fingerprint|info|print)
;;
*)
if [ -z "${PRINT_ENV_SKIP}" ]; then

+ 34
- 0
build/fingerprint.sh View File

@ -0,0 +1,34 @@
#!/bin/sh
# Copyright (c) 2019 Franco Fichtner <franco@opnsense.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
set -e
SELF=fingerprint
. ./common.sh
${PRODUCT_SIGNCHK}

Loading…
Cancel
Save