New package: Session Border Controller
-
Hi!
I'd like to support a session border controller like application (based on Asterisk) for pfSense. Currently I can successfully build my customized packages from the ports dir on a native FreeBSD system and now it is time to start moving this to pfSense. Given all the necessary testing, I figured that offering this with vs. 2.3 might be a good idea.
Is there somewhere a document that describes the changes as far as package development is concerned? I haven't found anything yet, except some small posts.
So far my basic understanding is that I install a development version of vs. 2.3 and somehow add the ports tree, from which I can generate the binaries for package. Additionally, there will be the xml install script and whatever is necessary for the new gui. Am I missing something here?
It may be a bit early, but I do want to go away from modifying .conf files directly, but offer a gui for setting up SIP and IAX trunks. For home servers it could make sense to allow endpoints like phones, but I do not want to make things so general that it will be a fully blown pbx. Comments are welcome.
-
We don't have any formal docs yet. You wouldn't put the ports tree onto pfSense, you'd put that onto a FreeBSD box where it would be compiled, etc.
Basically, On the FreeBSD box, check out the pfSense copy of FreeBSD-ports from github. Look and other pfSense-pkg* ports and see how they are laid out. All of the package files (xml, php, etc) are in the port directory in a specific structure. Copy a similar one that already exists and adjust as needed. Some basic skill with maintaining FreeBSD ports is needed but not much (mostly making sure the plist is correct and such), the FreeBSD docs for that are out there and are not specific to pfSense.
Once the package is built, move the package archive file(s) to pfSense and install them with the pkg command.
-
check out the pfSense copy of FreeBSD-ports from github
Done.
Ok, so pkg will install the binaries as well as the GUI and additional files? For the time being I could install with pkg install , but the pfSense GUI would do pretty much the same.
At the weekend, I'll have a look at the current alpha snapshot and study some small packages.
-
Ok, so pkg will install the binaries as well as the GUI and additional files? For the time being I could install with pkg install , but the pfSense GUI would do pretty much the same.
At the weekend, I'll have a look at the current alpha snapshot and study some small packages.
On 2.3 pkg install handles everything, binaries and GUI components. It works identically to installing the package via the GUI now, which makes development that much easier.