# 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}" # Source directory; the dir where the sources can be found (automatically # unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P} # If you don't need to change it, leave the S= line out of the ebuild # to keep it tidy. #S="${WORKDIR}/${P}" src_unpack() { unpack ${A} epatch "${FILESDIR}"/openais-gentoo-makefile.patch } pkg_setup() { enewgroup ais enewuser ais -1 -1 /dev/null ais } src_install() { emake DESTDIR="${D}" install || die "emake install failed" newinitd "${FILESDIR}"/openais-init.d ais dodoc CHANGELOG LICENSE QUICKSTART README.amf README.devmap SECURITY TODO dodoc conf/* }