Normally, dbhub has no baselayot scripts, futhermore - this is very hard to make them, as dbhub always trying to access "<workdir>/.dbhub/". Only way to override - patching sources, to switch meaning of "workdir" argument - now this is config dir, and it's default value (if none given) set as "$HOME/.dbhub". So normal user will notice nothing. Futhermore - patching and all baselayout support was restricted by use 'baselayout', and big warning about changes prints. Also this ebuild provide pkg_config() to easily configure new installation and init.d/conf.d scripts. Also incompartibily with grsec's (hardened) "CONFIG_GRKERNSEC_SHM (Destory unused shared memory)" noticed during compile on hardened kernels. Also "switch_user" (or 'suid') was renamed to normal for this option name 'caps' and libcap dependence added (dbhub, as seen in "main.c" uses libcap). Also four official languages added. Only problem with Greek language, called 'gr' in package, but by ISO: 'el'. In ebuild it called 'el'. No charset convertion maded, but notice about source charsets printed (Romanian charset is unknown for me. enca don't known it). Even if compiled with baselayout support it still can be used as normal. Ebuild adds new user 'dbhub', and pkg_config creates /etc/dbhub/ dir owned by this user. Reproducible: Always Steps to Reproduce:
Created attachment 145154 [details] Ebuild
Created attachment 145155 [details, diff] Configure patch Removes on_compile config dir creation
Created attachment 145156 [details, diff] Patch for fileio.c Switches meaning of workdir argument
Created attachment 145158 [details] conf.d configuration
Created attachment 145160 [details] Init.d startup script
There is one problem - pkg_config creates configs by running dbhub echoing in it's input info, than killing it. After all it adjust permissions on files, but sometimes dbhub process dies after permission adjusting, so some files (like 'config') becames unreadable for 'dbhub' user. So pkg_config must wait while dbhub will exit, but for this we need dbhub pid, while dbhub clones itself minimum twicely...
Created attachment 146130 [details] Ebuild. Fixed LINGUAS bug
Description error
How come buffer overflow on startup? http://pastebin.com/G10jx327 What information about my system configuration is useful to provide?
are this init scripts still running with current openrc?