maj
Some time ago, I wrote a simple shell script to update OpenBSD machines from sources. It has been greatly improved over time and has now some cool features. maj is useful whereas you run -stable or -current. It can perform:
- Get and update cvs source trees,
- Compile and install kernel, userland and xenocara with useful autodetection,
- Make a release.
For detailed information, read the man page
OpenBSD port
Download OpenBSD maj port (latest release)
$ cd /usr/ports/sysutils
$ tar xvfz some_path/maj.tar.gz
$ cd maj
$ sudo make install
Releases
Current and past releases
maj-0.8
Changelog:
- Man handling corrections for 5.7.
Download maj-0.8 sources | maj-0.8 package
maj-0.7
Changelog:
- Disable parallel building for -r,
- Fix sudo use.
Download maj-0.7 sources | maj-0.7 package
maj-0.6
Changelog:
- Rewrite of the release mode to actually make it work,
- Man page corrections.
Download maj-0.6 sources
maj-0.5
Changelog:
- Do not run make depend for building kernel (requires OpenBSD > 4.9),
- Better way of computing BRANCH.
Download maj-0.5 sources
maj-0.4
Changelog:
- Do not clean kernel objects at every build,
- Better sudo handling to build as a user,
- New -p flag to automatically change permissions on cvs trees to build as a user.
Download maj-0.4 sources
maj 0.3
Changelog:
- Automatic parallel builgind by default,
- Catch and stop on errors,
- Big cleanup.
Download maj-0.3 sources
maj 0.2
Changelog:
- New -j flag for parallel building,
- New -X flag to force xenocara presence,
- New automatic update mode.
Download maj-0.2 sources
maj 0.1
Initial maj release.
Download maj-0.1 sources