Building a Plugin from source, MAKE PLUGINS

Started by MasterXBKC, February 09, 2018, 08:11:44 PM

Previous topic - Next topic
February 09, 2018, 08:11:44 PM Last Edit: February 09, 2018, 08:13:57 PM by MasterXBKC
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....
Member of FBIs Infragard Program
Certified Information Systems Security Officer
Certified Vulnerability Assessor
PFMonitor Remote Management, Backup, & Live Monitoring for PFSense and OPNSense
OPNSense Units: R720XD XL, R720XD XL, R720XD, R720XD, R710, DL360G7, QNAP

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.

Quote from: 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.

I was following this guide, should i not be?

https://docs.opnsense.org/development/examples/helloworld.html
Member of FBIs Infragard Program
Certified Information Systems Security Officer
Certified Vulnerability Assessor
PFMonitor Remote Management, Backup, & Live Monitoring for PFSense and OPNSense
OPNSense Units: R720XD XL, R720XD XL, R720XD, R720XD, R710, DL360G7, QNAP

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.
Member of FBIs Infragard Program
Certified Information Systems Security Officer
Certified Vulnerability Assessor
PFMonitor Remote Management, Backup, & Live Monitoring for PFSense and OPNSense
OPNSense Units: R720XD XL, R720XD XL, R720XD, R720XD, R710, DL360G7, QNAP

i submitted an NMAP plugin tonight, its very basic, but it works!
Member of FBIs Infragard Program
Certified Information Systems Security Officer
Certified Vulnerability Assessor
PFMonitor Remote Management, Backup, & Live Monitoring for PFSense and OPNSense
OPNSense Units: R720XD XL, R720XD XL, R720XD, R720XD, R710, DL360G7, QNAP

Quote from: MasterXBKC on February 10, 2018, 08:58:11 AM
i submitted an NMAP plugin tonight, its very basic, but it works!
Where? Cannot find it in GitHub.

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.
Member of FBIs Infragard Program
Certified Information Systems Security Officer
Certified Vulnerability Assessor
PFMonitor Remote Management, Backup, & Live Monitoring for PFSense and OPNSense
OPNSense Units: R720XD XL, R720XD XL, R720XD, R720XD, R710, DL360G7, QNAP