From: | Donnie Berkholz <dberkholz@g.o> |
---|---|
To: | gentoo-dev@l.g.o, wltjr@g.o |
Subject: | [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-db/firebird: ChangeLog firebird-2.0.3.12981.0-r2.ebuild |
Date: | Mon, 01 Oct 2007 05:55:20 |
Message-Id: | 20071001054340.GS28813@supernova |
1 | On 05:39 Mon 01 Oct , William Thomson (wltjr) wrote: |
2 | > 1.1 dev-db/firebird/firebird-2.0.3.12981.0-r2.ebuild |
3 | > |
4 | > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0-r2.ebuild?rev=1.1&view=markup |
5 | > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/firebird/firebird-2.0.3.12981.0-r2.ebuild?rev=1.1&content-type=text/plain |
6 | |
7 | > pkg_postinst() { |
8 | > # Hack to fix ownership/perms |
9 | > chown -fR firebird:firebird ${ROOT}/etc/firebird ${ROOT}/usr/share/firebird |
10 | > chmod 750 ${ROOT}/etc/firebird |
11 | |
12 | ROOT needs quotes.. |
13 | |
14 | > pkg_config() { |
15 | > # if found /etc/security.gdb from previous install, backup, and restore as |
16 | > # /etc/security2.fdb |
17 | > if [ -f /etc/firebird/security.gdb ] |
18 | > then |
19 | > # if we have scurity2.fdb already, back it 1st |
20 | > if [ -f /etc/firebird/security2.fdb ] ; then |
21 | > cp /etc/firebird/security2.fdb /etc/firebird/security2.fdb.old |
22 | > fi |
23 | > gbak -B /etc/firebird/security.gdb /etc/firebird/security.gbk |
24 | > gbak -R /etc/firebird/security.gbk /etc/firebird/security2.fdb |
25 | > mv /etc/firebird/security.gdb /etc/firebird/security.gdb.old |
26 | > rm /etc/firebird/security.gbk |
27 | |
28 | Shouldn't this whole function also be ROOT-safe? |
29 | |
30 | Thanks, |
31 | Donnie |
32 | -- |
33 | gentoo-dev@g.o mailing list |