RFC: Creating New python3-onionbalance Package

All:

I'd like to create a new OpenWRT package, but am wondering the level-of-difficulty involved; especially, one that makes use of a python script to install?

Proposed Package: python-onionbalance

There are RPM packages available for it, so I know that some level of packaging is possible. I'm just not sure where to begin with OpenWRT.

SRPM Spec File: python-onionbalance.spec

I assume I should try to modify one of the existing python3 package's Makefile and go from there.

Python3-bottle Makefile: python3-bottle

BTW... I have successfully built OpenWRT packages available in the feeds, so I have that basic level of knowledge.

Your guidance is greatly appreciated.

Respectfully,

Gary

All:

I have a custom python3-onionbalance package compiling successfully from the modified python3-bottle Makefile.

Now, I'd like to include the directory /etc/onionbalance in the package, but can't seem to figure out how it is done.

Your guidance in this regard is greatly appreciated.

Respectfully,

Gary

@frollic

Are the custom files suppose to go under:

~/openwrt/files/etc/onionbalance

I can't seem to get it to work for just a directory.

Respectfully,

Gary

@frollic

I am still unable to figure out how to add a custom directory to my new package.

Per the Creating packages documentation, I should be able to place it in the {packageroot}.

{packageroot} = ~/openwrt/feeds/packages/lang/python3-onionbalance

{packageroot}/files/etc/onionbalance

However, new packages that I build don't include the custom directory.

Is the custom files directory only for files and not directories?

Your assistance is greatly appreciated.

Respectfully,

Gary