The pfSense Store

Author Topic: Testing packages  (Read 152 times)

0 Members and 1 Guest are viewing this topic.

Offline loonylion

  • Jr. Member
  • **
  • Posts: 32
  • Karma: +3/-0
    • View Profile
Testing packages
« 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.

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21388
  • Karma: +1432/-26
    • View Profile
Re: Testing packages
« Reply #1 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.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline loonylion

  • Jr. Member
  • **
  • Posts: 32
  • Karma: +3/-0
    • View Profile
Re: Testing packages
« Reply #2 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?

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21388
  • Karma: +1432/-26
    • View Profile
Re: Testing packages
« Reply #3 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.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!