wok view distcc/receipt @ rev 17240
postfix: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 18 18:59:30 2014 +0200 (2014-10-18) |
parents | 380ffe05937a |
children | 9e01bc6321ea |
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 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"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export CFLAGS="-Wno-error=unused-but-set-variable"
21 cd $src
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 mkdir -p $fs/usr \
36 $fs/var/log/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
59 cat <<EOF
60 ----
61 Now you can:
62 * Just run '/etc/init.d/distccd start' to start daemon.
63 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time.
64 * Allow cliets in /etc/distcc/clients.allow
65 ----
67 EOF
68 }