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 distcc-3.1.ebuild
Date: Wed, 03 Dec 2008 09:19:11
Message-Id: E1L7nsx-0004Gp-Sl@stork.gentoo.org
1 matsuu 08/12/03 09:19:07
2
3 Modified: ChangeLog
4 Added: distcc-3.1.ebuild
5 Log:
6 Version bumped.
7 (Portage version: 2.1.6_rc2/cvs/Linux 2.6.27-gentoo-r2 x86_64)
8
9 Revision Changes Path
10 1.185 sys-devel/distcc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/ChangeLog?rev=1.185&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/ChangeLog?rev=1.185&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/ChangeLog?r1=1.184&r2=1.185
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v
19 retrieving revision 1.184
20 retrieving revision 1.185
21 diff -u -r1.184 -r1.185
22 --- ChangeLog 20 Nov 2008 16:47:58 -0000 1.184
23 +++ ChangeLog 3 Dec 2008 09:19:07 -0000 1.185
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-devel/distcc
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.184 2008/11/20 16:47:58 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.185 2008/12/03 09:19:07 matsuu Exp $
29 +
30 +*distcc-3.1 (03 Dec 2008)
31 +
32 + 03 Dec 2008; MATSUU Takuto <matsuu@g.o> +distcc-3.1.ebuild:
33 + Version bumped.
34
35 20 Nov 2008; Mike Frysinger <vapier@g.o>
36 -files/2.18/distcc-config.patch:
37
38
39
40 1.1 sys-devel/distcc/distcc-3.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/distcc-3.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/distcc-3.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: distcc-3.1.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-3.1.ebuild,v 1.1 2008/12/03 09:19:07 matsuu Exp $
50
51 inherit eutils fdo-mime flag-o-matic multilib toolchain-funcs
52
53 DESCRIPTION="a program to distribute compilation of C code across several machines on a network"
54 HOMEPAGE="http://distcc.org/"
55 SRC_URI="http://distcc.googlecode.com/files/${P}.tar.bz2"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
60 IUSE="avahi gnome gtk hardened ipv6 selinux xinetd"
61
62 RESTRICT="test"
63
64 RDEPEND=">=dev-lang/python-2.4
65 dev-libs/popt
66 avahi? ( >=net-dns/avahi-0.6 )
67 gnome? (
68 >=gnome-base/libgnome-2
69 >=gnome-base/libgnomeui-2
70 >=x11-libs/gtk+-2
71 x11-libs/pango
72 )
73 gtk? (
74 >=x11-libs/gtk+-2
75 )"
76 DEPEND="${RDEPEND}
77 dev-util/pkgconfig"
78 RDEPEND="${RDEPEND}
79 !net-misc/pump
80 >=sys-devel/gcc-config-1.3.1
81 selinux? ( sec-policy/selinux-distcc )
82 xinetd? ( sys-apps/xinetd )"
83
84 DISTCC_LOG=""
85 DCCC_PATH="/usr/$(get_libdir)/distcc/bin"
86 DISTCC_VERBOSE="0"
87
88 pkg_setup() {
89 enewuser distcc 240 -1 -1 daemon
90 }
91
92 src_unpack() {
93 unpack ${A}
94 cd "${S}"
95 epatch "${FILESDIR}/${PN}-3.0-xinetd.patch"
96 sed -i -e "/PATH/s:\$distcc_location:${DCCC_PATH}:" pump.in || die
97
98 # Bugs #120001, #167844 and probably more. See patch for description.
99 use hardened && epatch "${FILESDIR}/distcc-hardened.patch"
100 }
101
102 src_compile() {
103 # More legacy stuff?
104 [ "$(gcc-major-version)" = "2" ] && filter-lfs-flags
105
106 econf \
107 $(use_with avahi) \
108 $(use_with gtk) \
109 $(use_with gnome) \
110 $(use_enable ipv6 rfc2553) \
111 --disable-Werror \
112 --with-docdir="/usr/share/doc/${PF}" || die "econf failed"
113 emake || die "emake failed"
114 }
115
116 src_install() {
117 # In rare cases, parallel make install failed
118 emake -j1 DESTDIR="${D}" install || die
119
120 dobin "${FILESDIR}/3.0/distcc-config"
121
122 newinitd "${FILESDIR}/3.0/init" distccd
123
124 cp "${FILESDIR}/3.0/conf" "${T}/distccd"
125 if use avahi; then
126 cat >> "${T}/distccd" <<-EOF
127
128 # Enable zeroconf support in distccd
129 DISTCCD_OPTS="\${DISTCCD_OPTS} --zeroconf"
130 EOF
131 fi
132 doconfd "${T}/distccd"
133
134 cat > "${T}/02distcc" <<-EOF
135 # This file is managed by distcc-config; use it to change these settings.
136 DISTCC_LOG="${DISTCC_LOG}"
137 DCCC_PATH="${DCCC_PATH}"
138 DISTCC_VERBOSE="${DISTCC_VERBOSE}"
139 EOF
140 doenvd "${T}/02distcc"
141
142 # create the masquerade directory
143 dodir "${DCCC_PATH}"
144 for f in cc c++ gcc g++; do
145 dosym /usr/bin/distcc "${DCCC_PATH}/${f}"
146 if [ "${f}" != "cc" ]; then
147 dosym /usr/bin/distcc "${DCCC_PATH}/${CTARGET:-${CHOST}}-${f}"
148 fi
149 done
150
151 # create the distccd pid directory
152 keepdir /var/run/distccd
153 fowners distcc:daemon /var/run/distccd
154
155 if use gnome || use gtk; then
156 einfo "Renaming /usr/bin/distccmon-gnome to /usr/bin/distccmon-gui"
157 einfo "This is to have a little sensability in naming schemes between distccmon programs"
158 mv "${D}/usr/bin/distccmon-gnome" "${D}/usr/bin/distccmon-gui" || die
159 dosym distccmon-gui /usr/bin/distccmon-gnome
160 fi
161
162 if use xinetd; then
163 insinto /etc/xinetd.d
164 newins "doc/example/xinetd" distcc
165 fi
166
167 rm -rf "${D}/etc/default"
168 rm -f "${D}/etc/distcc/clients.allow"
169 rm -f "${D}/etc/distcc/commands.allow.sh"
170 prepalldocs
171 }
172
173 pkg_postinst() {
174 use gnome && fdo-mime_desktop_database_update
175
176 if use ipv6; then
177 elog
178 elog "IPv6 has not supported yet by ${P}."
179 fi
180 elog
181 elog "Tips on using distcc with Gentoo can be found at"
182 elog "http://www.gentoo.org/doc/en/distcc.xml"
183 elog
184 elog "How to use pump mode with Gentoo:"
185 elog "# distcc-config --set-hosts \"foo,cpp,lzo bar,cpp,lzo baz,cpp,lzo\""
186 elog "# pump emerge -u world"
187 elog
188 elog "To use the distccmon programs with Gentoo you should use this command:"
189 elog "# DISTCC_DIR=\"${DISTCC_DIR}\" distccmon-text 5"
190
191 if use gnome || use gtk; then
192 elog "Or:"
193 elog "# DISTCC_DIR=\"${DISTCC_DIR}\" distccmon-gnome"
194 fi
195
196 elog
197 elog "***SECURITY NOTICE***"
198 elog "If you are upgrading distcc please make sure to run etc-update to"
199 elog "update your /etc/conf.d/distccd and /etc/init.d/distccd files with"
200 elog "added security precautions (the --listen and --allow directives)"
201 elog
202 }
203
204 pkg_postrm() {
205 use gnome && fdo-mime_desktop_database_update
206 }