Hi llev,
What "pre-install failed" mean? That tazpkg calls the function pre_install(), and then the exit code of that function isn't zero. Let's look deeper...
pre_install()
{
# Cleanup old files
rm -f "$1/usr/libexec/mysql"*
# Mv config
[ -f "$1/etc/my.cnf" ] && mv -f "$1/etc/my.cnf" "$1/etc/mysql/my.cnf"
}
Oh... The last line. It's the short form of the if-then-else conditional operator.
If the condition is true (the file "/etc/my.cnf" exists), then command "mv" executed.
If the condition is false, then nothing happens.
But this conditional operator is the last command in the function, and its exit code is transferred as exit code of the whole function.
So, to summarize this all. If file "/etc/my.cnf" absent, it will show that "pre-install failed".
Sorry, I don't know what this file is for...