wok-next view distcc/receipt @ rev 20104

distcc: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 29 12:45:36 2017 +0100 (2017-10-29)
parents 9e01bc6321ea
children b19ddba309f9
line source
1 # SliTaz package receipt v2.
3 PACKAGE="distcc"
4 VERSION="3.1"
5 CATEGORY="development"
6 SHORT_DESC="Distributed compilation for C/C++"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://distcc.org"
11 WGET_URL="http://distcc.googlecode.com/files/$TARBALL"
13 DEPENDS="popt lzo"
14 BUILD_DEPENDS="popt-dev lzo-dev python-dev gtk+-dev libgnome-dev \
15 libgnomeui-dev libbonoboui-dev libgnomecanvas-dev libgnome-keyring-dev"
16 SPLIT="distcc distccmon-gui"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export CFLAGS="-Wno-error=unused-but-set-variable -Wno-unused-local-typedefs"
22 ./configure \
23 --prefix=/usr \
24 --sysconfdir=/etc \
25 --mandir=/usr/share/man \
26 --with-gnome \
27 --with-gtk \
28 $CONFIGURE_ARGS &&
29 make && make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 case $PACKAGE in
36 distcc)
37 mkdir -p $fs/usr \
38 $fs/var/log/distccd \
39 $fs/etc/init.d
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/etc/distcc $fs/etc
44 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
46 install -o root -g root $stuff/distccd $fs/etc/init.d
47 ;;
48 distccmon-gui)
49 CAT="development|Distcc monitor GUI."
50 DEPENDS="gtk+ distcc"
51 mkdir -p $fs/usr/bin \
52 $fs/usr/share/applications \
53 $fs/usr/share/pixmaps
54 cp -a $install/usr/bin/distccmon-gnome \
55 $fs/usr/bin/distccmon-gui
56 cp -a $install/usr/share/distcc/distccmon-gnome-icon.png \
57 $fs/usr/share/pixmaps/distccmon-gui.png
58 cp stuff/*.desktop $fs/usr/share/applications
59 ;;
60 esac
61 }
63 post_install_distcc()
64 {
65 if ! grep -q nagios "$1/etc/passwd"; then
66 echo -n "Adding user/group nagios..."
67 chroot "$1/" addgroup -S distcc
68 chroot "$1/" adduser -S -D -H -G distcc distcc
69 status
70 fi
72 # Fix perms for files and directories
73 chroot "$1/" chown -R distcc.distcc /var/log/distccd
75 cat <<EOF
76 ----
77 Now you can:
78 * Just run '/etc/init.d/distccd start' to start daemon.
79 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time.
80 * Allow cliets in /etc/distcc/clients.allow
81 ----
83 EOF
84 }