Detect unauthorized attempt to build pfSense

This commit is contained in:
Renato Botelho 2015-08-25 11:30:23 -03:00
parent d27cb78d6d
commit 81ec005db3

View File

@ -81,6 +81,13 @@ 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