# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 USE_RUBY="ruby21" inherit ruby-fakegem systemd DESCRIPTION="An easy to configure, easy to extend monitoring framework written in Ruby." HOMEPAGE="http://godrb.com" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86 ~ppc ~ppc64" DEPEND="" RDEPEND="" all_fakegem_install() { ruby_fakegem_binwrapper god newinitd ${FILESDIR}/god.initd god systemd_dounit "${FILESDIR}"/god.service insinto /etc doins ${FILESDIR}/god.conf keepdir /etc/god.d } each_ruby_configure() { ${RUBY} -Cext/god extconf.rb || die "god/extconf.rb failed" } each_ruby_compile() { emake V=1 -Cext/god CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "make netlink_handler_ext.so failed" cp ext/god/netlink_handler_ext.so lib/ || die }