--- cpushare-0.22.ebuild 2005-09-08 11:25:44.353313391 -0700 +++ cpushare-0.22-r1.ebuild 2005-09-08 11:30:18.948320390 -0700 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -inherit eutils +inherit linux-info eutils NAME=cpushare S="${WORKDIR}/${PN}" @@ -10,8 +10,7 @@ SRC_URI="mirror://www.cpushare.com/downloads/${PN}-${PV}.tar.bz2" HOMEPAGE="http://www.cpushare.com/" LICENSE="LGPL-2.1" -DEPEND="sys-devel/gcc - sys-devel/binutils +DEPEND=">=virtual/linux-sources-2.6.12 >=dev-lang/python-2.3.3 >=dev-python/pyopenssl-0.6 >=dev-python/twisted-1.3.0" @@ -19,6 +18,10 @@ IUSE="" SLOT="0" +pkg_setup() { + CONFIG_CHECK="CONFIG_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}." } @@ -39,12 +42,9 @@ pkg_postinst() { einfo - einfo "${PN} requires a 2.6.12 or newer kernel with seccomp enabled" - einfo "Run \"python /opt/${PN}/seccomp_test.py\" to verify that you have seccomp enabled" - 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 /etc/init.d/cpushare start" + 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 /opt/${PN} start" + einfo "To run ${PN} type /etc/init.d/${PN} start" einfo }