forked from billm/pfsense-tools-centipede-slbd
/
build_embedded.sh
executable file
·67 lines (44 loc) · 1.42 KB
/
build_embedded.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/sh
# pfSense master builder script
# (C)2005 Scott Ullrich and the pfSense project
# All rights reserved.
#set -e -u # uncomment me if you want to exit on shell errors
# Read in FreeSBIE configuration variables and set:
# FREESBIEBASEDIR=/usr/local/livefs
# LOCALDIR=/home/pfSense/freesbie
# PATHISO=/home/pfSense/freesbie/FreeSBIE.iso
. ../../freesbie/config.sh
. ../../freesbie/.common.sh
# Suck in local vars
. ./pfsense_local.sh
# Suck in script helper functions
. ./builder_common.sh
# Define the Kernel file we're using
export KERNCONF=pfSense_wrap.6
# Update cvs depot
rsync -avz sullrich@216.135.66.16:/cvsroot /home/pfsense/
# Remove staging area files
rm -rf $LOCALDIR/files/custom/*
rm -rf $BASE_DIR/pfSense
rm -rf $CVS_CO_DIR
# Checkout pfSense information and set our version variables.
cd $BASE_DIR && cvs -d /home/pfsense/cvsroot co pfSense -r RELENG_1
# Calculate versions
version_kernel=`cat $CVS_CO_DIR/etc/version_kernel`
version_base=`cat $CVS_CO_DIR/etc/version_base`
version=`cat $CVS_CO_DIR/etc/version`
cd $LOCALDIR
$LOCALDIR/0.rmdir.sh
$LOCALDIR/1.mkdir.sh
$LOCALDIR/2.buildworld.sh
$LOCALDIR/3.installworld.sh
$LOCALDIR/4.kernel.sh pfSense.6
$LOCALDIR/5.patchfiles.sh
#$LOCALDIR/6.packages.sh
# Add extra files such as buildtime of version, bsnmpd, etc.
populate_extra
create_pfSense_tarball
copy_pfSense_tarball_to_freesbiebasedir
$LOCALDIR/7.customuser.sh
clone_system_only
fixup_wrap