diff options
author | Renato Botelho <renato@netgate.com> | 2015-08-25 12:23:58 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-25 14:49:58 -0300 |
commit | 46f33ce5992dd884060a0e46065958fdc04e3d85 (patch) | |
tree | e55c1c818b97099c8a9de24c490c476682165898 /tools | |
parent | 90ac1d3639abb9f31d5009fe41143bcc82ba02b3 (diff) | |
download | pfsense-46f33ce5992dd884060a0e46065958fdc04e3d85.zip pfsense-46f33ce5992dd884060a0e46065958fdc04e3d85.tar.gz |
Remove pfSense definitions from default config and move check after PRODUCT_NAME is set
Diffstat (limited to 'tools')
-rw-r--r-- | tools/builder_defaults.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/builder_defaults.sh b/tools/builder_defaults.sh index 5f04f4b..dc8666d 100644 --- a/tools/builder_defaults.sh +++ b/tools/builder_defaults.sh @@ -81,13 +81,6 @@ if [ -f ${BUILD_CONF} ]; then . ${BUILD_CONF} fi -if [ "${PRODUCT_NAME}" = "pfSense" -a "${BUILD_AUTHORIZED_BY_ELECTRIC_SHEEP_FENCING}" != yes ]; then - echo ">>>ERROR: According the following license, only Electric Sheep Fencing can build genuine pfSense® software" - echo "" - cat ${BUILDER_ROOT}/license.txt - exit 1 -fi - # Make sure pkg will not be interactive export ASSUME_ALWAYS_YES=true @@ -111,10 +104,17 @@ if [ ! -d ${SCRATCHDIR} ]; then fi # Product details -export PRODUCT_NAME=${PRODUCT_NAME:-"pfSense"} -export PRODUCT_URL=${PRODUCT_VERSION:-"https://www.pfsense.org/"} +export PRODUCT_NAME=${PRODUCT_NAME:-"nonSense"} +export PRODUCT_URL=${PRODUCT_VERSION:-""} export PRODUCT_SRC=${PRODUCT_SRC:-"${BUILDER_ROOT}/src"} +if [ "${PRODUCT_NAME}" = "pfSense" -a "${BUILD_AUTHORIZED_BY_ELECTRIC_SHEEP_FENCING}" != "yes" ]; then + echo ">>>ERROR: According the following license, only Electric Sheep Fencing can build genuine pfSense® software" + echo "" + cat ${BUILDER_ROOT}/license.txt + exit 1 +fi + if [ -z "${PRODUCT_VERSION}" ]; then if [ ! -f ${PRODUCT_SRC}/etc/version ]; then echo ">>> ERROR: PRODUCT_VERSION is not defined and ${PRODUCT_SRC}/etc/version was not found" |