Commit Graph

46 Commits

Author SHA1 Message Date
Renato Botelho
c96b22422c Consider numeric values after BETA and RC 2015-09-04 14:31:57 -03:00
Renato Botelho
5fcc717d11 Improve base package versioning scheme to deal with -DEVELOPMENT, -ALPHA, -BETA and -RC 2015-09-04 14:03:36 -03:00
Renato Botelho
45b13882fd Fix one more reverse check 2015-09-04 12:59:15 -03:00
Renato Botelho
98a4b7a039 Fix filename 2015-09-04 07:38:35 -03:00
Renato Botelho
a7a0034182 Change core pkg dir to have packages under All/ and repo on ./ 2015-09-03 08:02:47 -03:00
Renato Botelho
ab943fc9fe Move snapshot related functions to builder_common.sh and leave build_snapshots.sh a simple script that update repo and call build.sh, without need to know anything about build.conf variables 2015-09-02 16:15:55 -03:00
Renato Botelho
a59ea5eed1 Rename directory where core packages are created to match other package repo path and make it easy to identify 2015-09-02 11:42:55 -03:00
Renato Botelho
6f54efeaf1 Fix reverse checking 2015-09-02 11:34:00 -03:00
Renato Botelho
cf31d8ae93 Remove backtick accidentally left 2015-09-01 14:16:15 -03:00
Renato Botelho
f48a09c706 Do not add timestamp for release builds 2015-09-01 12:17:05 -03:00
Renato Botelho
6329e1eb7e Simplify logic for snapshots datestrings 2015-09-01 12:01:20 -03:00
Renato Botelho
e74b64a1ae Rename OVA_FIRST_PART_SIZE to OVA_FIRST_PART_SIZE_IN_GB to match other similar variables 2015-09-01 10:38:35 -03:00
Renato Botelho
6fc510265d Math here is in bytes, not in blocks, use correct value 2015-09-01 10:11:55 -03:00
Renato Botelho
beb078901d Remove 128 blocks (65536 bytes) from swap size, this is used by loader and boot and makes disk capacity to be respected 2015-09-01 10:04:13 -03:00
Renato Botelho
679b5a66fc First create a raw, then convert it to vmdk, and when convert, use -c to force it to respect size 2015-08-31 18:25:00 -03:00
Renato Botelho
774b0d8234 Fix PEODUCT_URL variable default assignment 2015-08-31 16:49:59 -03:00
Renato Botelho
502db0bde9 Use modern pfSense.ovf template, remove unnecessary variables and use vmdktool to convert disk to a modern version 2015-08-31 16:31:14 -03:00
Renato Botelho
3236b6f490 Export MAKEOBJDIRPREFIX to builder/tmp and stop touching builder /usr/obj 2015-08-28 18:34:36 -03:00
Renato Botelho
89a72b5920 Refactor OVA image build process using mkimg and makefs 2015-08-27 18:20:31 -03:00
Renato Botelho
173fa93f6b Move ovf template to templates/ovf, also rename variables accordingly 2015-08-27 11:23:11 -03:00
Renato Botelho
4beba293de We do not need a separate path variable for ovf, use IMAGES_FINAL_DIR instead 2015-08-27 10:44:52 -03:00
Renato Botelho
afbac7f38b Fix i386 kernel names 2015-08-25 15:44:30 -03:00
Renato Botelho
e295b1138d Do not set PKG_RSYNC_HOSTNAME automatically 2015-08-25 14:49:58 -03:00
Renato Botelho
46f33ce599 Remove pfSense definitions from default config and move check after PRODUCT_NAME is set 2015-08-25 14:49:58 -03:00
Renato Botelho
1b0a9747e0 Remove local from declarations out of functions 2015-08-25 14:49:58 -03:00
Renato Botelho
77308bce20 Fix reverse check 2015-08-25 14:49:58 -03:00
Renato Botelho
81ec005db3 Detect unauthorized attempt to build pfSense 2015-08-25 14:49:57 -03:00
Renato Botelho
a95458c272 Replace hard coded rsync data by new variables 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
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
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
6f73c36226 Import build scripts from pfSense-tools repo 2015-08-25 14:49:54 -03:00