# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-info eutils DESCRIPTION="Market driven distributed computing system." HOMEPAGE="http://www.cpushare.com/" SRC_URI="https://www.cpushare.com/downloads/cpushare/core/${P}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="" RESTRICT="nomirror" DEPEND="" RDEPEND=">=virtual/linux-sources-2.6.12 >=dev-lang/python-2.3.3 >=dev-python/pyopenssl-0.6 >=dev-python/twisted-1.3.0" S="${WORKDIR}" pkg_setup() { CONFIG_CHECK="SECCOMP" \ || die "You need seccomp enabled in your kernel (located in \"Processor type and features\") to run this package" } src_compile() { # Do nothing : } src_install () { dodoc ${PN}/COPYING ${PN}/README chmod +x ${PN}/CPUShare insinto /opt doins -r ${PN} newinitd ${FILESDIR}/cpushare.init cpushare newconfd ${FILESDIR}/cpushare.conf cpushare } pkg_preinst() { enewgroup cpushare enewuser cpushare -1 -1 /opt/cpushare cpushare } pkg_postinst() { einfo "Create a account at ${HOMEPAGE}" einfo "Then make a new sell order and place the order file in /opt/${PN}" einfo einfo "To start ${PN}, use /etc/init.d/${PN} start" }