Hi EGI,
There is a specific way to add pkgsrc packages to a minix ISO. Please note that normally I build minix using the "
x86_cdimage.sh" in the "releasetools" subfolder. I'm going to assume that you follow similar steps:
- In this example, let's assume that you checked out minix and pkgsrc to the "/usr/build/" folder (your actual folder will be different)
- You would then have two subfolders: "minix" and "packages"
- cd into the minix folder. Your current path should be "/usr/build/minix"
- You can then run the following command (in this case I'm bundling openssh):
-
PACKAGE_DIR=../packages BUNDLE_PACKAGES='pkgin- openssl- pkg_install- libarchive- ' ./releasetools/x86_cdimage.sh
- I'm not sure why the example above has "openssl" instead of "openssh" since it's been years since I've done this. You'll have to play around with things.
- If you want multi-process support you can prepend your command with
"JOBS=8" for example. This spawns 8 processes during build. Note that this only works when cross-compiling since Minix does not yet have SMP support.
- Notice that libacrchive is a dependency of openssh, so you may have to add all package dependencies to your command line.
- According to my notes you still have to install openssh via "pkgin install openssh", but at least the package is built and doesn't have to be downloaded from the internet and compiled. Trying to add "openssh" to the command line above might work (iirc openSSL is another dependency of openSSH, but I could be wrong)
- Finally, please keep in mind that all packages in minix are old. The packages have not been updated since 2016 and still contain any vulnerabilities discovered since.
Hope this helps and please let us know how it goes or if you have other questions.
-stux