Commit Graph

664 Commits

Author SHA1 Message Date
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
44eea20c15 Remove extra 'i' left by accident 2015-08-31 16:43:59 -03:00
Renato Botelho
2dc195f911 Check if final file exists, not temporary 2015-08-31 16:37:39 -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
7e35e0bd41 Fix typo in variable name 2015-08-28 12:02:57 -03:00
Renato Botelho
fc48ef5427 Add macros between %% and %% on pfSense.ovf, then simplify the logic of ova_setup_ovf_template() 2015-08-28 11:53:03 -03:00
Renato Botelho
8950897efd Use 2 different networks on ovf, LAN and WAN. While here, fix vmxnet3 case to VmxNet3 2015-08-28 11:48:13 -03:00
Renato Botelho
4566dcdd94 Catch up with meta port rename pfSense-vm -> pfSense-vmware 2015-08-27 18:28:57 -03:00
Renato Botelho
89a72b5920 Refactor OVA image build process using mkimg and makefs 2015-08-27 18:20:31 -03:00
Renato Botelho
abf0b0f335 Replace e1000 by vmxnet3 2015-08-27 17:18:37 -03:00
Renato Botelho
f984af4d47 Remove more redundant actions 2015-08-27 14:28:49 -03:00
Renato Botelho
6e134e300f Do not calculate size of mnt partition if it's not used anyway 2015-08-27 14:22:13 -03:00
Renato Botelho
2f4d7dbc67 Stop modifying conf directories for ova, it's handled by default-config package 2015-08-27 14:20:59 -03:00
Renato Botelho
22753a63c2 Do not mount ovf image on /mnt but inside builder to avoid touching builder 2015-08-27 14:11:07 -03:00
Renato Botelho
71b5fc938b Remove path to call echo 2015-08-27 12:07:45 -03:00
Renato Botelho
3ade347884 Remove lots of sync calls 2015-08-27 12:07:26 -03:00
Renato Botelho
50dcadff36 Remove unnecessary variables, also add some error checking 2015-08-27 11:33:31 -03:00
Renato Botelho
a82b9f43fa Rename ova_setup_ovf_file() to ova_setup_ovf_template() 2015-08-27 11:30:09 -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
03b565250a Obsolete use of /etc/nano_use_vga.txt, Use enableserial_force flag instead 2015-08-27 07:49:49 -03:00
Renato Botelho
30ce58ac1e Use full path to source file 2015-08-26 07:56:46 -03:00
Renato Botelho
afbac7f38b Fix i386 kernel names 2015-08-25 15:44:30 -03:00
Renato Botelho
5240564c05 Stop calling ntpdate to fix builder clock 2015-08-25 14:49:59 -03:00
Renato Botelho
23975558c6 Check if file exists before try to access it 2015-08-25 14:49:59 -03:00
Renato Botelho
230372b6b7 Remove extra spaces 2015-08-25 14:49:58 -03:00
Renato Botelho
e295b1138d Do not set PKG_RSYNC_HOSTNAME automatically 2015-08-25 14:49:58 -03:00
Renato Botelho
1c4415347b Fix update_package_pfPorts.php to work with new build structure 2015-08-25 14:49:58 -03:00
Renato Botelho
78473cec8e Fix wrong variable name 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
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