wok view distcc/receipt @ rev 14960
Up: firefox (17.0.8esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Aug 08 22:19:37 2013 +0200 (2013-08-08) |
parents | 6d3b0683b624 |
children | 380ffe05937a |
line source
1 # SliTaz package receipt.
3 PACKAGE="distcc"
4 VERSION="3.1"
5 CATEGORY="development"
6 SHORT_DESC="Distributed compilation for C/C++"
7 MAINTAINER="erjo@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://distcc.org"
10 WGET_URL="http://distcc.googlecode.com/files/$TARBALL"
12 DEPENDS="popt lzo"
13 BUILD_DEPENDS="popt-dev lzo-dev python-dev gtk+-dev libgnome-dev \
14 libgnomeui-dev libbonoboui-dev libgnomecanvas-dev libgnome-keyring-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export CFLAGS="-Wno-error=unused-but-set-variable"
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --mandir=/usr/share/man \
25 --with-gnome \
26 --with-gtk \
27 $CONFIGURE_ARGS &&
28 make && make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr \
35 $fs/var/log/distccd \
36 $fs/var/run/distccd \
37 $fs/etc/init.d
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/etc/distcc $fs/etc
42 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
44 install -o root -g root $stuff/distccd $fs/etc/init.d
45 }
47 post_install()
48 {
49 if ! grep -q nagios $1/etc/passwd; then
50 echo -n "Adding user/group nagios..."
51 chroot $1/ addgroup -S distcc
52 chroot $1/ adduser -S -D -H -G distcc distcc
53 status
54 fi
56 # Fix perms for files and directories
57 chroot $1/ chown -R distcc.distcc /var/log/distccd \
58 /var/run/distccd
60 cat <<EOF
61 ----
62 Now you can:
63 * Just run '/etc/init.d/distccd start' to start daemon.
64 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time.
65 * Allow cliets in /etc/distcc/clients.allow
66 ----
68 EOF
69 }