Packagemaker for MacOS X creates packages graphically and via the command line. I have a chain of automation tools, so I can't use the graphical version nor switch to another packager product.
There's more than enough documentation explaining how to abort your installation program with an error if "Megabytes Available on Target" < 200, for example. How does one use the command line to do that same thing?