/[gentoo-x86]/net-misc/entropy/entropy-0.8.2.415.ebuild
Gentoo

Contents of /net-misc/entropy/entropy-0.8.2.415.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Mon Oct 17 02:03:02 2005 UTC (14 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
moved to net-p2p/entropy_rsa

1 agriffis 1.2 # Copyright 1999-2004 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.5 # $Header: /var/cvsroot/gentoo-x86/net-misc/entropy/entropy-0.8.2.415.ebuild,v 1.4 2005/08/24 00:09:35 vapier Exp $
4 vapier 1.1
5     inherit eutils
6    
7     MY_PV_BUILD=${PV/*.}
8     MY_PV=${PV/.${MY_PV_BUILD}}
9     DESCRIPTION="A p2p-node to share your files, infos, philosophy ... anonymously"
10     HOMEPAGE="http://entropy.stop1984.com/"
11     SRC_URI="http://entropy.stop1984.com/files/entropy-${MY_PV}-${MY_PV_BUILD}.tgz"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15 vapier 1.3 KEYWORDS="ppc x86"
16 vapier 1.1 IUSE="mysql"
17    
18     DEPEND="sys-libs/zlib
19     dev-libs/expat
20     mysql? ( dev-db/mysql )"
21    
22     S=${WORKDIR}/${PN}-${MY_PV}
23    
24     src_compile() {
25     local myconf=""
26     use mysql && myconf="--with-mysql=/usr"
27     econf ${myconf} || die
28     emake || die
29     }
30    
31     src_install() {
32     dobin entropy monoopt storechg || die
33     exeinto /etc/init.d
34     newexe ${FILESDIR}/entropy.rc entropy
35     insinto /etc/conf.d
36     newins ${FILESDIR}/entropy.conf.d entropy
37    
38     pkg_preinst
39     diropts -o entropy -g entropy
40     insopts -o entropy -g entropy -m0644
41     dodir /var/entropy/{de,node,store,tmp}
42     insinto /var/entropy/de
43     doins de/*
44     insinto /var/entropy/node
45     doins node/*
46    
47     sed -e "3,$ s:#::g" seed.txt-dist > seed.txt
48     sed \
49     -e "s:seednodes=seed.txt:seednodes=/var/entropy/seed.txt:g" \
50     -e "s:logfile=entropy.log:logfile=/var/entropy/entropy.log:g" \
51     -e "s:storepath=store:storepath=/var/entropy/store:g" \
52     -e "s:temppath=tmp:temppath=/var/entropy/tmp:g" \
53     entropy.conf-dist > entropy.conf
54     insinto /var/entropy
55     doins entropy.conf seed.txt
56    
57     dodoc README TODO entropy.conf-dist seed.txt-dist
58     dohtml ENTROPY.html
59     use mysql && dodoc README.MySQL
60     }
61    
62     pkg_preinst() {
63     enewgroup entropy
64 vapier 1.4 enewuser entropy -1 -1 /var/entropy entropy
65 vapier 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20