OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Building a Plugin from source, MAKE PLUGINS
« previous next »
  • Print
Pages: [1]

Author Topic: Building a Plugin from source, MAKE PLUGINS  (Read 6136 times)

MasterXBKC

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 6
  • Infragard Member
    • View Profile
    • PFMonitor Central Firewall Management
Building a Plugin from source, MAKE PLUGINS
« 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....
« Last Edit: February 09, 2018, 08:13:57 pm by MasterXBKC »
Logged
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

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Building a Plugin from source, MAKE PLUGINS
« Reply #1 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.
Logged

MasterXBKC

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 6
  • Infragard Member
    • View Profile
    • PFMonitor Central Firewall Management
Re: Building a Plugin from source, MAKE PLUGINS
« Reply #2 on: February 09, 2018, 09:46:36 pm »
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
Logged
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

MasterXBKC

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 6
  • Infragard Member
    • View Profile
    • PFMonitor Central Firewall Management
Re: Building a Plugin from source, MAKE PLUGINS
« Reply #3 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.
Logged
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

MasterXBKC

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 6
  • Infragard Member
    • View Profile
    • PFMonitor Central Firewall Management
Re: Building a Plugin from source, MAKE PLUGINS
« Reply #4 on: February 10, 2018, 08:58:11 am »
i submitted an NMAP plugin tonight, its very basic, but it works!
Logged
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

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Building a Plugin from source, MAKE PLUGINS
« Reply #5 on: February 10, 2018, 09:27:12 am »
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.
Logged

MasterXBKC

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 6
  • Infragard Member
    • View Profile
    • PFMonitor Central Firewall Management
Re: Building a Plugin from source, MAKE PLUGINS
« Reply #6 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.
Logged
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

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Building a Plugin from source, MAKE PLUGINS
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2