Annotation of /trunk/extras/distcc/distcc-2.18.3-r7.smage2
Parent Directory | Revision Log
Revision 2 -
(hide annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2414 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 11 months ago) by niro
File size: 2414 byte(s)
import repo
1 | niro | 2 | # $Header: /magellan-cvs/smage/distcc/distcc-2.18.3-r7.smage2,v 1.1 2008/04/20 21:48:37 niro Exp $ |
2 | |||
3 | PNAME="distcc" | ||
4 | PVER="2.18.3" | ||
5 | PBUILD="r7" | ||
6 | |||
7 | PCATEGORIE="dev-util" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Distributed compiler utilities." | ||
11 | HOMEPAGE="http://distcc.samba.org/" | ||
12 | |||
13 | DEPEND=">= virtual/glibc | ||
14 | >= dev-libs/popt-1.13" | ||
15 | |||
16 | SDEPEND=">= sys-apps/shadow-4 | ||
17 | >= dev-util/pkgconfig-0.23" | ||
18 | |||
19 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
21 | |||
22 | sminclude mbuild mtools | ||
23 | |||
24 | SRC_URI=( | ||
25 | http://distcc.samba.org/ftp/${PNAME}/${SRCFILE} | ||
26 | mirror://${PNAME}/${SRCFILE} | ||
27 | mirror://${PNAME}/distccd.confd-${PVER} | ||
28 | mirror://${PNAME}/distccd.rc-${PVER} | ||
29 | mirror://${PNAME}/distcc-config.sh | ||
30 | ) | ||
31 | |||
32 | UP2DATE="updatecmd ${HOMEPAGE}/download.html | lasttarball" | ||
33 | |||
34 | src_compile() | ||
35 | { | ||
36 | cd ${SRCDIR} | ||
37 | |||
38 | # by default without gtk, the gtk-gui is an extra package | ||
39 | mconfigure --without-gtk || die | ||
40 | mmake || die | ||
41 | } | ||
42 | |||
43 | src_install() | ||
44 | { | ||
45 | cd ${SRCDIR} | ||
46 | |||
47 | # needed directories | ||
48 | minstalldir /usr/$(mlibdir)/distcc/bin || die | ||
49 | |||
50 | make DESTDIR="${BINDIR%/}" install || die | ||
51 | |||
52 | # docs | ||
53 | minstalldocs survey.txt AUTHORS NEWS COPYING README ChangeLog TODO || die | ||
54 | |||
55 | # confs | ||
56 | minstallconf distccd.confd-${PVER} distccd || die | ||
57 | |||
58 | # init | ||
59 | minstallrc distccd.rc-${PVER} distccd || die | ||
60 | |||
61 | # config-tool | ||
62 | minstallexec -s distcc-config.sh /usr/bin/distcc-config || die | ||
63 | |||
64 | # fix config-tool on 64bit arches | ||
65 | if [[ $(mlibdir) != lib ]] | ||
66 | then | ||
67 | sed -i "s:/usr/lib:/usr/$(mlibdir):g" ${BINDIR}/usr/bin/distcc-config || die | ||
68 | fi | ||
69 | } | ||
70 | |||
71 | preinstall() | ||
72 | { | ||
73 | |||
74 | # stop daemon since script is being updated | ||
75 | if [[ -n $(pidof distccd) ]] && [[ -x /etc/init.d/distccd ]] && | ||
76 | [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] | ||
77 | then | ||
78 | /etc/init.d/distccd stop | ||
79 | fi | ||
80 | |||
81 | # add user distcc | ||
82 | ${MLIBDIR}/museradd -o "-u 240 -g daemon -s /bin/false -d /dev/null -c distccd" distcc | ||
83 | } | ||
84 | |||
85 | postinstall() | ||
86 | { | ||
87 | # install dirs and set right permissions | ||
88 | install -o distcc -g daemon -d ${MROOT}/var/run/distccd | ||
89 | chown -R distcc:daemon ${MROOT}/var/run/distccd | ||
90 | |||
91 | # installs compiler symlinks | ||
92 | if [ -x /usr/bin/distcc-config ] && \ | ||
93 | [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] | ||
94 | then | ||
95 | /usr/bin/distcc-config -i | ||
96 | else | ||
97 | echo "You *must* run distcc-config -i in the chroot of ${MROOT}" | ||
98 | fi | ||
99 | |||
100 | # show current settings of distcc | ||
101 | if [ -x /usr/bin/distcc-config ] | ||
102 | then | ||
103 | /usr/bin/distcc-config -p | ||
104 | fi | ||
105 | |||
106 | echo | ||
107 | echo "The --allow options must be set with this version of distcc." | ||
108 | echo "Please change /etc/conf.d/distccd to your needs." | ||
109 | echo | ||
110 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |