Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/dnetc: ChangeLog dnetc-2.9101.509.ebuild
Date: Thu, 02 Apr 2009 01:39:24
Message-Id: E1LpBto-0002zK-MK@stork.gentoo.org
1 robbat2 09/04/02 01:39:20
2
3 Modified: ChangeLog
4 Added: dnetc-2.9101.509.ebuild
5 Log:
6 NMU version bump, adds Core i7 detection that I need.
7 (Portage version: 2.2_rc27/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.53 app-misc/dnetc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/dnetc/ChangeLog?rev=1.53&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/dnetc/ChangeLog?rev=1.53&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/dnetc/ChangeLog?r1=1.52&r2=1.53
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v
19 retrieving revision 1.52
20 retrieving revision 1.53
21 diff -p -w -b -B -u -u -r1.52 -r1.53
22 --- ChangeLog 31 Dec 2008 05:36:45 -0000 1.52
23 +++ ChangeLog 2 Apr 2009 01:39:20 -0000 1.53
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-misc/dnetc
26 -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v 1.52 2008/12/31 05:36:45 darkside Exp $
28 +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v 1.53 2009/04/02 01:39:20 robbat2 Exp $
30 +
31 +*dnetc-2.9101.509 (02 Apr 2009)
32 +
33 + 02 Apr 2009; Robin H. Johnson <robbat2@g.o>
34 + +dnetc-2.9101.509.ebuild:
35 + NMU version bump, adds Core i7 detection that I need.
36
37 *dnetc-2.9101.507 (31 Dec 2008)
38
39
40
41
42 1.1 app-misc/dnetc/dnetc-2.9101.509.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/dnetc/dnetc-2.9101.509.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/dnetc/dnetc-2.9101.509.ebuild?rev=1.1&content-type=text/plain
46
47 Index: dnetc-2.9101.509.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/dnetc-2.9101.509.ebuild,v 1.1 2009/04/02 01:39:20 robbat2 Exp $
52
53 inherit eutils
54
55 MAJ_PV=${PV:0:6}
56 MIN_PV=${PV:7:9}
57
58 DESCRIPTION="distributed.net client"
59 HOMEPAGE="http://www.distributed.net"
60 SRC_URI="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )
61 amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64-elf.tar.gz )"
62
63 LICENSE="distributed.net"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE=""
67 RESTRICT="mirror"
68
69 DEPEND=""
70 RDEPEND="net-dns/bind-tools"
71
72 if use amd64; then
73 S="${WORKDIR}/dnetc${MIN_PV}-linux-amd64-elf"
74 elif use x86; then
75 S="${WORKDIR}/dnetc${MIN_PV}-linux-x86-elf-uclibc"
76 fi
77
78 src_install() {
79 exeinto /opt/distributed.net
80 doexe dnetc
81
82 doman dnetc.1
83 dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
84
85 newinitd "${FILESDIR}"/dnetc.initd dnetc
86 newconfd "${FILESDIR}"/dnetc.confd dnetc
87 }
88
89 pkg_preinst() {
90 if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
91 einfo "flushing old buffers"
92 source /etc/conf.d/dnetc
93
94 if [ -e /opt/distributed.net/dnetc.ini ]; then
95 # use ini file
96 /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
97 elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
98 # email adress from config
99 /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
100 fi
101
102 einfo "removing old buffer files"
103 rm -f /opt/distributed.net/buff*
104 fi
105
106 enewgroup dnetc
107 enewuser dnetc -1 -1 /opt/distributed.net dnetc
108 }
109
110 pkg_postinst() {
111 chown -Rf dnetc:dnetc /opt/distributed.net
112 chmod 0555 /opt/distributed.net/dnetc
113
114 elog "To run distributed.net client in the background at boot:"
115 elog " rc-update add dnetc default"
116 elog ""
117 elog "Either configure your email address in /etc/conf.d/dnetc"
118 elog "or create the configuration file /opt/distributed.net/dnetc.ini"
119 }
120
121 pkg_postrm() {
122 if [ -d /opt/distributed.net ]; then
123 elog "All files has not been removed from /opt/distributed.net"
124 fi
125 }