This is a collection of build scripts for DynFi Firewall.
The script is responsible for building FreeBSD kernel and world. There are three supported options:
-cfor building everything from scratch-rbootstrap a release (does make packages instead of update-packages)-ballows to change a FreeBSD branch (default: dynfi-13-stable)
Useful variables in common.subr:
FBSD_TREE- the FreeBSD repoFBSD_BRANCH- the default branchMAKEOBJDIRPREFIX- where to store obj file
Script responsible for building packages. Supported options:
-bGit branch for the jail (default: dynfi-13-stable)-oPorts tree to use for the overlays (default: dynfi-overlay)-pGit branch for the portstree (default: default)-cRecreate the jail
Useful variables in common.subr:
PORT_BRANCH- the default port branch
Script building the installer.
Useful variables in common.subr:
IMAGE\_DIR- where to store build images
The alias for poudriere, including the common.subr, work on a local instance of poudriere.
Script for syncing the ports packages to a remote server.
- First, you have to pull all required repos: - The FreeBSD repo used by Dyn - Dyn ports overlay
- Change configuration if you fetched the repos to a different place.
The file you have to modify is common.subr, and interesting values are:
-
OVERLAY_PORTS- is a directory where the dynfi-overlay repo is -FBSD_TREE- is a directory where is FreeBSD dir - Next, you can use a
build_base.shscript to build FreeBSD kernel and world - Next step is to build packages. The
build_packages.shscript is responsible for that - When you have a package, kernel and world, you can build install with
build_installer.sh - Finally, you can push the required repo to a remote server with the
build_sync.shscript
Contribution are more then welcome. We always looking for additional tests, bug request or pull requests via GitHub.
This project itself is licensed according to the two-clause BSD license.