build: softcode PRODUCT_NAME where we can
This commit is contained in:
parent
d6755fdff9
commit
da79c50876
|
@ -45,11 +45,11 @@ export COREDIR="/usr/core"
|
|||
export SRCDIR="/usr/src"
|
||||
|
||||
# misc. foo
|
||||
export CONFIG_PKG="/usr/local/etc/pkg/repos/OPNsense.conf"
|
||||
export CONFIG_XML="/usr/local/etc/config.xml"
|
||||
export CONFIG_PKG="/usr/local/etc/pkg/repos/${PRODUCT_NAME}.conf"
|
||||
export CPUS=`sysctl kern.smp.cpus | awk '{ print $2 }'`
|
||||
export CONFIG_XML="/usr/local/etc/config.xml"
|
||||
export ARCH=${ARCH:-"`uname -m`"}
|
||||
export LABEL="OPNsense_Install"
|
||||
export LABEL=${PRODUCT_NAME}
|
||||
export TARGET_ARCH=${ARCH}
|
||||
export TARGETARCH=${ARCH}
|
||||
|
||||
|
@ -196,7 +196,8 @@ setup_packages()
|
|||
|
||||
for PKG in ${PKGLIST}; do
|
||||
# add, unlike install, is not aware of repositories :(
|
||||
pkg -c ${BASEDIR} annotate -qyA ${PKG} repository OPNsense
|
||||
pkg -c ${BASEDIR} annotate -qyA ${PKG} \
|
||||
repository ${PRODUCT_NAME}
|
||||
done
|
||||
|
||||
# keep the directory!
|
||||
|
|
|
@ -29,6 +29,9 @@ set -e
|
|||
|
||||
. ./common.sh
|
||||
|
||||
# rewrite the disk label, because we're install media
|
||||
LABEL="${LABEL}_Install"
|
||||
|
||||
mkdir -p ${IMAGESDIR}
|
||||
|
||||
setup_stage ${STAGEDIR}
|
||||
|
|
|
@ -30,6 +30,9 @@ set -e
|
|||
|
||||
. ./common.sh
|
||||
|
||||
# rewrite the disk label, because we're install media
|
||||
LABEL="${LABEL}_Install"
|
||||
|
||||
mkdir -p ${IMAGESDIR}
|
||||
|
||||
setup_stage ${STAGEDIR}
|
||||
|
|
|
@ -31,9 +31,6 @@ set -e
|
|||
|
||||
. ./common.sh
|
||||
|
||||
# rewrite the disk label, because we're not install media
|
||||
LABEL=OPNsense
|
||||
|
||||
. ${SRCDIR}/tools/tools/nanobsd/FlashDevice.sub
|
||||
sub_FlashDevice sandisk 2g
|
||||
|
||||
|
|
Loading…
Reference in New Issue