wok-6.x view distcc/receipt @ rev 15627
libxml2: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 08 18:53:33 2013 +0000 (2013-12-08) |
parents | 999e4277a8ac |
children | 0d8a1a3edc72 |
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/var/run/distccd \
38 $fs/etc/init.d
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/etc/distcc $fs/etc
43 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
45 install -o root -g root $stuff/distccd $fs/etc/init.d
46 }
48 post_install()
49 {
50 if ! grep -q nagios $1/etc/passwd; then
51 echo -n "Adding user/group nagios..."
52 chroot $1/ addgroup -S distcc
53 chroot $1/ adduser -S -D -H -G distcc distcc
54 status
55 fi
57 # Fix perms for files and directories
58 chroot $1/ chown -R distcc.distcc /var/log/distccd \
59 /var/run/distccd
61 cat <<EOF
62 ----
63 Now you can:
64 * Just run '/etc/init.d/distccd start' to start daemon.
65 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time.
66 * Allow cliets in /etc/distcc/clients.allow
67 ----
69 EOF
70 }