# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils toolchain-funcs DESCRIPTION="Standards-based cluster framework" HOMEPAGE="http://www.openais.org/" SRC_URI="ftp://ftp@openais.org:downloads@openais.org/downloads/${P}/${P}.tar.gz" LICENSE="BSD-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="virtual/libc" RDEPEND="${DEPEND}" pkg_setup() { enewgroup ais enewuser ais -1 -1 /dev/null ais } src_unpack() { unpack "${A}" cd "${S}" epatch "${FILESDIR}"/openais-0.80.2-remove-ld.so.conf.d-reference.patch } src_compile() { emake LIBDIR="/usr/$(get_libdir)/openais" CC="$(tc-getCC)" \ CFLAGS="${CFLAGS}" || die "emake install failed" } 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 }