nyxnor/onionjuggler

[FEATURE REQUEST] change `setup.sh` to `configure`

nyxnor opened this issue · 5 comments

Is your feature request related to a problem? Please describe.

Looking at nasez and many other projects written in C, there is a configure shell script file (standard). It can decide where the manual goes, where the binary (in our case, shell script, no bin) goes, where the docs goes.

Describe the solution you'd like

I want option parser to be more elaborate on this configure script, so user can decide where the manual goes (if it goes to /usr/local/man/man1 or any other location), and if script goes to /usr/local/bin by default or any other location.

This helps a lot because instead of just making the tor paths custom, I can make the project onionjuggler path custom.

./configure --help
image

little bit started here cc173cf

What is missing it setting configuration dir permanently to be searched, but then this would involve chaning the scripts onionjuggler-{cli,tui} so they can search for an alternative path for the configuration dir, which I don't like to modify the scripts just for that and /etc is the standard but /usr/local/etc makes sense on some systems. Unfortunately OpenBSD does not have it and put everything on /etc, so there is not reason to create the dir /usr/local/etc just for this project.

What would be easier is a cli option to specify alternative configuration file, tui will have only this one option also as it is supposed to be tui, not cli.