Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105211 - cpushare-0.22.ebuild (New Package)
Summary: cpushare-0.22.ebuild (New Package)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.cpushare.com
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-09-07 21:18 UTC by Nathan Horter
Modified: 2018-05-15 12:17 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
cpushare-0.22.ebuild (cpushare-0.22.ebuild,1.27 KB, text/plain)
2005-09-07 21:19 UTC, Nathan Horter
Details
cpushare.conf (cpushare.conf,300 bytes, text/plain)
2005-09-07 21:19 UTC, Nathan Horter
Details
cpushare.init (cpushare.init,539 bytes, text/plain)
2005-09-07 21:20 UTC, Nathan Horter
Details
cpushare-0.22-r1.diff (cpushare-0.22-r1.diff,1.57 KB, text/plain)
2005-09-08 11:37 UTC, Nathan Horter
Details
cpushare-0.22-r2.ebuild (cpushare-0.22-r2.ebuild,1.26 KB, text/plain)
2005-09-08 12:38 UTC, Nathan Horter
Details
cpushare-0.38.ebuild (cpushare-0.38.ebuild,1.19 KB, text/plain)
2006-12-03 09:42 UTC, David Li
Details
this should be located in /usr/local/portage/net-p2p/cpushare/ (cpushare-0.46.ebuild,2.67 KB, text/plain)
2007-09-27 02:50 UTC, CPUShare
Details
cpushare-0.46.ebuild (cpushare-0.46.ebuild,2.67 KB, text/plain)
2007-09-27 02:56 UTC, CPUShare
Details
cpushare-0.46.ebuild (cpushare-0.46.ebuild,2.68 KB, text/plain)
2007-09-27 03:05 UTC, CPUShare
Details
cpushare-0.46-r1.patch (cpushare-0.46.patch,1.00 KB, patch)
2007-11-18 21:54 UTC, Marti Raudsepp
Details | Diff
ebuild for cpushare 0.49 that works (cpushare-0.49.ebuild,2.88 KB, text/plain)
2008-05-30 14:55 UTC, CPUShare
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Horter 2005-09-07 21:18:26 UTC
Attached is cpushare-0.22.ebuild and two files for using the init system
cpushare.conf and cpushare.init

CPUShare is a market driven distributed computing system. It is partially
python, partially C. This software requires a 2.6.12 kernel or later with
seccomp enabled and a free account at http://www.cpushare.com

CPUShare currently only supports x86 (i686 or greater), amd64, and ppc64. I have
only tested on x86 and have marked it unstable in this ebuild. Testing on other
platforms would be nice.

This seems to fit best as net-misc/cpushare.
Comment 1 Nathan Horter 2005-09-07 21:19:18 UTC
Created attachment 67889 [details]
cpushare-0.22.ebuild
Comment 2 Nathan Horter 2005-09-07 21:19:50 UTC
Created attachment 67890 [details]
cpushare.conf
Comment 3 Nathan Horter 2005-09-07 21:20:04 UTC
Created attachment 67891 [details]
cpushare.init
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 03:01:32 UTC
Thanks for the ebuild, two notes:

1/ If this depends on a specific kernel version, you should state so in DEPEND.
2/ Also, the ebuild should check for CONFIG_SECCOMP and bail out if it's not
enables. Leaving this up to user is not a good idea. You can use linux-info
eclass for this.

Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 03:01:43 UTC
Please, fix the above problems and reopen then.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 03:04:03 UTC
I forgot - no need to depend on sys-devel/gcc and sys-devel/binutils, these deps
are implicit from system target.
Comment 7 Nathan Horter 2005-09-08 11:36:31 UTC
Okay, I have updated the ebuild per Comment #4 and Comment #6.

I have created a diff cpushare-0.22-r1.diff and am reopening.
Comment 8 Nathan Horter 2005-09-08 11:37:12 UTC
Created attachment 67949 [details]
cpushare-0.22-r1.diff
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-09-08 11:54:59 UTC
Please, attach a complete fixed ebuild. BTW, the CONFIG_CHECK is wrong, it
should check just for SECCOMP, not CONFIG_SECCOMP.
Comment 10 Nathan Horter 2005-09-08 12:38:50 UTC
Created attachment 67956 [details]
cpushare-0.22-r2.ebuild

Full ebuild cpushare-0.22-r2.ebuild

Fixed SECCOMP check per Comment #9
Comment 11 David Li 2006-12-03 09:42:14 UTC
Created attachment 103283 [details]
cpushare-0.38.ebuild

Long story short, this caught my eye on digg and I updated the ebuild
Comment 12 Maxxer 2006-12-04 13:21:28 UTC
please add ~amd64 to keywords.

thanks
Comment 13 Régis Décamps 2006-12-05 12:11:07 UTC
It seems /etc/init.d/cpushare is not created.
Comment 14 CPUShare 2007-09-27 02:49:03 UTC
Ouch if you make more efforts on this please add me in CC, I'd be willing can help! thanks!

I noticed this effort only now that I'm ready to submit an ebuild myself ;-).

So here my version (I didn't look at yours but I guess it'll be slightly different). This only supports twisted 2.5.0 due to breakage in twisted/plugins.

I tried to do the real thing and not the self containted directory hack anymore. Well perhaps some day I'll have to split buy and sell client but lots of code is shared.. Anyway in the binary package the buy side will be minimal.

v2 andrea # equery f cpushare
[ Searching for packages matching cpushare... ]
* Contents of net-p2p/cpushare-0.46:
/etc
/etc/cpushare
/etc/init.d
/etc/init.d/cpushare
/usr
/usr/bin
/usr/bin/seccomp-loader
/usr/lib
/usr/lib/python2.4
/usr/lib/python2.4/site-packages
/usr/lib/python2.4/site-packages/cpushare
/usr/lib/python2.4/site-packages/cpushare/__init__.py
/usr/lib/python2.4/site-packages/cpushare/client.py
/usr/lib/python2.4/site-packages/cpushare/config.py
/usr/lib/python2.4/site-packages/cpushare/exceptions.py
/usr/lib/python2.4/site-packages/cpushare/proto.py
/usr/lib/python2.4/site-packages/cpushare/proto_const.py
/usr/lib/python2.4/site-packages/cpushare/seccomp.py
/usr/lib/python2.4/site-packages/cpushare/seccomp_gen.py
/usr/lib/python2.4/site-packages/cpushare/system_check.py
/usr/lib/python2.4/site-packages/cpushare/tap.py
/usr/lib/python2.4/site-packages/cpushare/twisted_bugs.py
/usr/lib/python2.4/site-packages/cpushare/utils.py
/usr/lib/python2.4/site-packages/twisted
/usr/lib/python2.4/site-packages/twisted/plugins
/usr/lib/python2.4/site-packages/twisted/plugins/twisted_cpushare.py
/usr/share
/usr/share/cpushare
/usr/share/cpushare/keys
/usr/share/cpushare/keys/cpushare.public.asc
/usr/share/cpushare/keys/cpushare_cert.pem
/usr/share/doc
/usr/share/doc/cpushare-0.46
/usr/share/doc/cpushare-0.46/COPYING.bz2
/usr/share/doc/cpushare-0.46/README.bz2
/var
/var/log
/var/log/cpushare
v2 andrea # 

It's pointless to support the buy client so this only allows one sell order to be placed in /etc/cpushare.

Please let me know if this can be merged.
Comment 15 CPUShare 2007-09-27 02:50:24 UTC
Created attachment 131999 [details]
this should be located in /usr/local/portage/net-p2p/cpushare/
Comment 16 CPUShare 2007-09-27 02:55:27 UTC
notices this, I'll upload a new one

-       enewuser cpushare -1 -1 /opt/cpushare cpushare
+       enewuser cpushare -1 -1 /dev/null cpushare
Comment 17 CPUShare 2007-09-27 02:56:24 UTC
Created attachment 132002 [details]
cpushare-0.46.ebuild
Comment 18 CPUShare 2007-09-27 03:05:53 UTC
Created attachment 132005 [details]
cpushare-0.46.ebuild

Sorry for the quick triple attachment but it's better to inherit linux-info so the check for seccomp is actually meaningful, minor problem but still worth fixing, this last version should be good enough for now
Comment 19 Marti Raudsepp 2007-11-18 21:54:30 UTC
Created attachment 136326 [details, diff]
cpushare-0.46-r1.patch

Patch to the latest ebuild attachment; fixes two problems:
1. The last ebuild assigned ownership within src_install, but the cpushare user/group did not exist until pkg_preinst -- so the first installation would always fail to set ownership.
2. chmod 700 /var/log/cpushare -- world should not be able to read logfiles, because they might leak important information

(described in depth on the cpushare-devel list)
Comment 20 CPUShare 2008-05-30 14:55:13 UTC
Created attachment 154839 [details]
ebuild for cpushare 0.49 that works

Unfortunately cpushare ebuild with the last patch attached didn't work right. I rolled it back because I don't really know what is the standard. This ebuild does things the same way boinc latest ebuild does things, so if this is not following the standard, then boinc should be fixed with higher priority because it's already in the official portage tree. In the meantime things works fine in practice again (and at least as long as latest boinc ebuild keeps working, this will keep working fine too).
Comment 21 Marek Szuba archtester gentoo-dev 2017-08-09 11:18:37 UTC
Upstream seems to be not only dead but gone altogether, which considering this software needed an account to work would suggest it is now useless. Still, let us wait for the usual 30 days before closing this ticket as WONTFIX in case someone proves me wrong.