# ChangeLog for app-sci/setiathome
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/setiathome/ChangeLog,v 1.23 2004/10/01 14:22:30 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/setiathome/ChangeLog,v 1.24 2004/11/07 20:15:21 ribosome Exp $
+
+*setiathome-3.08-r4 (07 Nov 2004)
+
+ 07 Nov 2004; Olivier Fisette <ribosome@gentoo.org>
+ +setiathome-3.08-r4.ebuild:
+ Fixed insecure installation for version 3.08 (but not for 3.03)
+ (see bug #69868).
01 Oct 2004; Patrick Kursawe <phosphan@gentoo.org>
+files/setiathome-wrapper-r1, -setiathome-3.08-r1.ebuild,
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 cbe7ec1dd36e438b7c3c5a052b018718 ChangeLog 3596
-MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
-MD5 70a601a96c3e9cc558cb422f344437c9 setiathome-3.03-r1.ebuild 2191
MD5 478dcb4a32299ed492f2201162d2326d setiathome-3.08-r3.ebuild 2420
+MD5 70a601a96c3e9cc558cb422f344437c9 setiathome-3.03-r1.ebuild 2191
+MD5 b7cb81867b23f3248ae93fbbaa162f66 ChangeLog 3801
+MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+MD5 a15f527eae2c2117aa8a56bcfe2f3c0c setiathome-3.08-r4.ebuild 2319
+MD5 40c346e90ce3b19f80ee7e10340e9da4 files/seti-init.d-r1 1396
MD5 9a7e850d8e364823f360c347d3a37ff8 files/digest-setiathome-3.03-r1 342
MD5 4383e568b5b768f6fa2f27b3d9a713b9 files/digest-setiathome-3.08-r3 166
+MD5 4383e568b5b768f6fa2f27b3d9a713b9 files/digest-setiathome-3.08-r4 166
+MD5 274302d6ee3462c6362e7223ad35cc9f files/setiathome-wrapper-r1 77
MD5 2d83ded4bcd8e9b28eb91fc883aec602 files/seti-conf.d-r1 349
-MD5 40c346e90ce3b19f80ee7e10340e9da4 files/seti-init.d-r1 1396
MD5 55dbc721d10de13427eab449d82ed5e9 files/setiathome-wrapper 94
-MD5 274302d6ee3462c6362e7223ad35cc9f files/setiathome-wrapper-r1 77
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
-
-iD8DBQFBYyBsHTu7gpaalycRAnczAJ9IRuXehFHjmR36rtA7W6oeoLXp2QCg4qtT
-ll7dX4W0xXnOsnk63G7ONeY=
-=852D
------END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-sci/setiathome/setiathome-3.08-r4.ebuild,v 1.1 2004/11/07 20:15:21 ribosome Exp $
+
+# no version number on this install dir since upgrades will be using same dir
+# (data will be stored here too)
+I=/opt/setiathome
+
+# 3.08 has not yet been released for ppc, sparc or alpha.
+DESCRIPTION="Search for Extraterrestrial Intelligence (SETI) @ home"
+HOMEPAGE="http://setiathome.ssl.berkeley.edu"
+SRC_URI="x86? ( ftp://alien.ssl.berkeley.edu/pub/setiathome-${PV}.i686-pc-linux-gnu.tar )
+ amd64? ( ftp://alien.ssl.berkeley.edu/pub/setiathome-${PV}.x86_64-pc-linux-gnu.tar )"
+# ppc? ( ftp://alien.ssl.berkeley.edu/pub/setiathome-${PV}.powerpc-unknown-linux-gnu.tar )
+# sparc? ( ftp://alien.ssl.berkeley.edu/pub/setiathome-${PV}.sparc-unknown-linux-gnu.tar )
+# alpha? ( ftp://alien.ssl.berkeley.edu/pub/setiathome-3.03.alpha-unknown-linux-gnu.tar )"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="x86 amd64"
+IUSE="X"
+# Don't know if this is necessary, will have to check the license
+RESTRICT="nomirror"
+
+DEPEND=">=sys-apps/baselayout-1.8.0"
+RDEPEND="X? ( virtual/x11 )"
+
+src_unpack () {
+ unpack ${A}
+
+ # find real directory ...
+ dir="`find . -type d -name "${P}*" -mindepth 1 -maxdepth 1 | \
+ cut -b "3-"`"
+ # ... and rename it to our desired directory name
+ mv "${dir}" "${P}"
+}
+
+src_install () {
+ dodir ${I} /var/lib/setiathome
+ cp {setiathome,README} ${D}/${I}
+ use X && cp {xsetiathome,README.xsetiathome} ${D}/${I}
+
+ exeinto /etc/init.d ; newexe ${FILESDIR}/seti-init.d-r1 setiathome
+ insinto /etc/conf.d ; newins ${FILESDIR}/seti-conf.d-r1 setiathome
+
+ exeinto /var/lib/setiathome
+ newexe ${FILESDIR}/setiathome-wrapper-r1 setiwrapper
+}
+
+pkg_postinst () {
+ einfo "To run SETI@home in the background at boot:"
+ einfo " Edit /etc/conf.d/setiathome to setup"
+ einfo " Then just run \`/etc/init.d/setiathome start\`"
+ einfo ""
+ einfo "Otherwise remember to cd into the directory"
+ einfo "where it should keep its data files first, like so:"
+ einfo " cd /var/lib/setiathome && ${I}/setiathome"
+ einfo ""
+ einfo "As of 3.08-r1 data files has moved to /var/lib/setiathome"
+}
+
+pkg_postrm () {
+ einfo "SETI@home data files were not removed."
+ einfo " Remove them manually from /var/lib/setiathome"
+}