# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-info eutils NAME=cpushare S="${WORKDIR}/${PN}" DESCRIPTION="Market driven distributed computing system." SRC_URI="mirror://www.cpushare.com/downloads/${PN}-${PV}.tar.bz2" HOMEPAGE="http://www.cpushare.com/" LICENSE="LGPL-2.1" DEPEND=">=virtual/linux-sources-2.6.12 >=dev-lang/python-2.3.3 >=dev-python/pyopenssl-0.6 >=dev-python/twisted-1.3.0" KEYWORDS="~x86" IUSE="" SLOT="0" 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() { einfo "Nothing to compile for ${P}." } src_install () { dodir /opt/${PN} cp -R "${S}"/* ${D}/opt/${PN}/ dodoc COPYING CREDITS README newinitd ${FILESDIR}/cpushare.init cpushare newconfd ${FILESDIR}/cpushare.conf cpushare } pkg_preinst() { enewgroup cpushare enewuser cpushare -1 -1 /opt/cpushare cpushare } pkg_postinst() { einfo einfo "You will need to get a cpushare account at www.cpushare.com" einfo "Once you have an account you will need to create a new order and place the order file in /opt/cpushare" einfo einfo "To run ${PN} type /etc/init.d/${PN} start" einfo }