blob: 967f07b38d3dd9b629ddb0dab105c515aab7d5b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-sci/chessbrain/chessbrain-20310.ebuild,v 1.1 2003/03/12 16:32:09 tantive Exp $
DESCRIPTION="This is a client for ChessBrain, a distibuted computing project."
HOMEPAGE="http://www.chessbrain.net/"
PV=${PV}-01
SRC_URI="http://www.chessbrain.net/client${PV}-lin.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
# no version number on this install dir since upgrades will be using same dir
# (data will be stored here too)
I=/opt/chessbrain
S=${WORKDIR}
src_install () {
dodir ${I}
cp {cbspn,cbspn.conf} ${D}/${I}
chown nobody.nogroup ${D}/${I}
chown nobody.nogroup ${D}/${I}/cbspn
chmod +s ${S}/cbspn
exeinto /etc/init.d ; newexe ${FILESDIR}/cb-init.d chessbrain
insinto /etc/conf.d ; newins ${FILESDIR}/cb-conf.d chessbrain
echo "CHESSBRAIN_DIR=${I}">> ${D}/etc/conf.d/chessbrain
}
pkg_postinst () {
einfo "To run ChessBrain in the background at boot:"
einfo " Edit ${I}/cbspn.conf for information relevant to ChessBrain"
einfo " See http://www.chessbrain.net/peernodenotes.html"
einfo " Then just run \`/etc/init.d/chessbrain start\`"
einfo ""
einfo "Otherwise remember to cd into the directory"
einfo "where it should keep its data files first, like so:"
einfo " cd ${I} && ./cbspn"
}
|