Setting up a FreeBSD Update Server for FreeBSD 7.0

Check out a copy of the freebsd-update-server code from CVS:

# cvs -d co projects/freebsd-update-server

Create the patches/7.0-RELEASE directory:

# cd patches
# mkdir 7.0-RELEASE
# cd 7.0-RELEASE

Fetch the patches needed:

fetch -o 1-SA-08:05.openssh
fetch -o 2-SA-08:02.tcp
fetch -o 3-SA-08:06.bind7
fetch -o 4-SA-08:07.amd64
fetch -o 5-SA-08:08.nmount
fetch -o 6-SA-08:09.icmp6
fetch -o 7-SA-08:10.nd6
fetch -o 8-SA-08:11.arc4random
fetch -o 9-SA-08:12.ftpd
fetch -o 10-SA-08:13.protosw
fetch -o 11-SA-09:01.lukemftpd
fetch -o 12-SA-09:02.openssl
fetch -o 13-SA-09:03.ntpd
fetch -o 14-SA-09:04.bind
fetch -o 15-SA-09:05.telnetd
fetch -o 16-SA-09:06.ktimer
fetch -o 17-SA-09:07.libc
fetch -o 18-SA-09:08.openssl

Make the local path where freebsd-update-server can find the ISO, I'm using my home dir:

# mkdir -p ~/amd64/ISO-IMAGES/7.0/

Grab the FreeBSD 7.0 amd64 ISO and stuff it into the local path:

# fetch

Edit scripts/build.conf appropriately. This is what mine looks like:

# $FreeBSD: projects/freebsd-update-server/scripts/build.conf,v 1.1 2006/08/31 07:48:40 cperciva Exp $

# Main configuration file for FreeBSD Update builds.  The
# release-specific configuration data is lower down in
# the scripts tree.

# Location from which to fetch releases
#export FTP=
export FTP=/home/brd

# Host platform
export HOSTPLATFORM=`uname -m`

# Host name to use inside jails

# Location of SSH key
#export SSHKEY=/root/.ssh/id_dsa
export SSHKEY=/root/.ssh/id_rsa

# SSH account into which files are uploaded

# Directory into which files are uploaded

Update the scripts/7.0-RELEASE/amd64 with the following:

# $FreeBSD: projects/freebsd-update-server/scripts/6.2-RELEASE/i386/build.conf,v 1.1 2007/01/14 21:42:03 cperciva Exp $

# SHA256 hash of RELEASE disc1.iso image.
export RELH=d3b206eb74df7559041dd9054de7352b9a67d4f350e75f433c7fb001bf4b5c6f

# Components of the world, source, and kernels
export WORLDPARTS="base catpages dict doc games lib32 info manpages proflibs"
export SOURCEPARTS="base bin cddl compat contrib crypto etc games gnu include krb5      \
                lib libexec release rescue sbin secure share sys tools  \
                ubin usbin"
export KERNELPARTS="generic"

# EOL date (my personal EoL date (May 6th, 2010)
export EOL=1273125600

Run scripts/ and populate with the key and a passphrase.

Run `scripts/ amd64 7.0-RELEASE'.

Powered by FreeBSD! r4l domain registration