./configure && make && make installurl2pkg http://master.site/pathpkgvi, mkpatches, make mps, make install, make print-PLIST, etc.PKG_OPTIONS: 12 (as of this writing)./service.getpwnam().make && make setup check. At least something’s simple!From DJB’s Information for distributors:
You are permitted to distribute a precompiled var-qmail package if (1) installing the package produces exactly the same /var/qmail hierarchy as a user would obtain by downloading, compiling, and installing qmail-1.03.tar.gz, fastforward-0.51.tar.gz, and dot-forward-0.71.tar.gz; (2) the package behaves correctly, i.e., the same way as normal qmail+fastforward+dot-forward installations on all other systems; and (3) the package’s creator warrants that he has made a good-faith attempt to ensure that the package behaves correctly.
/var/qmail/{alias,bin,boot,control,doc,man,queue,users}${PREFIX}. Still wouldn’t follow hier(7).INSTALL script, pre-create those paths as symlinks pointing to the proper locations. Default qmail paths still work, yet files go where pkgtools (and pkgsrc users) expect.PKG_USERS and PKG_GROUPS run too late.qmail-users package, then depend on it.idedit tool. Of course, this renders package checksums invalid. This is the only reason we don’t have a fully functional qmail binary package.bsd.options.mk. qmail has a carefully chosen subset of common patches as PKG_OPTIONS.PKGSRC_PATCH_FAIL).qmail-run package that depends on qmail.qmail-run creates them if needed.qmail and qmail-run from pkgsrc is easy and (mostly) matches the expectations of a pkgsrc user. Install, set a couple variables in rc.conf, edit mailer.conf, et voila.