summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-05-27 10:29:04 -0300
committerRenato Botelho <renato@netgate.com>2016-05-27 10:29:39 -0300
commit0458a1fdf6cb10479038138bc3a84ab6822f16d3 (patch)
tree7a0599a24646c9ecf2b6f02db49cdaede8c61da2 /build.sh
parent8f2138b6ccbc4a0fcc61c19015d9b5e8f0fb0c77 (diff)
downloadpfsense-0458a1fdf6cb10479038138bc3a84ab6822f16d3.zip
pfsense-0458a1fdf6cb10479038138bc3a84ab6822f16d3.tar.gz
Add a new option --rsync-repos to build.sh
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 69f461f..61f46ee 100755
--- a/build.sh
+++ b/build.sh
@@ -61,6 +61,7 @@ usage() {
echo " --resume-image-build|-r - Includes -c -d and also will just move directly to image creation using pre-staged data"
echo " --setup - Install required repo and ports builder require to work"
echo " --update-sources - Refetch FreeBSD sources"
+ echo " --rsync-repos - rsync pkg repos"
echo " --print-flags - Show current builder configuration"
echo " --clean-builder - clean all builder used data/resources"
echo " --build-kernels - build all configured kernels"
@@ -124,6 +125,9 @@ while test "$1" != ""; do
--setup)
BUILDACTION="builder_setup"
;;
+ --rsync-repos)
+ BUILDACTION="rsync_repos"
+ ;;
--build-kernels)
BUILDACTION="buildkernels"
;;
@@ -284,6 +288,10 @@ case $BUILDACTION in
update_poudriere_ports)
poudriere_update_ports
;;
+ rsync_repos)
+ unset SKIP_FINAL_RSYNC
+ pkg_repo_rsync "${CORE_PKG_PATH}"
+ ;;
update_pkg_repo)
if [ -z "${DO_NOT_UPLOAD}" -a ! -f /usr/local/bin/rsync ]; then
echo "ERROR: rsync is not installed, aborting..."
OpenPOWER on IntegriCloud