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