On Fri, 08 Sep 2006 02:38:51 +0200, Fábio Mierlo <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'm trying to make a recipe for the Firebird database, it really sucks.
>
> There's 22K of patch until now, most of then is due hardcode "root"
> strings.

Can't you just do "find -type f | xargs -i sed -i s/root/0/ {}" in  
pre_patch()/pre_build()?

>
> The "make install" is the worst thing, it is interactive and change
> a lot of files in /System/Settings.
>
> I don't look at recipes for others "server" applications, but what's
> the rules for run daemon as non root?
>
> And how to allow some installers add users, groups and change
> some files in /System/Settings?
>
For adding users and groups I usually use this in pre_build():

if ! grep -q foo $goboSettings/group
then
    Log_Normal "Adding group foo"
    groupadd foo
fi

if ! grep -q "foo:x:" $goboSettings/passwd
then
    Log_Normal "Adding user foo"
    useradd foo -g foo -c 'added by Compile for Foo' -d $goboVariable/empty  
-s $goboExecutables/false
fi

I'm still looking for a solution for apps that want to change things in  
current files in /System/Settings. If anyone have an idea, please shout.

-- 
/Jonas

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to