/[gentoo-x86]/sys-cluster/fence-agents/fence-agents-3.1.5-r2.ebuild
Gentoo

Contents of /sys-cluster/fence-agents/fence-agents-3.1.5-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Apr 8 18:25:44 2015 UTC (3 years, 3 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Drop old Python implementations

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/fence-agents/fence-agents-3.1.5-r2.ebuild,v 1.1 2013/12/07 08:03:34 jlec Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit multilib python-any-r1 versionator
10
11 CLUSTER_RELEASE="${PV}"
12 MY_P="cluster-${CLUSTER_RELEASE}"
13
14 MAJ_PV="$(get_major_version)"
15 MIN_PV="$(get_version_component_range 2-3)"
16
17 DESCRIPTION="Cluster Fencing Agents"
18 HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage"
19 SRC_URI="https://fedorahosted.org/releases/f/e/${PN}/${PN}-${PV}.tar.gz"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="~amd64 ~x86"
24 IUSE=""
25
26 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
27
28 RDEPEND="~sys-cluster/libccs-${PV}"
29 DEPEND="${RDEPEND}
30 ${PYTHON_DEPS}
31 dev-libs/libxslt
32 $(python_gen_any_dep '
33 dev-python/pexpect[${PYTHON_USEDEP}]
34 dev-python/pycurl[${PYTHON_USEDEP}]
35 dev-python/suds[${PYTHON_USEDEP}]
36 ')"
37
38 src_configure() {
39 econf \
40 --docdir=/usr/share/doc/${P} \
41 --libdir=/usr/$(get_libdir) \
42 --localstatedir=/var
43 }
44
45 src_install() {
46 default
47 # dont force /var/run creation on installation wrt #451798
48 rm -rf "${ED}"/var/run || die
49 }
50
51 pkg_postinst() {
52 if [[ "${EROOT}" != "/" ]] ; then
53 ewarn "You have to run 'ccs_update_schema' in the chroot-environment"
54 ewarn "to update the schema file for the cluster configuration."
55 ewarn "Otherwise you will not be able to define ressources."
56 else
57 elog "Running ccs_update_schema to update the configuration file schema"
58 ccs_update_schema -v -f
59 fi
60 }
61
62 pkg_postrm() {
63 if [[ "${EROOT}" != "/" ]] ; then
64 ewarn "You have to run 'ccs_update_schema' in the chroot-environment"
65 ewarn "to update the schema file for the cluster configuration."
66 ewarn "Otherwise you may be able to define ressources even though they"
67 ewarn "are not present anymore."
68 else
69 elog "Running ccs_update_schema to update the configuration file schema"
70 ccs_update_schema -v -f
71 fi
72 }

  ViewVC Help
Powered by ViewVC 1.1.20