Created attachment 200853 [details]
Diff taken from /usr/ports using 'svn diff'
Packmule packs a FreeBSD installation image with custom content, making it useful for generating images which install your commonly used files/ports (.shrc, emacs, .emacs.d, etc) along with the regular contents of FreeBSD. It's other main use involves adding an 'installerconfig' script to an existing iso image to allow for unattended installations. Users create a YAML packing list to identify which ports and individual files they would like to add instead of rebuilding from source.
sysutils/packmule: Add QA
portlint: OK (looks fine.)
poudriere: OK (amd64 & i386 tested on 12.0/11.2)
This project does not have any unit tests at the moment. Testing involves running sysutils/packmule with one of the example configurations on an image. While running this is trivial, verifying that it worked is not easy to script (it would also involve downloading a full .iso image and running VM's). The functionality was tested manually on multiple machines. This is less than ideal and future work will be spent on adding tests for this port.
(In reply to Austin Shafer from comment #1)
Thanks Austin. Some additional review items:
- Use DISTVERSIONPREFIX=v for ports that use USE_GITHUB and tags are prefixed
- Use NO_BUILD rather than an empty do-build target
- Group USES/USE together, in that order
- USES_PERL should be USE_PERL
- Add LICENCE_FILE if one is provided in the distribution file
- If port only supports particular ARCHS (do-install only installs mkiso dirs
for 4), set ONLY_FOR_ARCHS
- do-deinstall should not be necessary, pkg handles this based on pkg-plist
Created attachment 200935 [details]
sysutils/packmule Revised patch after feedback
sysutils/packmule: Respond to feedback
Verified portlint and poudriere are happy with these changes and do not give errors.
Created attachment 200936 [details]
sysutils/packmule Second Revision of feedback
Is this still relevant?
(In reply to Tobias C. Berner from comment #5)
At the time I think it was just waiting to be committed. I had submitted this to see if anyone else found it useful, but since it has been a year I'm guessing that is not the case.
If there is interest and it is wanted in the ports tree I'm happy to bump the version so it is up to date.
(In reply to Austin Shafer from comment #6)
Please do so :)
Created attachment 212268 [details]
sysutils/packmule: Third Revision
Bumped to release 1.1, everything should be up to date now.
Also retested with portlint and poudriere. Please let me know if there are any issues!
A commit references this bug:
Date: Sun Mar 15 07:45:42 UTC 2020
New revision: 528474
New port: sysutils/packmule: Creates and packs custom FreeBSD installation images
Packmule automates the process of loading custom software into a
FreeBSD installation image. The user creates a "packing" list
which is either installed alongside the base system, or added to
the live CD.
Submitted by: Austin Shafer <email@example.com>
Committed. Thank you :)