Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/distcc: ChangeLog metadata.xml distcc-3.0-r1.ebuild distcc-3.0.ebuild
Date: Sun, 19 Oct 2008 14:45:25
Message-Id: E1KrZX0-00040Q-WF@stork.gentoo.org
1 matsuu 08/10/19 14:45:22
2
3 Modified: ChangeLog metadata.xml
4 Added: distcc-3.0-r1.ebuild
5 Removed: distcc-3.0.ebuild
6 Log:
7 Add myself as a maintainer, bug #234312. Backport patch from svn 617.
8 (Portage version: 2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64)
9
10 Revision Changes Path
11 1.176 sys-devel/distcc/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/ChangeLog?rev=1.176&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/ChangeLog?rev=1.176&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/ChangeLog?r1=1.175&r2=1.176
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v
20 retrieving revision 1.175
21 retrieving revision 1.176
22 diff -u -r1.175 -r1.176
23 --- ChangeLog 18 Oct 2008 16:21:59 -0000 1.175
24 +++ ChangeLog 19 Oct 2008 14:45:22 -0000 1.176
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-devel/distcc
27 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.175 2008/10/18 16:21:59 matsuu Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.176 2008/10/19 14:45:22 matsuu Exp $
30 +
31 +*distcc-3.0-r1 (19 Oct 2008)
32 +
33 + 19 Oct 2008; MATSUU Takuto <matsuu@g.o>
34 + +files/distcc-3.0-svn617.patch, metadata.xml, -distcc-3.0.ebuild,
35 + +distcc-3.0-r1.ebuild:
36 + Add myself as a maintainer, bug #234312. Backport patch from svn 617.
37
38 *distcc-3.0 (18 Oct 2008)
39
40
41
42
43 1.6 sys-devel/distcc/metadata.xml
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/metadata.xml?rev=1.6&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/metadata.xml?rev=1.6&content-type=text/plain
47 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/metadata.xml?r1=1.5&r2=1.6
48
49 Index: metadata.xml
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/sys-devel/distcc/metadata.xml,v
52 retrieving revision 1.5
53 retrieving revision 1.6
54 diff -u -r1.5 -r1.6
55 --- metadata.xml 17 Jan 2008 21:35:10 -0000 1.5
56 +++ metadata.xml 19 Oct 2008 14:45:22 -0000 1.6
57 @@ -3,7 +3,7 @@
58 <pkgmetadata>
59 <herd>hp-cluster</herd>
60 <maintainer>
61 - <email>betelgeuse@g.o</email>
62 + <email>matsuu@g.o</email>
63 </maintainer>
64 <longdescription lang="en">
65 Distcc is a program to distribute compilation of C code across several
66
67
68
69 1.1 sys-devel/distcc/distcc-3.0-r1.ebuild
70
71 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/distcc-3.0-r1.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/distcc-3.0-r1.ebuild?rev=1.1&content-type=text/plain
73
74 Index: distcc-3.0-r1.ebuild
75 ===================================================================
76 # Copyright 1999-2008 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-3.0-r1.ebuild,v 1.1 2008/10/19 14:45:22 matsuu Exp $
79
80 # If you change this in any way please email lisa@g.o and make an
81 # entry in the ChangeLog (this means you spanky :P). (2004-04-11) Lisa Seelye
82
83 inherit eutils fdo-mime flag-o-matic multilib toolchain-funcs
84
85 DESCRIPTION="a program to distribute compilation of C code across several machines on a network"
86 HOMEPAGE="http://distcc.org/"
87 SRC_URI="http://distcc.googlecode.com/files/${P}.tar.bz2"
88
89 LICENSE="GPL-2"
90 SLOT="0"
91 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
92 IUSE="avahi gnome gtk ipv6 selinux"
93
94 RESTRICT="test"
95
96 RDEPEND=">=dev-lang/python-2.4
97 dev-libs/popt
98 avahi? ( >=net-dns/avahi-0.6 )
99 gnome? (
100 >=gnome-base/libgnome-2
101 >=gnome-base/libgnomeui-2
102 >=x11-libs/gtk+-2
103 x11-libs/pango
104 )
105 gtk? (
106 >=x11-libs/gtk+-2
107 )"
108 DEPEND="${RDEPEND}
109 dev-util/pkgconfig"
110 RDEPEND="${RDEPEND}
111 !net-misc/pump
112 >=sys-devel/gcc-config-1.3.1
113 selinux? ( sec-policy/selinux-distcc )"
114
115 pkg_setup() {
116 if use ipv6; then
117 ewarn "To use IPv6 you must have IPv6 compiled into your kernel"
118 ewarn "either via a module or compiled code"
119 ewarn "You can recompile without ipv6 with: USE='-ipv6' emerge distcc"
120 epause 5
121 fi
122
123 enewuser distcc 240 -1 -1 daemon
124 }
125
126 src_unpack() {
127 unpack ${A}
128 cd "${S}"
129 epatch "${FILESDIR}/${P}-gentoo.patch"
130 epatch "${FILESDIR}/${P}-svn617.patch"
131 }
132
133 src_compile() {
134 # More legacy stuff?
135 [ "$(gcc-major-version)" = "2" ] && filter-lfs-flags
136
137 # -O? is required
138 [ "${CFLAGS/-O}" = "${CFLAGS}" ] && CFLAGS="${CFLAGS} -O2"
139
140 econf \
141 $(use_with avahi) \
142 $(use_with gtk) \
143 $(use_with gnome) \
144 $(use_enable ipv6 rfc2553) \
145 --with-docdir="/usr/share/doc/${PF}" || die "econf failed"
146 emake || die "emake failed"
147 }
148
149 src_install() {
150 emake DESTDIR="${D}" install || die
151
152 dobin "${FILESDIR}/${PV}/distcc-config"
153
154 newinitd "${FILESDIR}/${PV}/init" distccd
155 cp "${FILESDIR}/${PV}/conf" "${T}/conf"
156 if use avahi; then
157 (
158 echo
159 echo '# Enable zeroconf support in distccd'
160 echo 'DISTCCD_OPTS="${DISTCCD_OPTS} --zeroconf"'
161 ) >> "${T}/conf"
162 fi
163 newconfd "${T}/conf" distccd
164
165 # create the masquerade directory
166 local DCCC_PATH="/usr/$(get_libdir)/distcc/bin/"
167 dodir "${DCCC_PATH}"
168 for f in cc c++ gcc g++; do
169 dosym /usr/bin/distcc "${DCCC_PATH}${f}"
170 if [ "${f}" != "cc" ]; then
171 dosym /usr/bin/distcc "${DCCC_PATH}${CTARGET:-${CHOST}}-${f}"
172 fi
173 done
174
175 # create the distccd pid directory
176 keepdir /var/run/distccd
177 fowners distcc:daemon /var/run/distccd
178
179 if use gnome || use gtk; then
180 einfo "Renaming /usr/bin/distccmon-gnome to /usr/bin/distccmon-gui"
181 einfo "This is to have a little sensability in naming schemes between distccmon programs"
182 mv "${D}/usr/bin/distccmon-gnome" "${D}/usr/bin/distccmon-gui" || die
183 dosym distccmon-gui /usr/bin/distccmon-gnome
184 fi
185
186 rm -rf "${D}/etc/default"
187 rm -f "${D}/etc/distcc/clients.allow"
188 rm -f "${D}/etc/distcc/commands.allow.sh"
189 prepalldocs
190 }
191
192 pkg_postinst() {
193 use gnome && fdo-mime_desktop_database_update
194
195 # By now everyone should be using the right envfile
196 if [ "${ROOT}" = "/" ]; then
197 einfo "Installing links to native compilers..."
198 /usr/bin/distcc-config --install
199 else
200 # distcc-config can *almost* handle ROOT installs itself
201 # but for now, but user must finsh things off
202 elog "*** Installation is not complete ***"
203 elog "You must run the following as root:"
204 elog " /usr/bin/distcc-config --install"
205 elog "after booting or chrooting into ${ROOT}"
206 fi
207
208 elog
209 elog "Tips on using distcc with Gentoo can be found at"
210 elog "http://www.gentoo.org/doc/en/distcc.xml"
211 elog
212 elog "To use the distccmon programs with Gentoo you should use this command:"
213 elog "# DISTCC_DIR=\"${DISTCC_DIR}\" distccmon-text 5"
214
215 if use gnome || use gtk; then
216 elog "Or:"
217 elog "# DISTCC_DIR=\"${DISTCC_DIR}\" distccmon-gnome"
218 fi
219
220 elog
221 elog "***SECURITY NOTICE***"
222 elog "If you are upgrading distcc please make sure to run etc-update to"
223 elog "update your /etc/conf.d/distccd and /etc/init.d/distccd files with"
224 elog "added security precautions (the --listen and --allow directives)"
225 elog
226 }
227
228 pkg_postrm() {
229 use gnome && fdo-mime_desktop_database_update
230 }