Netgate SG-1000 microFirewall

Author Topic: Deploy self-written package  (Read 111 times)

0 Members and 1 Guest are viewing this topic.

Offline barakg

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Deploy self-written package
« on: January 23, 2018, 02:38:03 pm »
I created a pfSense package by changing an "official" one. But while intalling the official package from the webGUI makes all the background job, i managed to install my package only manually by copy the files to the pfSense server according the official package's structure on GitHub, and by edit manually the config file. I tried to reverse to process as much as i could, i saw a funcion calls "install" that runs while intalling package from the pfSense repository with webGUI, but couldn't understand how it works. i want to find a way to create a file that with one command using the shell i can copy all the files and edit the config with the native functions of pfSense. I believe i need to write this file as well, but how should i do this?
What type of file the package file should be? (txz file?)
For the copy of the files, should i use freeBSD commands?
How i add the package information into the config file with native pfSense commands?
How i make the webGUI update so i can see the new package on the menu without rebooting (this the only way i could make it work)?
How i make the package be listed on the "installed packages" list?

Thanks,

Barak.

Offline heper

  • Hero Member
  • *****
  • Posts: 2708
  • Karma: +257/-11
    • View Profile
Re: Deploy self-written package
« Reply #1 on: January 25, 2018, 01:32:52 am »
incomplete info can be found here:
https://doc.pfsense.org/index.php/Developing_Packages

=)