OPNsense Forum

English Forums => Development and Code Review => Topic started by: MasterXBKC on February 09, 2018, 08:11:44 pm

Title: Building a Plugin from source, MAKE PLUGINS
Post by: MasterXBKC on February 09, 2018, 08:11:44 pm
Is it normal for this process to take an exceedingly long time????

I have a quad core opnsense unit with 8GB RAM, and SSD storage, and its been grinding away for about 30 minutes now.  its not hung, and different stages keep cycling by slowly.  Running 18.1.2_2

it is the first time ive ever run the make plugins command if that matters.

I have compiled on linux before and except for large projects, i dont rememeber it normally taking so long is all....
Title: Re: Building a Plugin from source, MAKE PLUGINS
Post by: fabian on February 09, 2018, 09:25:50 pm
you probably want to package a plugin which works with make package in the plugin directory and will be done in seconds. I usually don't use other make targets but yours is probably also building the dependencies.
Title: Re: Building a Plugin from source, MAKE PLUGINS
Post by: MasterXBKC on February 09, 2018, 09:46:36 pm
you probably want to package a plugin which works with make package in the plugin directory and will be done in seconds. I usually don't use other make targets but yours is probably also building the dependencies.

I was following this guide, should i not be?

https://docs.opnsense.org/development/examples/helloworld.html
Title: Re: Building a Plugin from source, MAKE PLUGINS
Post by: MasterXBKC on February 10, 2018, 12:06:25 am
OK so "make package" worked instantly.

I have my package compiled into txz, and even tested it on a seperate unit and its working fine.

Now i just need to figure out how to get it into a repo so it can be updated, and downloaded easily.
Title: Re: Building a Plugin from source, MAKE PLUGINS
Post by: MasterXBKC on February 10, 2018, 08:58:11 am
i submitted an NMAP plugin tonight, its very basic, but it works!
Title: Re: Building a Plugin from source, MAKE PLUGINS
Post by: fabian on February 10, 2018, 09:27:12 am
i submitted an NMAP plugin tonight, its very basic, but it works!
Where? Cannot find it in GitHub.
Title: Re: Building a Plugin from source, MAKE PLUGINS
Post by: MasterXBKC on February 10, 2018, 09:16:59 pm
I did a pull request to Franco's plugins branch, I'm not an expert in GitHub operation but I think he needs to pull it or something.