To track stable, you don’t necessarily need to work with cvs snapshots. Ideally, you’d fetch all relevant patches for your architecture and OpenBSD version from here and cobble together those patches with binpatch
This also requires that you fetch architecture-independant src.tar.gz
and sys.tar.gz
from here, and all installation-set tarballs from here.
From the project description file, the tree structure is then:
binpatch-1.1.0/
Makefile
bsd.binpatch.mk
distfiles/
- i386/
- src.tar.gz
- sys.tar.gz
packages/
patches/
- common/
- i386/
pkg/
- (e.g. PLIST-i386-001)
work-binpatch-4.6/
- fake/
- obj/
- src/
The following changes to Makefile
were made to suit patches for OpenBSD 4.6:
1 |
|
You’ll need to modify the above to include more recent patches i.e. patches dated later than June 3rd 2010.
To patch the relevant files on your OpenBSD install, and to prepare packages (in packages/
) for installation, as root:
# make PATCH="001" build
# make PATCH="001" plist
# make PATCH="001" package
To install the packages, do:
# make PATCH="001" install
I prefer to use the following script (documented here) to install packages:
1 |
|
.. or to query previously installed packages:
# ls /var/db/patches/