Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3286 - app-sci/setiathome-3.03 (new)
Summary: app-sci/setiathome-3.03 (new)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 3603
Blocks: 3658 3710 4761
  Show dependency tree
 
Reported: 2002-05-31 17:46 UTC by Maik Schreiber
Modified: 2002-07-19 15:11 UTC (History)
2 users (show)

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


Attachments
ebuild for setiathome-3.03 (setiathome-3.03.ebuild,1.77 KB, text/plain)
2002-05-31 17:47 UTC, Maik Schreiber
Details
/etc/init.d/setiathome script (setiathome,510 bytes, text/plain)
2002-06-01 00:15 UTC, SpanKY
Details
/etc/conf.d/setiathome setup/config file (setiathome,1.02 KB, text/plain)
2002-06-01 00:15 UTC, SpanKY
Details
setiathome r1 (new ebuild/conf.d/init.d files) (setiathome.tar.gz,1.84 KB, application/octet-stream)
2002-06-10 18:18 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maik Schreiber 2002-05-31 17:46:49 UTC
ebuild for SETI@home 3.03 (http://setiathome.ssl.berkeley.edu)

Because there are only several builds of SETI@home for different architectures,
this ebuilds needs the following prerequisites before it will succeed:

- pre-downloaded binary archive in /usr/portage/distfiles (can be downloaded
from http://setiathome.ssl.berkeley.edu/unix.html)
- the following link: ln -s <archive file> /usr/portage/distfiles/${P}.tar
Comment 1 Maik Schreiber 2002-05-31 17:47:25 UTC
Created attachment 1278 [details]
ebuild for setiathome-3.03
Comment 2 SpanKY gentoo-dev 2002-06-01 00:15:17 UTC
Created attachment 1283 [details]
/etc/init.d/setiathome script
Comment 3 SpanKY gentoo-dev 2002-06-01 00:15:50 UTC
Created attachment 1284 [details]
/etc/conf.d/setiathome setup/config file
Comment 4 SpanKY gentoo-dev 2002-06-01 00:16:41 UTC
might i suggest you include these 2 guys w/your ebuild 
Comment 5 SpanKY gentoo-dev 2002-06-01 00:27:15 UTC
in using your ebuild, i found 2 problems ... 
 
first, your error display: 
                einfo "\tln -s <archive> /usr/portage/${A}" 
i believe you want it to say 
                einfo "\tln -s <archive> /usr/portage/distfiles/${A}" 
 
also, you do a check for this link, basically: 
        if [ ! -L ${DISTDIR}/${A} ] ; then 
this doesnt work out too well for people like me ... i export /usr/portage/ 
via samba on 1 machine, and map it for other machines on the network ... the 
reason is that i have a central rsync (emerge rsync once instead of multiple 
times), and a central deposit for distfiles (d/l it once and keep it forever 
on a large hd rather than d/l-ing it many times over) 
basically, i would suggest a -e rather than a -L 
Comment 6 Maik Schreiber 2002-06-01 10:02:19 UTC
- Actually it should rather display

    einfo "\tln -s <archive> ${DISTDIR}/${A}"

- In the configuration file, I don't think mentioning all options there is a
good idea. These might change over time when new releases are installed.

- Also "-nice -10" isn't really a good idea. The default should be rather "-nice
19" as mentioned on the SETI@home web site.
Comment 7 Maik Schreiber 2002-06-01 11:13:18 UTC
Also is it a good idea to run setiathome as root? I don't think it would cause
any security issues, but nothing should be run as root unless *really* necessary.
Comment 8 SpanKY gentoo-dev 2002-06-01 13:53:27 UTC
the nice 10 was just a random number i picked heh ... ill change it to 19  as for the running as root, since setiathome doesnt interact with anything, its kind of hard to exploit it ... but you have a suggestion to run it as nobody ?  modify the init.d file accordingly to set the permissions with a chown i guess  as for the ver changing over time, 3.03 has been out for a while ... plus when we update the ebuild files we can update the conf.d and init.d files respectively. 
Comment 9 Ryan Phillips (RETIRED) gentoo-dev 2002-06-07 12:11:46 UTC
All binary only packages should be installed into /opt and have the appropriate
path added to /etc/env.d
Comment 10 Maik Schreiber 2002-06-10 15:13:52 UTC
I can't really see the point of creating a new /opt directory only to put one
(or even two) binary files in there.

I think we shouldn't bee _too_ religious of the /opt directive. (At least that's
my point of view.)
Comment 11 SpanKY gentoo-dev 2002-06-10 17:00:28 UTC
ah, but not being religious enough is what is allowing packages into /usr/portage/ with bad naming ;) ill post a revised tar.gz with the ebuild/conf.d/init.d files shortly ... see how everyone likes em 
Comment 12 Ryan Phillips (RETIRED) gentoo-dev 2002-06-10 17:36:05 UTC
I talked to Daniel about this issue.  He likes the idea of an /opt/bin directory
for a small number of executables.  I'm trying to figure out a safe way to add
/opt/bin to everyone's PATH... ideas?
Comment 13 SpanKY gentoo-dev 2002-06-10 18:18:34 UTC
Created attachment 1434 [details]
setiathome r1 (new ebuild/conf.d/init.d files)

what do you guys think of this ? (Maik, check this out and see if it works for
you)
Comment 14 Ryan Phillips (RETIRED) gentoo-dev 2002-06-10 18:30:21 UTC
I'll open a bug report to modify baselayout to include /opt/bin by default...
Once that gets committed then this ebuild can use baselayout-version as a
dependency and be installed into /opt/bin, and everything should be golden.
Comment 15 Ryan Phillips (RETIRED) gentoo-dev 2002-07-19 15:11:58 UTC
committed to app-sci/