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