pfSense Forum

Development/Documentation => Development => Topic started by: loonylion on December 02, 2017, 05:29:33 am

Title: Testing packages
Post by: loonylion on December 02, 2017, 05:29:33 am
Any advice on how to test I've packaged something completely if it's not possible to do a local install? I don't particularly want to be uploading packages with untested install procedures.
Title: Re: Testing packages
Post by: jimp on December 06, 2017, 01:19:48 pm
If you have a FreeBSD box where you're developing the pkg portion of things, you can "make package" there and then copy the resulting pkg file to the target firewall, then "pkg add blah-123.txz" and it should work the same as if it was pulled remotely. If that package depends on other packages you'll need to make packages for those and copy them as well. As long as all the txz files end up on the target box it will use them if it needs them.
Title: Re: Testing packages
Post by: loonylion on December 08, 2017, 10:03:05 am
the package seems to install ok but the changes are not made to the UI (i.e the page isn't added) and it seems the defined install routine isn't run. Is this because I haven't coded them right or because the pkg add command doesn't process those instructions?
Title: Re: Testing packages
Post by: jimp on December 08, 2017, 10:03:57 am
When the package is made properly, the pkg add will perform the exact same install procedure as the GUI would.