1 |
Hi, |
2 |
|
3 |
I have an ebuild (see below) for a small keyring daemon. I would like to |
4 |
kill the daemon process, if it is running, whenever it is emerged again |
5 |
to ensure that no running daemon process refers to an old install. |
6 |
|
7 |
Is there a clean and recommended way of doing this in an ebuild or |
8 |
should I just use killall in pkg_postinst()? |
9 |
|
10 |
Or is this ultimately a big no-no?? |
11 |
|
12 |
Thanks, |
13 |
jules |
14 |
|
15 |
|
16 |
|
17 |
# |
18 |
# Ebuild file for the Brutus Keyring. |
19 |
# Copyright (C) 2007 OMC Denmark ApS |
20 |
# |
21 |
# This program is free software; you can redistribute it and/or modify |
22 |
# it under the terms of the GNU General Public License as published by |
23 |
# the Free Software Foundation; either version 2 of the License, or |
24 |
# (at your option) any later version. |
25 |
# |
26 |
# This program is distributed in the hope that it will be useful, |
27 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
28 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
29 |
# GNU General Public License for more details. |
30 |
# |
31 |
# You should have received a copy of the GNU General Public License |
32 |
# along with this program; if not, write to the Free Software |
33 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
34 |
# MA 02111-1307 USA |
35 |
# |
36 |
# Please see http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds |
37 |
# on how to use this ebuild file. |
38 |
# |
39 |
# $Header: $ |
40 |
|
41 |
inherit eutils |
42 |
|
43 |
DESCRIPTION="Brutus Keyring daemon" |
44 |
HOMEPAGE="http://www.omesc.com/" |
45 |
SRC_URI="http://www.omesc.com/sites/default/files/downloads/dist/brutus-keyring/Gentoo/brutus-keyring-0.9.3.tar.gz" |
46 |
|
47 |
LICENSE="GPL-2" |
48 |
SLOT="0" |
49 |
KEYWORDS="~x86 ~amd64" |
50 |
|
51 |
IUSE="debug" |
52 |
RESTRICT="nomirror" |
53 |
|
54 |
DEPEND=">=gnome-base/orbit-2.14.1 |
55 |
>=dev-libs/libIDL-0.8.5 |
56 |
>=dev-util/pkgconfig-0.20 |
57 |
>=dev-libs/libgcrypt-1.2.2 |
58 |
gnome-base/gnome-common" |
59 |
|
60 |
DOCS="COPYING README INSTALL docs/brutus-keyring-guide docs/brutus-keyring-devel-guide" |
61 |
|
62 |
src_compile() { |
63 |
BRUTUS_ECONF="--enable-brutus-dist=yes \ |
64 |
--enable-brutus-devel=yes \ |
65 |
--enable-brutus-target=gentoo \ |
66 |
$(use_enable debug brutus-debug yes)" |
67 |
|
68 |
econf ${BRUTUS_ECONF} || die "econf failed" |
69 |
emake || die "emake failed" |
70 |
} |
71 |
|
72 |
src_install() { |
73 |
emake DESTDIR="${D}" install || die "emake install failed" |
74 |
dodoc ${DOCS} |
75 |
} |
76 |
|
77 |
|
78 |
pkg_postinst() { |
79 |
elog "brutus-keyring has been installed" |
80 |
} |
81 |
|
82 |
-- |
83 |
gentoo-dev@g.o mailing list |