First of all, thanks for creating this plugin - a life saver for OPNsense users !
Need some assistance in creating a repo from a plugin package.
I have created a OPNsense plugin for BlockyDNS. I have it working fully within OPNsense and all works as expected.
I created this .pkg file by running make package within the plugin folder of my FreeBSD development machine.
Essentially created the src folder, Makefile, pkg-descr in /usr/plugins/devel/blocky folder. Then I run make package from the blocky folder... and after successful execution, it creates work/pkg subfolder with the newly created os-xxxx.pkg file.
I can copy the os-xxxx.pkg file into OPNsense, execute pkg add os-xxxx.pkg and I can get BlockyDNS working as expected. in OPNsense, GUI and all, etc...
However, I would like to convert this os-xxxx.pkg file to a repo that I can host online - how do I go about creating a repo from an existing .pkg file?
Essentially make this work similar to your os-caddy... by fetching a conf file, running pkg update and then being able to install it from Plugins GUI within OPNsense.
I saw that you posted in the OPNsense Forum and I answered there a while ago. Lets continue this in the forum since this issue looks unrelated to this plugin.
Hi @Monviech,
First of all, thanks for creating this plugin - a life saver for OPNsense users !
Need some assistance in creating a repo from a plugin package.
I have created a OPNsense plugin for BlockyDNS. I have it working fully within OPNsense and all works as expected.
I created this .pkg file by running
make package
within the plugin folder of my FreeBSD development machine. Essentially created thesrc folder, Makefile, pkg-descr
in/usr/plugins/devel/blocky
folder. Then I runmake package
from the blocky folder... and after successful execution, it creates work/pkg subfolder with the newly createdos-xxxx.pkg
file.I can copy the os-xxxx.pkg file into OPNsense, execute
pkg add os-xxxx.pkg
and I can get BlockyDNS working as expected. in OPNsense, GUI and all, etc...However, I would like to
convert this os-xxxx.pkg file to a repo
that I can host online - how do I go about creating a repo from an existing .pkg file?Essentially make this work similar to your os-caddy... by fetching a conf file, running pkg update and then being able to install it from Plugins GUI within OPNsense.
Can you provide some help/ layman style instructions as to how to build this ? Many thanks...