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: dnetc-2.9110.519.ebuild dnetc-2.9110.519b.ebuild ChangeLog
Date: Sat, 28 Dec 2013 04:13:30
Message-Id: 20131228041326.4BFCC2004C@flycatcher.gentoo.org
1 robbat2 13/12/28 04:13:26
2
3 Modified: ChangeLog
4 Added: dnetc-2.9110.519.ebuild dnetc-2.9110.519b.ebuild
5 Log:
6 Bug #401473: bump.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.67 app-misc/dnetc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/dnetc/ChangeLog?rev=1.67&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/dnetc/ChangeLog?rev=1.67&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/dnetc/ChangeLog?r1=1.66&r2=1.67
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v
20 retrieving revision 1.66
21 retrieving revision 1.67
22 diff -p -w -b -B -u -u -r1.66 -r1.67
23 --- ChangeLog 1 Jun 2012 01:55:14 -0000 1.66
24 +++ ChangeLog 28 Dec 2013 04:13:26 -0000 1.67
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-misc/dnetc
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v 1.66 2012/06/01 01:55:14 zmedico Exp $
29 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v 1.67 2013/12/28 04:13:26 robbat2 Exp $
31 +
32 +*dnetc-2.9110.519 (28 Dec 2013)
33 +*dnetc-2.9110.519b (28 Dec 2013)
34 +
35 + 28 Dec 2013; Robin H. Johnson <robbat2@g.o> +dnetc-2.9110.519.ebuild,
36 + +dnetc-2.9110.519b.ebuild:
37 + Bug #401473: bump.
38
39 01 Jun 2012; Zac Medico <zmedico@g.o> dnetc-2.9011.496-r1.ebuild,
40 dnetc-2.9015.504.ebuild, dnetc-2.9103.509.ebuild, dnetc-2.9107.516.ebuild,
41
42
43
44 1.1 app-misc/dnetc/dnetc-2.9110.519.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/dnetc/dnetc-2.9110.519.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/dnetc/dnetc-2.9110.519.ebuild?rev=1.1&content-type=text/plain
48
49 Index: dnetc-2.9110.519.ebuild
50 ===================================================================
51 # Copyright 1999-2013 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/dnetc-2.9110.519.ebuild,v 1.1 2013/12/28 04:13:26 robbat2 Exp $
54
55 EAPI=2
56 inherit user
57
58 MAJ_PV=${PV:0:6}
59 MIN_PV=${PV:7:9}
60
61 DESCRIPTION="distributed.net client"
62 HOMEPAGE="http://www.distributed.net"
63 SRC_URI_x86="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )"
64 #SRC_URI_amd64="amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64.tar.gz )"
65 #SRC_URI_ppc="ppc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-ppc-uclibc.tar.gz )"
66 #SRC_URI_sparc="sparc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-sparc-v7.tar.gz )"
67 SRC_URI="${SRC_URI_amd64} ${SRC_URI_ppc} ${SRC_URI_x86} ${SRC_URI_sparc}"
68
69 LICENSE="distributed.net"
70 SLOT="0"
71 KEYWORDS="~x86" # ppc,amd64 not available for this version
72 IUSE=""
73 RESTRICT="mirror"
74
75 DEPEND=""
76 RDEPEND="net-dns/bind-tools"
77
78 QA_PRESTRIPPED="opt/distributed.net/dnetc"
79
80 S=${WORKDIR}/dnetc
81
82 src_prepare() {
83 binname=""
84 if use amd64; then
85 binname=dnetc${MIN_PV}-linux-amd64
86 elif use x86; then
87 binname=dnetc${MIN_PV}-linux-x86-elf-uclibc
88 elif use ppc; then
89 binname=dnetc${MIN_PV}-linux-ppc-elf-uclibc
90 fi
91 [[ -z "${binname}" ]] && die "Name of dnetc binary for this platform undefined"
92 mv "${binname}" dnetc || die "$binname binary is missing"
93 }
94
95 src_install() {
96 exeinto /opt/distributed.net
97 doexe dnetc
98
99 doman dnetc.1
100 dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
101
102 newinitd "${FILESDIR}"/dnetc.initd dnetc
103 newconfd "${FILESDIR}"/dnetc.confd dnetc
104
105 keepdir /var/spool/dnetc
106 }
107
108 pkg_preinst() {
109 if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
110 einfo "flushing old buffers"
111 source /etc/conf.d/dnetc
112
113 if [ -e /opt/distributed.net/dnetc.ini ]; then
114 # use ini file
115 /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
116 elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
117 # email adress from config
118 /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
119 fi
120
121 einfo "removing old buffer files"
122 rm -f /opt/distributed.net/buff*
123 fi
124
125 enewgroup dnetc
126 enewuser dnetc -1 -1 /opt/distributed.net dnetc
127 }
128
129 pkg_postinst() {
130 chown -Rf dnetc:dnetc /opt/distributed.net
131 chmod 0555 /opt/distributed.net/dnetc
132
133 elog "To run distributed.net client in the background at boot:"
134 elog " rc-update add dnetc default"
135 elog ""
136 elog "Either configure your email address in /etc/conf.d/dnetc"
137 elog "or create the configuration file /opt/distributed.net/dnetc.ini"
138 }
139
140 pkg_postrm() {
141 if [ -d /opt/distributed.net ]; then
142 elog "All files has not been removed from /opt/distributed.net"
143 fi
144 }
145
146
147
148 1.1 app-misc/dnetc/dnetc-2.9110.519b.ebuild
149
150 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/dnetc/dnetc-2.9110.519b.ebuild?rev=1.1&view=markup
151 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/dnetc/dnetc-2.9110.519b.ebuild?rev=1.1&content-type=text/plain
152
153 Index: dnetc-2.9110.519b.ebuild
154 ===================================================================
155 # Copyright 1999-2013 Gentoo Foundation
156 # Distributed under the terms of the GNU General Public License v2
157 # $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/dnetc-2.9110.519b.ebuild,v 1.1 2013/12/28 04:13:26 robbat2 Exp $
158
159 EAPI=2
160 inherit user
161
162 MAJ_PV=${PV:0:6}
163 MIN_PV=${PV:7:9}
164
165 DESCRIPTION="distributed.net client"
166 HOMEPAGE="http://www.distributed.net"
167 #SRC_URI_x86="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )"
168 SRC_URI_amd64="amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64.tar.gz )"
169 #SRC_URI_ppc="ppc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-ppc-uclibc.tar.gz )"
170 #SRC_URI_sparc="sparc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-sparc-v7.tar.gz )"
171 SRC_URI="${SRC_URI_amd64} ${SRC_URI_ppc} ${SRC_URI_x86} ${SRC_URI_sparc}"
172
173 LICENSE="distributed.net"
174 SLOT="0"
175 KEYWORDS="~amd64" # ppc,x86 not available for this version
176 IUSE=""
177 RESTRICT="mirror"
178
179 DEPEND=""
180 RDEPEND="net-dns/bind-tools"
181
182 QA_PREBUILT="opt/distributed.net/dnetc"
183
184 getS() {
185 case $ARCH in
186 amd64) suffix=amd64 ;;
187 x86) suffix=x86-elf-uclibc ;;
188 ppc) suffix=ppc-elf-uclibc ;;
189 esac
190 echo dnetc${MIN_PV:0:3}-linux-${suffix}
191 }
192
193 src_prepare() {
194 export S="${WORKDIR}/$(getS)"
195 cd "${S}"
196 [[ -x dnetc ]] || die "Name of dnetc directory/binary for this platform undefined"
197 }
198
199 src_install() {
200 export S="${WORKDIR}/$(getS)"
201 cd "${S}"
202 exeinto /opt/distributed.net
203 doexe dnetc
204
205 doman dnetc.1
206 dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
207
208 newinitd "${FILESDIR}"/dnetc.initd dnetc
209 newconfd "${FILESDIR}"/dnetc.confd dnetc
210
211 keepdir /var/spool/dnetc
212 }
213
214 pkg_preinst() {
215 if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
216 einfo "flushing old buffers"
217 source /etc/conf.d/dnetc
218
219 if [ -e /opt/distributed.net/dnetc.ini ]; then
220 # use ini file
221 /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
222 elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
223 # email adress from config
224 /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
225 fi
226
227 einfo "removing old buffer files"
228 rm -f /opt/distributed.net/buff*
229 fi
230
231 enewgroup dnetc
232 enewuser dnetc -1 -1 /opt/distributed.net dnetc
233 }
234
235 pkg_postinst() {
236 chown -Rf dnetc:dnetc /opt/distributed.net
237 chmod 0555 /opt/distributed.net/dnetc
238
239 elog "To run distributed.net client in the background at boot:"
240 elog " rc-update add dnetc default"
241 elog ""
242 elog "Either configure your email address in /etc/conf.d/dnetc"
243 elog "or create the configuration file /opt/distributed.net/dnetc.ini"
244 }
245
246 pkg_postrm() {
247 if [ -d /opt/distributed.net ]; then
248 elog "All files has not been removed from /opt/distributed.net"
249 fi
250 }