Contents of /trunk/extras/distcc/distcc-3.1-r2.smage2
Parent Directory | Revision Log
Revision 4261 -
(show annotations)
(download)
Tue Dec 1 10:42:46 2009 UTC (14 years, 6 months ago) by niro
File size: 3417 byte(s)
Tue Dec 1 10:42:46 2009 UTC (14 years, 6 months ago) by niro
File size: 3417 byte(s)
-rev bump, serveral fixes
1 | # $Id$ |
2 | |
3 | PNAME="distcc" |
4 | PVER="3.1" |
5 | PBUILD="r2" |
6 | |
7 | SPLIT_PACKAGES="distcc distccmon-gnome" |
8 | |
9 | PCATEGORIE="dev-util" |
10 | STATE="unstable" |
11 | |
12 | DESCRIPTION="Distributed compiler utilities." |
13 | HOMEPAGE="http://distcc.org/" |
14 | |
15 | SDEPEND=">= sys-apps/shadow-4 |
16 | >= dev-util/pkgconfig-0.23 |
17 | >= dev-lang/python-2.6 |
18 | >= dev-libs/popt-1.15 |
19 | >= net-dns/avahi-0.6.25 |
20 | >= x11-libs/gtk2+-2.18 |
21 | >= x11-libs/pango-1.26" |
22 | |
23 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
24 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
25 | |
26 | sminclude mbuild mtools cleanutils |
27 | |
28 | # distcc-config.sh cvs revision |
29 | CONF_REV=1.2 |
30 | |
31 | SRC_URI=( |
32 | http://${PNAME}.googlecode.com/files/${SRCFILE} |
33 | mirror://${PNAME}/${SRCFILE} |
34 | mirror://${PNAME}/distccd.confd-2.18.3 |
35 | mirror://${PNAME}/distccd.rc-2.18.3 |
36 | mirror://${PNAME}/distcc-config.sh-${CONF_REV} |
37 | ) |
38 | |
39 | UP2DATE="updatecmd http://code.google.com/p/distcc/downloads/list | lasttarball" |
40 | |
41 | split_info_distcc() |
42 | { |
43 | DESCRIPTION="Distributed compiler utilities." |
44 | DEPEND=">= virtual/glibc |
45 | >= dev-lang/python-2.6 |
46 | >= dev-libs/popt-1.15 |
47 | >= net-dns/avahi-0.6.25" |
48 | } |
49 | |
50 | split_info_distccmon-gnome() |
51 | { |
52 | DESCRIPTION="DistCC GTK2 Client." |
53 | DEPEND="== dev-util/distcc-${PVER} |
54 | >= dev-libs/popt-1.15 |
55 | >= x11-libs/gtk2+-2.18 |
56 | >= x11-libs/pango-1.26" |
57 | } |
58 | |
59 | src_compile() |
60 | { |
61 | cd ${SRCDIR} |
62 | |
63 | mconfigure \ |
64 | --with-docdir=/usr/share/doc/${PNAME}-${PVER} \ |
65 | --with-gtk \ |
66 | --with-avahi \ |
67 | --enable-rfc2553 \ |
68 | --disable-Werror \ |
69 | || die |
70 | |
71 | mmake || die |
72 | } |
73 | |
74 | src_install_distcc() |
75 | { |
76 | cd ${SRCDIR} |
77 | |
78 | mmake -j1 DESTDIR=${BINDIR} install || die |
79 | |
80 | # docs |
81 | minstalldocs survey.txt AUTHORS NEWS COPYING README ChangeLog TODO || die |
82 | |
83 | # confs |
84 | minstallconf distccd.confd-2.18.3 distccd || die |
85 | |
86 | cat >> "${BINDIR}/etc/conf.d/distccd" <<-EOF |
87 | |
88 | # Enable zeroconf support in distccd |
89 | DISTCCD_OPTS="\${DISTCCD_OPTS} --zeroconf" |
90 | EOF |
91 | |
92 | # init |
93 | minstallrc distccd.rc-2.18.3 distccd || die |
94 | |
95 | # config-tool |
96 | minstallexec -s distcc-config.sh-${CONF_REV} /usr/bin/distcc-config || die |
97 | |
98 | # keep this dir to satisfy distcc-config |
99 | mkeepdir /usr/lib/distcc/bin || die |
100 | |
101 | # fix config-tool on 64bit arches |
102 | if [[ $(mlibdir) != lib ]] |
103 | then |
104 | sed -i "s:/usr/lib:/usr/$(mlibdir):g" ${BINDIR}/usr/bin/distcc-config || die |
105 | fi |
106 | |
107 | # remove gtk-client (split package!) |
108 | rm ${BINDIR}/usr/bin/distccmon-gnome || die |
109 | rm -r ${BINDIR}/usr/share/distcc || die |
110 | } |
111 | |
112 | src_install_distccmon-gnome() |
113 | { |
114 | cd ${SRCDIR} |
115 | mmake -j1 DESTDIR=${BINDIR} install || die |
116 | |
117 | # remove all other stuff but the gtk2 client |
118 | zapmost ${BINDIR} usr/bin/distccmon-gnome usr/share/distcc || die |
119 | } |
120 | |
121 | preinstall() |
122 | { |
123 | |
124 | # stop daemon since script is being updated |
125 | if [[ -n $(pidof distccd) ]] && [[ -x /etc/init.d/distccd ]] && |
126 | [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
127 | then |
128 | /etc/init.d/distccd stop |
129 | fi |
130 | |
131 | # add user distcc |
132 | ${MLIBDIR}/museradd -o "-u 240 -g daemon -s /bin/false -d /dev/null -c distccd" distcc |
133 | } |
134 | |
135 | postinstall() |
136 | { |
137 | # install dirs and set right permissions |
138 | install -o distcc -g daemon -d ${MROOT}/var/run/distccd |
139 | chown -R distcc:daemon ${MROOT}/var/run/distccd |
140 | |
141 | # installs compiler symlinks |
142 | if [ -x /usr/bin/distcc-config ] && \ |
143 | [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
144 | then |
145 | /usr/bin/distcc-config -i |
146 | else |
147 | echo "You *must* run distcc-config -i in the chroot of ${MROOT}" |
148 | fi |
149 | |
150 | # show current settings of distcc |
151 | if [ -x /usr/bin/distcc-config ] |
152 | then |
153 | /usr/bin/distcc-config -p |
154 | fi |
155 | |
156 | echo |
157 | echo "The --allow options must be set with this version of distcc." |
158 | echo "Please change /etc/conf.d/distccd to your needs." |
159 | echo |
160 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |