source: build-files/freebsd-update/scripts/make.sh @ 635dc54

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 635dc54 was 635dc54, checked in by Kris Moore <kris@…>, 15 months ago

Add our freebsd-update code to GIT

This will become a dumping ground for mods we may make to the freebsd-update
build process, as well as the specific patches we have going into a release

  • Property mode set to 100755
File size: 2.0 KB
Line 
1#!/bin/sh -e
2
3#-
4# Copyright 2006 Colin Percival
5# All rights reserved
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted providing that the following conditions
9# are met:
10# 1. Redistributions of source code must retain the above copyright
11#    notice, this list of conditions and the following disclaimer.
12# 2. Redistributions in binary form must reproduce the above copyright
13#    notice, this list of conditions and the following disclaimer in the
14#    documentation and/or other materials provided with the distribution.
15#
16# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
20# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
24# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
25# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26# POSSIBILITY OF SUCH DAMAGE.
27
28# $FreeBSD: user/cperciva/freebsd-update-build/scripts/make.sh 247826 2013-03-05 00:52:14Z cperciva $
29
30# Build binaries used by FreeBSD Update builds and generate an RSA signing
31# key.  The SHA256 hash of the public key is printed and must be distributed
32# to clients in a secure manner.
33
34# NOTE: This script must be run before anything else (even init.sh), and
35# MUST ONLY BE RUN ONCE.  Running this script again will overwrite your
36# signing key.
37
38. `dirname $0`/build.subr
39readglobalconfig
40makeglobaldirs
41
42# Make programs for finding and removing build stamps.
43makebin
44
45# Generate the RSA key to be used for signing everything.
46makekey
47
48# Encrypt and save the RSA key
49encryptkey
50
51# Unmount the unencrypted key
52umountkeydir
Note: See TracBrowser for help on using the repository browser.