Renato Botelho
a95458c272
Replace hard coded rsync data by new variables
2015-08-25 14:49:57 -03:00
Renato Botelho
0431a7a92e
Leave RSYNCIP to be defined in build.conf by user, exit if it's not defined
2015-08-25 14:49:57 -03:00
Renato Botelho
2abc3e8024
Rename NO_CLEANFREEBSDOBJDIR -> NO_CLEAN_FREEBSD_OBJ and NO_CLEANREPOS -> NO_CLEAN_FREEBSD_SRC
2015-08-25 14:49:57 -03:00
Renato Botelho
3b5bba5c14
Repect SCRATCHDIR
2015-08-25 14:49:57 -03:00
Renato Botelho
dde49befe7
Remove ensure_source_directories_present() and call update_freebsd_sources() direct
2015-08-25 14:49:57 -03:00
Renato Botelho
f36b26f8bc
Define BUILDER_TOOLS and BUILDER_ROOT on caller scripts and add extra checks
2015-08-25 14:49:57 -03:00
Renato Botelho
7e6ab3edfd
Rename clean_obj_dir() to clean_builder()
2015-08-25 14:49:56 -03:00
Renato Botelho
f546e6ca57
Do not remove CHROOT directories, they can be mounted on MFS filesystems. Create them if they don't exist and just delete their content
2015-08-25 14:49:56 -03:00
Renato Botelho
934e3e0420
Reorder default definitions grouping by subject
2015-08-25 14:49:56 -03:00
Renato Botelho
8739dcddd2
Remove unused variable NANO_WITH_VGA
2015-08-25 14:49:56 -03:00
Renato Botelho
74d8fbe9ef
Make sure we do not add empty -j to make parameter
2015-08-25 14:49:56 -03:00
Renato Botelho
64f272035c
Rename SRCDIR to FREEBSD_SRC_DIR and change default value to SCRATCHDIR/FreeBSD-src to make build process less intrusive
2015-08-25 14:49:56 -03:00
Renato Botelho
328c4fb997
Move stage dir and final iso dir to ./tmp to make build process less intrusive
2015-08-25 14:49:56 -03:00
Renato Botelho
c05b4e7d40
Remove unused var BUILDER_HOST_TARGET
2015-08-25 14:49:55 -03:00
Renato Botelho
8b5ccd242a
Remove unnecessary IFS replacement
2015-08-25 14:49:55 -03:00
Renato Botelho
84331fdc55
Add quotes to default variables definitions
2015-08-25 14:49:55 -03:00
Renato Botelho
d111360dfe
Detect current branch or tag
2015-08-25 14:49:55 -03:00
Renato Botelho
edef37f6da
Do not try to get make.conf from other branch
2015-08-25 14:49:55 -03:00
Renato Botelho
f6eb412c84
_BUILDER_EPOCH is local
2015-08-25 14:49:55 -03:00
Renato Botelho
04992be2bf
Rename MAKEOBJDIRPREFIXFINAL to IMAGES_FINAL_DIR
2015-08-25 14:49:55 -03:00
Renato Botelho
eb31cdf1fe
Read /etc/version and set PRODUCT_VERSION
2015-08-25 14:49:55 -03:00
Renato Botelho
694028d6ae
Introduce PRODUCT_SRC
2015-08-25 14:49:54 -03:00
Renato Botelho
0ce2a7f3aa
Rename BUILDER_SCRIPTS to BUILDER_TOOLS that makes more sense on current infrastructure, also remove some cd calls
2015-08-25 14:49:54 -03:00
Renato Botelho
78b0f246af
Adapt tools scripts for pfSense main repo (round #1 ):
...
- Move SCRATCHDIR to ./tmp and add it to .gitignore
- Move logs to ./logs and add it to .gitignore
- Add build.conf to .gitignore
- Rename BUILDER_TOOLS to BUILDER_ROOT that makes more sense in new
infrastructure
- Change some (cd DIR && git) to git -C DIR
- Remove BASE_DIR
- Remove TOOLS_DIR
- Remove update_product_repository()
- Remove TOOLS_*_COMMIT variables
- Rename PRODUCT_CURRENT_COMMIT and PRODUCT_LAST_COMMIT to simply
CURRENT_COMMIT and LAST_COMMIT
- Remove all use of GIT_REPO_DIR, GIT_REPO_UTL and GIT_REPO_TOOLS
- Change clone_to_staging_area() to clone ./src instad of ./
- Detect if script was called from / or /tools and set BUILDER_ROOT
and BUILDER_SCRIPTS properly
- Create SCRATCHDIR if it doesn't exist
2015-08-25 14:49:54 -03:00
Renato Botelho
4a6ea7b274
Change the way to detect BUILDER_SCRIPTS and BUILDER_TOOLS and make build.conf optional
2015-08-25 14:49:54 -03:00
Renato Botelho
782f0bb215
We won't use set_version.sh anymore, now build system follows main repo then it's not supposed to be able multiple pfSense versions
2015-08-25 14:49:54 -03:00
Renato Botelho
294fb00f9a
Fix file permission
2015-08-25 14:49:54 -03:00
Renato Botelho
6f73c36226
Import build scripts from pfSense-tools repo
2015-08-25 14:49:54 -03:00