# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Standards-based cluster framework" HOMEPAGE="http://developer.osdl.org/dev/openais/" SRC_URI="http://developer.osdl.org/dev/openais/downloads/${P}/${P}.tar.gz" LICENSE="BSD-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="virtual/libc" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} epatch "${FILESDIR}"/openais-0.80.2-remove-ld.so.conf.d-reference.patch } pkg_setup() { enewgroup ais enewuser ais -1 -1 /dev/null ais } src_compile() { emake LIBDIR="/usr/$(get_libdir)/openais" } src_install() { emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/openais" install || die "emake install failed" newinitd "${FILESDIR}"/openais-init.d ais dodoc CHANGELOG LICENSE QUICKSTART README.amf README.devmap SECURITY TODO dodoc conf/* dodir /etc/env.d echo LDPATH="/usr/$(get_libdir)/openais" > ${D}/etc/env.d/03openais }