build: softcode PRODUCT_NAME where we can

This commit is contained in:
Franco Fichtner 2015-05-07 08:11:21 +02:00
parent d6755fdff9
commit da79c50876
4 changed files with 11 additions and 7 deletions

View File

@ -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!

View File

@ -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}

View File

@ -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}

View File

@ -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