Commit Graph

664 Commits

Author SHA1 Message Date
Renato Botelho
97f7a15499 Do not add entire path on sha256 file, while here, make it a function 2016-04-11 18:59:07 -03:00
Renato Botelho
5a944dd582 Fix syntax 2016-04-11 12:58:34 -03:00
Renato Botelho
695ba439fd Fix sha356 filenames for ISO and memstick files 2016-04-11 09:37:50 -03:00
Renato Botelho
04e646ebd2 Add vm-bhyve to poudriere bulk list 2016-04-08 16:50:10 -03:00
Renato Botelho
052f4bdb59 Replace packagesite URL with final URL for RELEASE 2016-04-07 16:52:42 -03:00
Renato Botelho
0f2bafaba5 Use staging repo to install bsdinstaller on final area 2016-04-07 14:40:38 -03:00
Renato Botelho
25c5455dd7 Create target dir when it doesn't exist 2016-04-07 14:40:38 -03:00
Renato Botelho
a44dea834b Fix variable name 2016-04-07 14:40:38 -03:00
Renato Botelho
2c27ff24ab Add missing fi 2016-04-07 14:40:38 -03:00
Renato Botelho
ebf9908815 setup_pkg_repo 5th parameter is mandatory 2016-04-07 14:40:38 -03:00
Renato Botelho
97fd32bae5 Use PKG_REPO_SERVER_RELEASE for repo conf used to build package, keep using staging area for builder and bootstrap 2016-04-07 14:40:38 -03:00
Renato Botelho
933da73b4d Define PKG_REPO_SERVER_RELEASE, used to create pfSense-repo package accordingly 2016-04-07 14:40:38 -03:00
Renato Botelho
6064020a7b Do not mount memory disks for -RELEASE build 2016-04-07 14:40:38 -03:00
Renato Botelho
9c34b7aef1 Make sure symlink is created on post-install
(cherry picked from commit f5edca6c48)
2016-04-06 07:21:55 -03:00
Renato Botelho
db8621d8f4 Rework the way repo packages work
- Distribute only a single pfSense-repo package containing all templates
- Create a symlink pointing to selected repo
- Do not limit it only to pfSense-repo and pfSense-repo-devel

(cherry picked from commit a90f1c9b12)
2016-04-05 19:54:59 -03:00
Renato Botelho
f0edcaca5c Add repo pkg as dependency on base and base-nanobsd
(cherry picked from commit b884641b1c)
2016-04-05 19:54:59 -03:00
Renato Botelho
9c8600533d Add repo pkg post-install script
(cherry picked from commit e1deaf759a)
2016-04-05 19:54:59 -03:00
Renato Botelho
487bdff01b Create repo pkg PLIST dynamically
(cherry picked from commit 81bcdf9695)
2016-04-05 19:54:59 -03:00
Renato Botelho
e1fbc125cf Remove repo-devel package template
(cherry picked from commit e450f488eb)
2016-04-05 19:54:59 -03:00
Renato Botelho
83354deaa5 Replace RELENG_ by v for poudriere to make vol name shorter
(cherry picked from commit 7761dab55c)
2016-03-30 22:42:23 -03:00
Renato Botelho
0449a11f93 Remove arch from repo path for now, poudriere cannot deal with big names
(cherry picked from commit a2f4923870)
2016-03-30 22:42:17 -03:00
Renato Botelho
ab225f2b4e Remove arch from repo path for now, poudriere cannot deal with big names
(cherry picked from commit 1aa48975e3)
2016-03-30 22:42:09 -03:00
Renato Botelho
10983687a3 Add ESF license to all core pkgs 2016-03-30 08:03:50 -03:00
Renato Botelho
029098fe04 Add a default suffix to reflect CE 2016-03-24 16:52:35 -03:00
Renato Botelho
d9358f49e7 Remove a wrong call to cap_mkdb 2016-03-22 11:02:01 -03:00
Renato Botelho
3080d476e0 Use UFS2 for memstick images 2016-03-21 16:59:10 -03:00
Renato Botelho
85bc1c63c5 Make sure OVA disk is UFS2 and also enable SUJ 2016-03-21 16:44:13 -03:00
Renato Botelho
c9b3608896 Enable pass on fstab for OVA 2016-03-21 16:43:53 -03:00
Renato Botelho
4b0f15b6ac Make sure pkg keeps installed 2016-03-19 08:07:29 -03:00
Renato Botelho
cdac78f615 Make sure all unnecessary packages are removed 2016-03-18 14:15:39 -03:00
Renato Botelho
b00400ef89 Stop creating a meta package pfSense-vmware and pre-install pfSense-pkg-Open-VM-Tools on ova 2016-03-18 09:10:29 -03:00
Renato Botelho
c471c102c8 Remove stray - from default-config flavor 2016-03-18 09:02:43 -03:00
Renato Botelho
afecba840b Save default-config flavor on filesystem 2016-03-16 10:55:03 -03:00
Renato Botelho
0e334a37f4 Fix sed syntax since variables may contain commas 2016-03-15 22:27:27 -03:00
Renato Botelho
adf8276934 Add more parameters to ovf 2016-03-15 22:04:26 -03:00
Renato Botelho
f2d83cfb7c Add product_name suffix to ova/ovf 2016-03-15 21:30:58 -03:00
Renato Botelho
6c0743bb92 Enable SWANCTL option for security/strongswan 2016-03-14 10:55:59 -03:00
Renato Botelho
5213dbb822 Disable swap on ova 2016-03-10 13:27:51 -03:00
Renato Botelho
2006b940a3 Make it possible to enable/disable swap on ova 2016-03-10 13:27:31 -03:00
Renato Botelho
be4a566183 Calculate first partition size 2016-03-10 13:17:22 -03:00
Renato Botelho
35104e0345 Move internal variable to be local inside function 2016-03-10 13:13:06 -03:00
Renato Botelho
624376f6da Always prepare final partition to avoid ending up with a broken system 2016-03-10 11:05:02 -03:00
Renato Botelho
c7e1c6218e Add pkg-plist when it exists 2016-03-10 09:21:25 -03:00
Renato Botelho
4119c74bc5 rsync ova to snapshots when it's available 2016-03-09 17:57:28 -03:00
Renato Botelho
ea76852be1 Enable NETMAP option for security/suricata
Submitted by: Bill Meeks
2016-03-09 12:54:36 -03:00
Renato Botelho
8c333b4dba Simplify logic 2016-03-08 10:40:13 -03:00
Renato Botelho
1e70041e89 Increase memory disk size 2016-03-08 09:32:27 -03:00
Renato Botelho
d977046e71 remove stray | 2016-03-08 07:14:35 -03:00
Renato Botelho
96f22d875b Fix typo in variable name that end up breaking nanobsd images. Fixes #5956 2016-03-06 11:32:09 -03:00
Renato Botelho
462cbb5a6c Fix log filename 2016-03-06 10:42:42 -03:00
Renato Botelho
43f6b08117 Clarify what is happening 2016-03-04 11:07:09 -03:00
Renato Botelho
c136dde195 Create missing jails on update 2016-03-04 10:52:00 -03:00
Renato Botelho
0db9a65c88 Remove Status -> Monitoring related packages from poudriere bulk 2016-03-03 10:36:25 -03:00
Renato Botelho
b0fc4b281c Add new RRD package to the list 2016-03-03 10:14:57 -03:00
Renato Botelho
e5d0f71afb Consider product_name suffix on rsync 2016-03-01 14:49:17 -03:00
Renato Botelho
a7d60d2633 Allow to have a suffix on images filename 2016-03-01 12:39:00 -03:00
Renato Botelho
acd5c0cd72 Use a function to create nanobsd image filename and reduce duplicated code 2016-03-01 12:19:38 -03:00
Renato Botelho
d3107b4ea0 Remove script used to initial import of packages into ports. It served us well but now it's not necessary anymore 2016-03-01 07:18:08 -03:00
Renato Botelho
75e282959f Make it possible to chose custom default-config package on customize_stagearea_for_image() 2016-02-29 16:28:15 -03:00
Renato Botelho
b2fbacdc38 Save parameter in local variable 2016-02-29 16:23:21 -03:00
Renato Botelho
a069d03fe0 Remove extra quotes 2016-02-26 18:00:18 -03:00
Renato Botelho
c577ee6c50 Add flavor to default serial config package 2016-02-26 17:22:42 -03:00
Renato Botelho
3942b3d7fb Respect empty flavor for description 2016-02-26 17:22:28 -03:00
Luiz Otavio O Souza
f82c7c8897 Enable the build of ix(gbe) as a kernel module. 2016-02-26 12:15:02 -06:00
Renato Botelho
a326d8a152 Do not add - for empty flavor 2016-02-26 13:07:21 -03:00
Renato Botelho
fbd4dfc00b Simplify logic for different kernels and use %%FLAVOR%% macro 2016-02-26 12:59:30 -03:00
Renato Botelho
168c162a00 Unbreak syntax 2016-02-26 11:16:51 -03:00
Renato Botelho
a406ed4699 Add missing config.xml path 2016-02-26 11:06:20 -03:00
Renato Botelho
2f6260c5e7 Replace sed by xmlstarlet to make config.xml changes 2016-02-26 10:43:37 -03:00
Renato Botelho
1eb4344e83 Use DATESTRING for hidden pkg directory, this make -r work again 2016-02-24 15:52:05 -03:00
Renato Botelho
569929efa9 Fix builder setup with signed repo 2016-02-24 12:38:52 -03:00
Renato Botelho
a9087de0f4 Fix variable initialization 2016-02-19 16:50:55 -02:00
Renato Botelho
48c5912ddd Use correct repo to setup builder 2016-02-19 16:50:55 -02:00
jim-p
987712e851 Change ISO image filename to remove "LiveCD" from its name, and clean up associated references to LiveCD. Ticket #5895 2016-02-17 15:27:40 -05:00
Renato Botelho
57fd6bd43a Revert "Do not ignore packages due to license permissions"
This reverts commit e38b001cfe.
2016-02-17 13:38:17 -02:00
Renato Botelho
e38b001cfe Do not ignore packages due to license permissions 2016-02-17 13:18:12 -02:00
Chris Buechler
a6644bc8d7 Add py-speedtest-cli to packages. Ticket #5832 2016-02-06 06:04:14 -06:00
Renato Botelho
5f64e2ca73 Store GIT_URL per session instead of using global conf 2016-02-05 13:08:56 -02:00
Chris Buechler
151d15911e Lessen the boot delay at the F1 prompt on nanobsd from ~12 seconds to ~6 seconds. Ticket #3426 2016-02-04 18:41:27 -06:00
Renato Botelho
8fe9ebacee Remove dhcpd 4.3 from the list since they are pfSense dependencies 2016-02-03 17:59:51 -02:00
Renato Botelho
646f2e1827 Build isc-dhcp43-relay 2016-02-02 18:00:19 -02:00
Renato Botelho
b47a5c534f Build isc-dhcp 4.3 client and server 2016-02-02 17:53:12 -02:00
Renato Botelho
da34e36263 Enable sysutils/flashrom build 2016-02-02 17:07:29 -02:00
Renato Botelho
7d9c553c91 Remove support for nanobsd images < 2gb. Fixes #5836 2016-02-01 17:38:13 -02:00
Renato Botelho
de22e304d4 Disable GRAPH again for rrdtool, it's still a lot of dependencies 2016-02-01 12:38:47 -02:00
Renato Botelho
73246ec83a Change databases/rrdtool options to reflect 1.5.x changes. Disable DEJAVU that ends up requiring X11 and enable GRAPH again 2016-02-01 11:57:33 -02:00
Chris Buechler
9524677179 Re-enable IPV6 for miniupnpd, seems it's not responsible for any issues. Ticket #5730 and Ticket #4321 2016-01-25 19:01:53 -06:00
Chris Buechler
512b8b22ef Revert IPv6 and IGD2 change as it appears it's responsible for breaking many formerly-working upnp circumstances. Ticket #5730. Originally added as part of Ticket #4321 2016-01-22 22:11:10 -06:00
Renato Botelho
dede523f94 Add 2nd parameter of Form_Select to translation 2016-01-21 14:30:01 -02:00
Renato Botelho
dfb9c815f3 Add a script to update .pot file 2016-01-21 14:17:22 -02:00
Renato Botelho
47ae88ff2f Add mysql PHP modules to the pkg server 2016-01-20 12:09:36 -02:00
Renato Botelho
2ade84eeca Revert 7bbe501330 partially adding back make.conf part since pfBlockerNG is going to use lighttpd 2016-01-18 08:03:20 -02:00
Renato Botelho
0f75670b32 Enable LUA for www/nginx 2016-01-12 23:50:25 -02:00
Renato Botelho
a0b96d300e Enable pecl-rrd build 2016-01-12 11:10:02 -02:00
Renato Botelho
8c0429e04d Enable JSON option for rrdtool 1.4 2016-01-12 11:09:38 -02:00
Renato Botelho
301d868673 Process pfSense.obsoletedfiles on nanobsd. Spotted by phil-davis 2016-01-07 10:49:45 -02:00
Renato Botelho
eb9b6a694f Merge pull request #2329 from marcelloc/patch-1 2016-01-07 10:23:04 -02:00
Chris Buechler
7bbe501330 clean up lighttpd 2016-01-05 09:08:10 -02:00
Chris Buechler
8811dfc38b Keeping the disable logging option. Revert "clean up lighttpd bits"
This reverts commit 9de0332dec955ec513b74be9361de72d12aa7245.
2016-01-05 09:08:10 -02:00
Chris Buechler
84a7c17d88 clean up lighttpd bits 2016-01-05 09:08:10 -02:00
Renato Botelho
3a07e333e5 Revert "Build pecl-rrd"
This reverts commit 51c8a5dad9.
2015-12-31 17:12:45 -02:00
Renato Botelho
51c8a5dad9 Build pecl-rrd 2015-12-31 17:07:25 -02:00
Renato Botelho
d7b43acc10 Enable build of rrdtool 1.4 2015-12-31 16:59:18 -02:00
Renato Botelho
a88d130b84 Add options to build rrdtool 1.4 2015-12-31 16:58:43 -02:00
Marcello Coutinho
34fd9263fa Postifx build options 2015-12-28 15:20:03 -02:00
Renato Botelho
73698667dd Disable XCONV option for security/xinetd and remove perl dependency, ticket #5707 2015-12-28 09:46:16 -02:00
Renato Botelho
784206e89e Fix core pkg repo to make rsync work 2015-12-28 08:03:53 -02:00
Renato Botelho
da78104263 Change core packages repo structure to match poudriere, this avoids having issues on client side at the moment we are rsync'ing a new version 2015-12-23 18:09:02 -02:00
Renato Botelho
c2af148776 Note issue # opened against pkg(8) 2015-12-23 15:41:37 -02:00
Renato Botelho
efcf5e2ada Fix repo sign for poudriere directory infrastructure 2015-12-23 14:46:37 -02:00
Renato Botelho
f457518994 Implement necessary code to be able to sign pkg(8) repo 2015-12-23 12:00:46 -02:00
Renato Botelho
84d4df03c5 Remove dpinger from poudriere_bulk, it's already a dependency of security/pfSense 2015-12-18 08:41:57 -02:00
Renato Botelho
fd6cd92bc4 Create distfiles directory if it doesn't exist 2015-12-14 14:08:53 -02:00
Renato Botelho
86349beea1 Revert "Do not set DISTFILES_CACHE"
This reverts commit cd3f4b916c.
2015-12-14 14:07:50 -02:00
Renato Botelho
52ec3f665b Mount poudriere zfs filesystem at proper path 2015-12-14 13:23:46 -02:00
Renato Botelho
cd3f4b916c Do not set DISTFILES_CACHE 2015-12-14 12:12:19 -02:00
Renato Botelho
512ef80d74 Change default ZFS tank to zroot 2015-12-14 11:39:14 -02:00
Renato Botelho
01541076a8 Create poudriere filesystem when it's necessary 2015-12-14 11:37:37 -02:00
Phil Davis
97bc6c7868 Random stuff in tools folder tree
White space and text or comment typos only - nothing functional.
2015-12-11 19:17:56 +05:45
Renato Botelho
c2d710cc3f Goodbye apinger 2015-12-10 19:04:35 -02:00
Jared Dillard
dc4c87edb2 move clean script to tools directory 2015-12-02 16:55:07 -06:00
Renato Botelho
a3bb036b90 Rename ports and upgrade script when product is not called pfSense 2015-11-26 17:46:40 -02:00
Renato Botelho
75b167425d No need to remove conf/* for nanobsd 2015-11-26 17:28:18 -02:00
Renato Botelho
f49e0bc904 Add net/dpinger to poudriere_bulk 2015-11-25 16:23:29 -02:00
jim-p
e16c1ecf36 Tweaks to the priv generation script 2015-11-25 12:13:45 -05:00
jim-p
6b07dac929 Update privilege generation script. 2015-11-25 11:12:16 -05:00
Renato Botelho
2251aa188b Remove extra spaces 2015-11-25 13:50:36 -02:00
Renato Botelho
0cc93b7486 Use $* to join all strings 2015-11-25 13:38:33 -02:00
Renato Botelho
bbfc11ae0d Print all parameters 2015-11-25 12:42:49 -02:00
Renato Botelho
a67897608a Silence often message 2015-11-25 12:22:32 -02:00
Renato Botelho
e6e85f8b2c Print all parameters 2015-11-25 12:22:06 -02:00
Renato Botelho
da869279e6 Check often for new ports tree commits 2015-11-25 12:00:28 -02:00
Renato Botelho
1076fc7af0 Check for new commits on ports tree 2015-11-25 12:00:28 -02:00
Renato Botelho
7f330caa65 We don't need author 2015-11-25 12:00:28 -02:00
Renato Botelho
919c84863c Teach build_snapshots to deal with poudriere builds 2015-11-25 09:39:23 -02:00
Renato Botelho
9447077e3f Break long lines 2015-11-25 08:01:32 -02:00
Renato Botelho
38a7543313 Remove hardcoded references to pfSense 2015-11-24 13:12:56 -02:00
Renato Botelho
0a75e428d9 Fix regex to set GIT_REPO_BASE, reported by Bill Meeks 2015-11-23 14:18:27 -02:00
Renato Botelho
8248f5e4dd Do not overwrite /etc/hosts and /etc/syslog.conf during base update. Fixes #5504 2015-11-20 16:20:56 -02:00
Renato Botelho
3eca629044 Add vmm and nmdm modules to amd64 2015-11-20 11:32:12 -02:00
Renato Botelho
e02a5d8c0f Make sure /etc/dh-parameters* are not overwriteen during update, fixes #4816 2015-11-19 12:54:37 -02:00
Renato Botelho
15f0507b7a Do not create directory with the same name of final file 2015-11-18 11:15:21 -02:00
Renato Botelho
9d8dacc238 Create pkg repo directory before copy 2015-11-18 10:52:24 -02:00
Renato Botelho
651f440cee Replace hardcoded paths by PRODUCT_SHARE_DIR 2015-11-18 10:14:16 -02:00
Renato Botelho
1f6845f84f At least /boot/loader.rc has schg, make sure to remove it before upgrade. Ticket #5448 2015-11-18 10:06:08 -02:00
Renato Botelho
147ab4fd2d Remove \ leftover 2015-11-18 09:43:51 -02:00
Renato Botelho
10742be999 Include pkg repo conf samples into base, to help disaster recovery 2015-11-18 09:12:38 -02:00
Renato Botelho
52efc84004 Create pfSense-repo and pfSense-repo-devel package. Ticket #5335 2015-11-17 16:19:15 -02:00
Renato Botelho
0ada33a9cb Break long line 2015-11-17 14:24:47 -02:00
Renato Botelho
0c096dadc7 Break long line 2015-11-17 14:23:04 -02:00
Renato Botelho
7fecc0fb7f Add metadata for pfSense-rc pkg, forgotten in dab31392f9 2015-11-16 17:10:09 -02:00
Renato Botelho
dab31392f9 Create a new core pkg, pfSense-rc, that will install /etc/rc. Add this package to kernel list if dependencies to make sure it's upgraded before reboot. It should fix #5457 2015-11-16 16:49:43 -02:00
Renato Botelho
58e232ce22 No more need to change ETCDIR for strongswan 2015-11-11 10:39:29 -02:00
Renato Botelho
77d69dadc6 Deal with multiple conflicts 2015-11-06 13:17:52 -02:00
Renato Botelho
6c5481deea Disable SMP and enable VICI 2015-10-30 16:41:18 -02:00
Renato Botelho
039607d1ba Use VSTR option on strongswan 2015-10-29 15:48:12 -02:00
Renato Botelho
0a5e896830 Enable VICI option on strongswan build 2015-10-28 11:38:51 -02:00
Renato Botelho
812bbf0dfc Deal with full update file separately, it doesn't end in .gz 2015-10-27 15:36:31 -02:00
Renato Botelho
7d790fc310 Enable CHECK_PORTINUSE option for net/miniupnpd, fixes #4320 2015-10-26 06:49:41 -02:00
Renato Botelho
679c4ac73f Enable IPV6 and UPNP_IGDV2 on net/miniupnpd, fixes #4321 2015-10-26 06:47:46 -02:00
Renato Botelho
65a5bee196 Add kernel as a dependency for kernel-debug to prevent different version being installed, ticket #5330 2015-10-22 13:33:38 -02:00
Renato Botelho
a9ae8dac69 Fix #5330: Create a package with kernel debug symbols 2015-10-22 13:19:44 -02:00
Renato Botelho
232263ecc1 Fix options for git package reducing dependencies 2015-10-20 08:26:42 -02:00
Renato Botelho
a4a336b2f6 Check if image exists 2015-10-14 08:56:17 -03:00
Renato Botelho
ba4527dd19 Stop creaging md5 checksums, sha256 is enough 2015-10-14 08:48:52 -03:00
Renato Botelho
5e4f676856 Use UPDATES_TARBALL_FILENAME to get file name 2015-10-14 08:48:46 -03:00
Renato Botelho
9d811f6306 Use cp -l to create hardlinks instead of duplicating images 2015-10-14 08:42:22 -03:00
Renato Botelho
87925fd15d Simplify logic and check if file exist before try to copy it 2015-10-14 07:34:40 -03:00
Renato Botelho
e28305f48f Create a latest symlink for all images but nanobsd, that already have one 2015-10-14 07:29:37 -03:00
Renato Botelho
fd401f7dd6 Do not depend of php-fpm to be running to process Additional Packages install/deinstall scripts, instead call php cli direct 2015-10-13 14:52:31 -03:00
Renato Botelho
fd22b964b9 Fix usage 2015-10-12 11:47:29 -03:00
Renato Botelho
05fecf61ca Remove PERL_UTILS from ntp and PGM from libzmq4 2015-10-07 16:04:22 -03:00
Renato Botelho
a9ba7be844 Define boot delay for VGA too 2015-10-07 15:51:57 -03:00
Renato Botelho
9dcb68a481 Do not set loader.conf on nanobsd-vga 2015-10-02 16:08:31 -03:00
Renato Botelho
48b79a6008 Make sure pkg db and cache is safe on nanobsd and on pfSense with /var mounted as MFS 2015-09-30 10:45:56 -03:00
Renato Botelho
92135bfda4 Remove cust_fixup_nanobsd(), similar actions are done at specific create image functions, do the same for nanobsd 2015-09-30 10:45:55 -03:00
Renato Botelho
490920ef4e Replace macros by variables after install bsdinstaller 2015-09-29 10:05:02 -03:00
Renato Botelho
39ec113419 Install only bsdinstaller in install_bsdinstaller() 2015-09-29 10:05:02 -03:00
Chris Buechler
be817d98e6 Add dh-parameters files to the nanobsd exclude_files as well. Ticket #4816 2015-09-28 23:00:39 -05:00
Renato Botelho
d2f163a66f Make sure FreeBSD src is available to setup pkg repo 2015-09-28 15:01:29 -03:00
Renato Botelho
04efa936f7 Look for src and ports repo in the same git server 2015-09-28 09:22:36 -03:00
Renato Botelho
0825aaea61 Set FreeBSD src and ports repo to use github or git.pfmechanics.com based on local clone of pfSense repo 2015-09-28 08:56:38 -03:00
Renato Botelho
d4c6029ecd Remove unnecessary :- from variables that are between quotes 2015-09-25 13:33:20 -03:00
Renato Botelho
7d26baf38a Respect .gitignore when call git clean 2015-09-25 07:53:21 -03:00
Renato Botelho
51fe2104bb If an error happened, just abort, there is no reason to ask user to press enter 2015-09-24 13:57:23 -03:00
Renato Botelho
d94da29844 Automatically set meta pkgs version based on timestamp for snapshots 2015-09-24 13:10:52 -03:00
Renato Botelho
e5f88c31fa Fix function name 2015-09-22 10:08:08 -03:00
Renato Botelho
30b861a6c7 Consider NO_UPLOAD when calling build.sh 2015-09-22 10:07:09 -03:00
Renato Botelho
032171ee3f Create snapshot_update_status() 2015-09-22 10:06:46 -03:00
Renato Botelho
b90e12c29a Use getopts to read parameters, implement -r to do not reset local changes and move git operations inside git_last_commit to reduce redundancy 2015-09-22 10:00:02 -03:00
Renato Botelho
670a33c5dc Make sure repo is updated since first run, also, update it when SIGINFO is received 2015-09-22 09:49:30 -03:00
Renato Botelho
8a6723d523 Handle all sleep operations inside snapshots_sleep_between_runs() 2015-09-22 09:39:25 -03:00
Renato Botelho
7bc3be6f26 Do not run sleep in bg, use variables to control when it needs to be restarted 2015-09-22 08:20:02 -03:00
Renato Botelho
3a793f0731 Make sure local changes are reset before git pull, in some cases pull can fail due to conflicts 2015-09-22 07:46:47 -03:00
Renato Botelho
3e05b544c7 Start to build a new round of snapshots when get SIGINFO (ctrl+t) 2015-09-22 07:44:57 -03:00
Renato Botelho
3adf4a15e6 Do not set maxsleepvalue to 0 2015-09-22 07:41:48 -03:00
Renato Botelho
d17f9289fe Fix 7ca93399 where I pushed wrong patch 2015-09-18 14:31:54 -03:00
Renato Botelho
7ca9339938 Mark packages that have <noembedded> tag to conflict with pfSense-base-nanobsd 2015-09-18 14:14:02 -03:00
Renato Botelho
1f5207bcd7 Introduce base-nanobsd package 2015-09-18 14:04:54 -03:00
Renato Botelho
6ee167def4 Install base package on final stage dir, in preparation to base-nanobsd 2015-09-18 13:59:03 -03:00
Renato Botelho
39ef49f648 Add a workaround to make sure images are compressed before rsync, for some reason wait is not working as expected 2015-09-18 13:52:19 -03:00
Chris Buechler
2c8121a0c7 add sudo port to ARM 2015-09-17 13:47:47 -05:00
Renato Botelho
d73aca52c6 Revert "Re-enable ntopng package after port fix"
This reverts commit 8df5376a82.
2015-09-16 14:28:02 -03:00
Renato Botelho
8df5376a82 Re-enable ntopng package after port fix 2015-09-16 09:53:03 -03:00
Chris Buechler
9797964009 fix port path 2015-09-15 13:55:14 -05:00
Chris Buechler
36aa783165 add salt and ser2net to ARM ports 2015-09-15 13:52:33 -05:00
Renato Botelho
ae75ea7c59 Move default PHP to 5.6.x 2015-09-15 10:51:20 -03:00
Renato Botelho
18397e0f83 Fix INSTALL script for base package, it's supposed to run as post-install 2015-09-14 15:38:23 -03:00
Renato Botelho
d137967b79 ADI images are amd64 only 2015-09-14 15:24:19 -03:00
Renato Botelho
3296e3dc20 Process pfSense.obsoletedfiles on base post-install script 2015-09-14 13:48:06 -03:00
Renato Botelho
f3fff72f14 Preserve post_upgrade_command on /tmp on Full Update images, it's going to be used when upgrading from old systems 2015-09-14 13:32:29 -03:00
Renato Botelho
20680ab068 Preserve pre_upgrade_command on /tmp on Full Update images, it's going to be used when upgrading from old systems 2015-09-14 11:09:51 -03:00
Renato Botelho
c77e22260b Move conf backup dir creation to default-config packages scripts 2015-09-10 14:29:31 -03:00
Renato Botelho
542c1f1728 Add missing operator 2015-09-08 14:49:19 -03:00
Renato Botelho
374534f681 Create pkg repo from All's parent directory 2015-09-08 14:42:06 -03:00
Renato Botelho
2957ba349f Fix loop iteration removing quotes 2015-09-08 11:16:16 -03:00
Renato Botelho
6007bbbb18 Do not wait a key to be pressed when build.sh is called by build_snapshots.sh 2015-09-07 17:13:50 -03:00
Renato Botelho
4010811baa Remove quotes from for calls 2015-09-07 11:30:14 -03:00
Renato Botelho
fb1922270b Allow to use -a to select archs on all poudriere commands 2015-09-07 11:28:29 -03:00
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
ce96c1310e Fix snapshots log rotate 2015-09-04 13:09:21 -03:00
Renato Botelho
45b13882fd Fix one more reverse check 2015-09-04 12:59:15 -03:00
Renato Botelho
98ffbd81e2 Remove dead code 2015-09-04 12:59:04 -03:00
Renato Botelho
c47d4d659b Break long line 2015-09-04 12:47:18 -03:00
Renato Botelho
7552abae32 Remove unnecessary chmod calls 2015-09-04 12:46:31 -03:00
Renato Botelho
57217e9752 Use read -r to make sure we print lines as they are 2015-09-04 07:51:02 -03:00
Renato Botelho
98a4b7a039 Fix filename 2015-09-04 07:38:35 -03:00
Renato Botelho
34c3ffa7ed Add initial pre-deinstall and post-install scripts for base pkg 2015-09-04 07:32:57 -03:00
Renato Botelho
cfa4c5224b Fix output capture taking stderr into consideration 2015-09-04 06:56:17 -03:00
Renato Botelho
057109ef4a Fix typo in var name 2015-09-04 06:40:06 -03:00
Renato Botelho
d7972440bf Fix reverse check 2015-09-03 18:21:39 -03:00
Renato Botelho
48396120a0 Send repo containing core packages to remote server 2015-09-03 08:39:52 -03:00
Renato Botelho
184b39e159 Create a new function pkg_repo_rsync, it'll be also used for core pkgs 2015-09-03 08:34:22 -03:00
Renato Botelho
98978a366c Create repository for base components 2015-09-03 08:18:16 -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
82c6f31aa5 Fix log message to match amount of memory tested above 2015-09-02 14:39:03 -03:00
Renato Botelho
0b0ef57e81 Deduplicate git_last_commit() 2015-09-02 11:52:33 -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
7743b4bdde Be more verbose about what is happening 2015-09-01 11:39:13 -03:00
Renato Botelho
cb5bfb6d55 Fix default-config-vmware pkg name 2015-09-01 11:09:47 -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
c4968f42fc Create a specific default-config package for vmware 2015-09-01 10:33:41 -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
75d23e2651 Fix ova fstab 2015-09-01 10:06:56 -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
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