| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
do not pass $@ twice when ROVERLAY_TAGET_TYPE == foreign
|
|
|
|
| |
Runs roverlay with ROVERLAY_TARGET_TYPE=foreign
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ROVERLAY_TARGET_TYPE controls which files get installed:
when gentoo:
=> config/R-overlay.conf.install
=> no licenses file
when others:
=> config/R-overlay.conf.install.others
=> install files/licenses to $DATADIR/licenses
Also added a "generate-licenses" target for creating files/licenses.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Helper for scripting:
>>> #!/bin/sh
>>> eval $( roverlay-query-config DISTDIR=mirror OVERLAY_DIR=overlay CACHEDIR )
>>>
>>> cd $overlay && do_sth >> ${CACHEDIR}/script.log
>>> cd $mirror && do_sth >> ${CACHEDIR}/script.log
Also capable of editing template files.
|
|
|
|
| |
Don't execute scripts directly if $PYTHON is set.
|
|
|
|
|
| |
Recursively converts template files from <src tree> to real files in <dest tree>
(using "query-config --from-file ... --outfile ...").
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
./bin/py/query_config (currently accessible via ./bin/query_config in the
git repo, and not available if roverlay is installed) is a script for
(a) accessing roverlay's config in shell-usable format:
eval $(query_config OVERLAY_DIR OVERLAY_NAME)
(b) replacing variables in file templates (@@VARNAME@@):
query_config --config-file ~user/roverlay/R-overlay.conf \
--from-file <template file> -O <outfile>
This can be used to create config file templates without having to worry
about the actual file paths / server address / etc., for example (nginx,
server{} block):
server {
listen @@NGINX_SERVER_ADDR@@;
server_name @@NGINX_SERVER_NAME@@;
...
# package mirror dir
root @@OVERLAY_DISTDIR_ROOT@;
...
}
(NGINX_SERVER_ADDR and NGINX_SERVER_NAME would have to be given with
the -v/--variable switch when calling query_config).
The exit code indicates whether all variables could be replaced or not.
TODO:
* make config option aliases available for (b) (e.g. DISTDIR)
* doc
* script name
* config templates
|
|
|
|
| |
This commit restores the ebuild's pkg_config() functionality.
|
| |
|
| |
|
|
|
|
| |
This is useful when creating config files for not-installed roverlay.
|
|
|
|
| |
replacements for the "eggsecutables"
|
| |
|
| |
|
|
The scripts in roverlay's repo (debug-scripts,scripts,"eggsecutables") are going
to be merged in bin/.
Additionally, this allows to call not-installed roverlay from roverlay, because
roverlay.py->bin/roverlay is now a wrapper script.
|