/[gentoo-x86]/sys-cluster/corosync/corosync-2.3.3.ebuild
Gentoo

Contents of /sys-cluster/corosync/corosync-2.3.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Apr 2 18:34:19 2015 UTC (2 years, 5 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
whitespace

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --ignore-arches, unsigned Manifest commit)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/corosync/corosync-2.3.3.ebuild,v 1.1 2014/08/12 15:27:41 ultrabug Exp $
4
5 EAPI=4
6
7 inherit autotools base
8
9 MY_TREE="32ec81c"
10
11 DESCRIPTION="OSI Certified implementation of a complete cluster engine"
12 HOMEPAGE="http://www.corosync.org/"
13 SRC_URI="https://github.com/corosync/corosync/tarball/v${PV} -> ${P}.tar.gz"
14
15 LICENSE="BSD-2 public-domain"
16 SLOT="0"
17 KEYWORDS="~amd64 ~hppa ~x86"
18 IUSE="doc infiniband static-libs"
19
20 # TODO: support those new configure flags
21 # --enable-watchdog : Watchdog support
22 # --enable-augeas : Install the augeas lens for corosync.conf
23 # --enable-snmp : SNMP protocol support
24 # --enable-xmlconf : XML configuration support
25 # --enable-systemd : Install systemd service files
26 RDEPEND="!sys-cluster/heartbeat
27 infiniband? (
28 sys-infiniband/libibverbs
29 sys-infiniband/librdmacm
30 )
31 dev-libs/nss
32 >=sys-cluster/libqb-0.14.4"
33 DEPEND="${RDEPEND}
34 virtual/pkgconfig
35 doc? ( sys-apps/groff )"
36
37 PATCHES=( "${FILESDIR}/${PN}-2.0.0-docs.patch" )
38
39 DOCS=( README.recovery SECURITY TODO AUTHORS )
40
41 S="${WORKDIR}/${PN}-${PN}-${MY_TREE}"
42
43 src_prepare() {
44 base_src_prepare
45 eautoreconf
46 }
47
48 src_configure() {
49 # appends lib to localstatedir automatically
50 # FIXME: install just shared libs --disable-static does not work
51 econf \
52 --localstatedir=/var \
53 --docdir=/usr/share/doc/${PF} \
54 $(use_enable doc) \
55 $(use_enable infiniband rdma)
56 }
57
58 src_install() {
59 default
60 newinitd "${FILESDIR}"/${PN}.initd ${PN}
61 rm "${D}"/etc/init.d/corosync-notifyd || die
62
63 insinto /etc/logrotate.d
64 newins "${FILESDIR}"/${PN}.logrotate ${PN}
65
66 keepdir /var/lib/corosync
67 use static-libs || rm -rf "${D}"/usr/$(get_libdir)/*.a || die
68 }
69
70 pkg_postinst() {
71 if [[ ${REPLACING_VERSIONS} < 2.0 ]]; then
72 ewarn "!! IMPORTANT !!"
73 ewarn " "
74 ewarn "Migrating from a previous version of corosync can be dangerous !"
75 ewarn " "
76 ewarn "Make sure you backup your cluster configuration before proceeding"
77 ewarn " "
78 fi
79 }

  ViewVC Help
Powered by ViewVC 1.1.20