I made an ebuild for envbot (an IRC bot coded in bash that I'm a developer of). Ebuild attached below. Reproducible: Always
Created attachment 136023 [details] envbot-0.0.1.ebuild
It requires some patching, /usr/share isn't best place to log in: mkdir: cannot create directory `/usr/share/envbot/logs/1198486531': Permission denied Error: couldn't create log dir
Well the log directory is set in the config file, as you would need to set it something to match the user you run it as I can't see how the ebuild can be aware of that? If you would use system wide logging instead (create a special account? I got no idea how to do that in ebuilds) then I'd suggest /var/log/envbot.
That's not really possible now. The problem is you can't run envbot as a root, but while running it as a regular user you have access problems. mkdir: cannot create directory `/var/log/envbot': Permission denied Error: couldn't create log dir Setting anything that touch $USER directory in globally in /etc is just silly. IMO it should create ~/.envbot, then copy bot_settings.sh.example into it. The patch should be also applied: diff -Naur envbot-0.0.1.old/lib/log.sh envbot-0.0.1/lib/log.sh --- envbot-0.0.1.old/lib/log.sh 2007-12-24 10:22:10.000000000 +0000 +++ envbot-0.0.1/lib/log.sh 2007-12-24 10:26:11.000000000 +0000 @@ -170,7 +170,7 @@ # This creates log dir for this run: log_dir="${config_log_dir}/$(date -u +%s)" # Security, the log may contain passwords. - mkdir -m 700 "$log_dir" + mkdir -m 700 -p "$log_dir" if [[ $? -ne 0 ]]; then echo "Error: couldn't create log dir" envbot_quit 1
Hi Arvid, how it's going with your project? Have you fixed Makefile and other stuff we were talking about last time? Please reopen if this bug can be moved on. ;)