Gentoo Archives: gentoo-commits

From: "Chris Gianelloni (wolf31o2)" <wolf31o2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/dnetc: ChangeLog dnetc-2.9013.498.ebuild
Date: Sat, 02 Feb 2008 14:02:47
Message-Id: E1JLIwN-0004pD-Df@stork.gentoo.org
1 wolf31o2 08/02/02 14:01:55
2
3 Modified: ChangeLog
4 Added: dnetc-2.9013.498.ebuild
5 Log:
6 Version bump with a modified ebuild from Michael Hordijk <hoffbrinkle@×××××××.com> and edited by me. Closing bug #177091.
7 (Portage version: 2.1.4.1)
8
9 Revision Changes Path
10 1.47 app-misc/dnetc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/dnetc/ChangeLog?rev=1.47&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/dnetc/ChangeLog?rev=1.47&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/dnetc/ChangeLog?r1=1.46&r2=1.47
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v
19 retrieving revision 1.46
20 retrieving revision 1.47
21 diff -u -r1.46 -r1.47
22 --- ChangeLog 23 Aug 2007 17:59:25 -0000 1.46
23 +++ ChangeLog 2 Feb 2008 14:01:54 -0000 1.47
24 @@ -1,6 +1,13 @@
25 # ChangeLog for app-misc/dnetc
26 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v 1.46 2007/08/23 17:59:25 wolf31o2 Exp $
28 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/ChangeLog,v 1.47 2008/02/02 14:01:54 wolf31o2 Exp $
30 +
31 +*dnetc-2.9013.498 (02 Feb 2008)
32 +
33 + 02 Feb 2008; Chris Gianelloni <wolf31o2@g.o> +files/dnetc.confd,
34 + +files/dnetc.initd, +dnetc-2.9013.498.ebuild:
35 + Version bump with a modified ebuild from Michael Hordijk
36 + <hoffbrinkle@×××××××.com> and edited by me. Closing bug #177091.
37
38 23 Aug 2007; Chris Gianelloni <wolf31o2@g.o>
39 dnetc-2.9001.478.ebuild, dnetc-2.9002.479.ebuild,
40
41
42
43 1.1 app-misc/dnetc/dnetc-2.9013.498.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/dnetc/dnetc-2.9013.498.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/dnetc/dnetc-2.9013.498.ebuild?rev=1.1&content-type=text/plain
47
48 Index: dnetc-2.9013.498.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-misc/dnetc/dnetc-2.9013.498.ebuild,v 1.1 2008/02/02 14:01:54 wolf31o2 Exp $
53
54 inherit eutils versionator linux-info
55
56 MAJ_PV="$(get_major_version).$(get_version_component_range 2)"
57 MIN_PV="$(get_version_component_range 3)"
58
59 DESCRIPTION="distributed.net client"
60 HOMEPAGE="http://www.distributed.net"
61 SRC_URI="x86? ( http://http.distributed.net/pub/dcti/v2.9013/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )"
62
63 LICENSE="distributed.net"
64 SLOT="0"
65 KEYWORDS="~x86 -*"
66 RESTRICT="nomirror"
67
68 IUSE=""
69 DEPEND=""
70 RDEPEND=""
71
72 S="${WORKDIR}/dnetc${MIN_PV}-linux-x86-elf-uclibc"
73
74 pkg_setup() {
75 local CONFIG_CHECK="~SYSVIPC"
76 local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for dnetc)"
77 check_extra_config
78 echo
79 }
80
81 pkg_preinst() {
82 enewgroup dnetc
83 enewuser dnetc -1 -1 /opt/distributed.net dnetc
84 if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
85 ebegin "Flushing old buffers"
86 source /etc/conf.d/dnetc
87
88 if [ -e /etc/init.d/dnetc ] ; then
89 /etc/init.d/dnetc flush
90 local flushed=${?}
91 fi
92
93 if [ ${flushed} -eq 0 ] ; then
94 true
95 elif [ -e /opt/distributed.net/dnetc.ini ]; then
96 # use ini file
97 /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
98 elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
99 # email adress from config
100 /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
101 fi
102
103 eend ${?}
104 fi
105 }
106
107 src_install() {
108 newinitd ${FILESDIR}/dnetc.initd dnetc
109 newconfd ${FILESDIR}/dnetc.confd dnetc
110
111 local ownopts="--mode=0555 --group=dnetc --owner=dnetc"
112
113 diropts ${ownopts}
114 dodir /opt/distributed.net
115
116 exeopts ${ownopts}
117 exeinto /opt/distributed.net
118 doexe dnetc
119
120 doman dnetc.1
121 dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
122
123 diropts ${ownopts/0555/0755}
124 dodir /var/spool/dnetc
125 }
126
127 pkg_postinst() {
128 einfo "To run distributed.net client in the background at boot:"
129 einfo " rc-update add dnetc default"
130 einfo
131 einfo "Either configure your email address in /etc/conf.d/dnetc"
132 einfo "or create the configuration file /opt/distributed.net/dnetc.ini"
133 }
134
135 pkg_postrm() {
136 if [ -d /opt/distributed.net ]; then
137 einfo "All files has not been removed from /opt/distributed.net"
138 einfo "Probably old init file and/or buffer files"
139 fi
140 }
141
142
143
144 --
145 gentoo-commits@l.g.o mailing list