/[gentoo-x86]/sys-cluster/rgmanager-agents/rgmanager-agents-3.9.2.ebuild
Gentoo

Contents of /sys-cluster/rgmanager-agents/rgmanager-agents-3.9.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Sep 14 10:51:29 2011 UTC (2 years, 11 months ago) by ultrabug
Branch: MAIN
CVS Tags: HEAD
Initial import

(Portage version: 2.1.10.14/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6
7 inherit multilib versionator
8
9 CLUSTER_RELEASE="3.1.5"
10 MY_PN="resource-agents"
11 MY_P="${MY_PN}-${PV}"
12
13 DESCRIPTION="Resource Manager Agents"
14 HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage"
15 SRC_URI="https://fedorahosted.org/releases/r/e/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE=""
21
22 RDEPEND="~sys-cluster/rgmanager-${CLUSTER_RELEASE}
23 ~sys-cluster/cman-${CLUSTER_RELEASE}"
24 DEPEND="${RDEPEND}"
25
26 S="${WORKDIR}/${MY_P}"
27
28 src_configure() {
29 econf \
30 --docdir=/usr/share/doc/${P} \
31 --libdir=/usr/$(get_libdir) \
32 --localstatedir=/var \
33 --sysconfdir=/etc \
34 --with-ras-set=rgmanager
35 }
36
37 src_install() {
38 default
39
40 # remove useless RHEV check script and log directory
41 rm -rf "${D}/usr/sbin" "${D}/var"
42 }
43
44 pkg_postinst() {
45 if [[ "${ROOT}" != "/" ]] ; then
46 ewarn "You have to run 'ccs_update_schema' in the chroot-environment"
47 ewarn "to update the schema file for the cluster configuration."
48 ewarn "Otherwise you will not be able to define ressources."
49 else
50 elog "Running ccs_update_schema to update the configuration file schema"
51 /usr/sbin/ccs_update_schema -v -f
52 fi
53 }
54
55 pkg_postrm() {
56 if [[ "${ROOT}" != "/" ]] ; then
57 ewarn "You have to run 'ccs_update_schema' in the chroot-environment"
58 ewarn "to update the schema file for the cluster configuration."
59 ewarn "Otherwise you may be able to define ressources even though they"
60 ewarn "are not present anymore."
61 else
62 elog "Running ccs_update_schema to update the configuration file schema"
63 /usr/sbin/ccs_update_schema -v -f
64 fi
65 }

  ViewVC Help
Powered by ViewVC 1.1.20