Contents of /trunk/extras/distcc/distcc-3.1-r3.smage2
Parent Directory | Revision Log
Revision 4263 -
(show annotations)
(download)
Tue Dec 1 14:01:17 2009 UTC (14 years, 9 months ago) by niro
File size: 3457 byte(s)
Tue Dec 1 14:01:17 2009 UTC (14 years, 9 months ago) by niro
File size: 3457 byte(s)
-fixed splitinfo
1 | # $Id$ |
2 | |
3 | PNAME="distcc" |
4 | PVER="3.1" |
5 | PBUILD="r3" |
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 | preinstall() |
50 | { |
51 | # stop daemon since script is being updated |
52 | if [[ -n $(pidof distccd) ]] && [[ -x /etc/init.d/distccd ]] && |
53 | [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
54 | then |
55 | /etc/init.d/distccd stop |
56 | fi |
57 | |
58 | # add user distcc |
59 | ${MLIBDIR}/museradd -o "-u 240 -g daemon -s /bin/false -d /dev/null -c distccd" distcc |
60 | } |
61 | |
62 | postinstall() |
63 | { |
64 | # install dirs and set right permissions |
65 | install -o distcc -g daemon -d ${MROOT}/var/run/distccd |
66 | chown -R distcc:daemon ${MROOT}/var/run/distccd |
67 | |
68 | # installs compiler symlinks |
69 | if [ -x /usr/bin/distcc-config ] && \ |
70 | [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
71 | then |
72 | /usr/bin/distcc-config -i |
73 | else |
74 | echo "You *must* run distcc-config -i in the chroot of ${MROOT}" |
75 | fi |
76 | |
77 | # show current settings of distcc |
78 | if [ -x /usr/bin/distcc-config ] |
79 | then |
80 | /usr/bin/distcc-config -p |
81 | fi |
82 | |
83 | echo |
84 | echo "The --allow options must be set with this version of distcc." |
85 | echo "Please change /etc/conf.d/distccd to your needs." |
86 | echo |
87 | } |
88 | } |
89 | |
90 | split_info_distccmon-gnome() |
91 | { |
92 | DESCRIPTION="DistCC GTK2 Client." |
93 | DEPEND="== dev-util/distcc-${PVER} |
94 | >= dev-libs/popt-1.15 |
95 | >= x11-libs/gtk2+-2.18 |
96 | >= x11-libs/pango-1.26" |
97 | } |
98 | |
99 | src_compile() |
100 | { |
101 | cd ${SRCDIR} |
102 | |
103 | mconfigure \ |
104 | --with-docdir=/usr/share/doc/${PNAME}-${PVER} \ |
105 | --with-gtk \ |
106 | --with-avahi \ |
107 | --enable-rfc2553 \ |
108 | --disable-Werror \ |
109 | || die |
110 | |
111 | mmake || die |
112 | } |
113 | |
114 | src_install_distcc() |
115 | { |
116 | cd ${SRCDIR} |
117 | |
118 | mmake -j1 DESTDIR=${BINDIR} install || die |
119 | |
120 | # docs |
121 | minstalldocs survey.txt AUTHORS NEWS COPYING README ChangeLog TODO || die |
122 | |
123 | # confs |
124 | minstallconf distccd.confd-2.18.3 distccd || die |
125 | |
126 | cat >> "${BINDIR}/etc/conf.d/distccd" <<-EOF |
127 | |
128 | # Enable zeroconf support in distccd |
129 | DISTCCD_OPTS="\${DISTCCD_OPTS} --zeroconf" |
130 | EOF |
131 | |
132 | # init |
133 | minstallrc distccd.rc-2.18.3 distccd || die |
134 | |
135 | # config-tool |
136 | minstallexec -s distcc-config.sh-${CONF_REV} /usr/bin/distcc-config || die |
137 | |
138 | # keep this dir to satisfy distcc-config |
139 | mkeepdir /usr/$(mlibdir)/distcc/bin || die |
140 | |
141 | # fix config-tool on 64bit arches |
142 | if [[ $(mlibdir) != lib ]] |
143 | then |
144 | sed -i "s:/usr/lib:/usr/$(mlibdir):g" ${BINDIR}/usr/bin/distcc-config || die |
145 | fi |
146 | |
147 | # remove gtk-client (split package!) |
148 | rm ${BINDIR}/usr/bin/distccmon-gnome || die |
149 | rm -r ${BINDIR}/usr/share/distcc || die |
150 | } |
151 | |
152 | src_install_distccmon-gnome() |
153 | { |
154 | cd ${SRCDIR} |
155 | mmake -j1 DESTDIR=${BINDIR} install || die |
156 | |
157 | # remove all other stuff but the gtk2 client |
158 | zapmost ${BINDIR} usr/bin/distccmon-gnome usr/share/distcc || die |
159 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |