Docs: Developing Packages
This commit is contained in:
parent
c9c389be8f
commit
7c11e022c1
@ -65,6 +65,35 @@ apply:
|
|||||||
- use tabs instead of spaces (set your editor to show tabs as two spaces)
|
- use tabs instead of spaces (set your editor to show tabs as two spaces)
|
||||||
- trailing whitespaces must be eliminated
|
- trailing whitespaces must be eliminated
|
||||||
|
|
||||||
|
Developing Packages
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
If you want to develop your own external Gluon package, the best way would be
|
||||||
|
to start with an existing package from the gluon repository and adapt it, for
|
||||||
|
example use the package ``gluon-web-mesh-vpn-fastd`` as a base
|
||||||
|
|
||||||
|
- rename all occurrences of your example package
|
||||||
|
- adapt the upgrade script to your needs
|
||||||
|
- to create new config values that may be editable with ``uci`` create a file
|
||||||
|
in ``/ect/config/your_new_config`` with just one section
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
config main 'settings'
|
||||||
|
|
||||||
|
|
||||||
|
- to fill this section with values from the ``site.conf`` edit the upgrade
|
||||||
|
script for your package and add the same section as the filename of the config
|
||||||
|
file in your ``site.conf``:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
your_new_config {
|
||||||
|
new_value = 'example'
|
||||||
|
}
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
Upgrading Packages from 2016.2.x
|
Upgrading Packages from 2016.2.x
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user