wok view distcc/receipt @ rev 13832

distcc: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 07 13:02:55 2013 +0100 (2013-01-07)
parents d40213305781
children 999e4277a8ac
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 DEPENDS="popt lzo"
9 BUILD_DEPENDS="popt-dev lzo-dev python-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://distcc.org"
12 WGET_URL="http://distcc.googlecode.com/files/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 export CFLAGS="-Wno-error=unused-but-set-variable"
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --sysconfdir=/etc \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make && make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr \
31 $fs/var/log/distccd \
32 $fs/var/run/distccd \
33 $fs/etc/init.d
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/etc/distcc $fs/etc
38 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
40 install -o root -g root $stuff/distccd $fs/etc/init.d
41 }
43 post_install()
44 {
45 if ! grep -q nagios $1/etc/passwd; then
46 echo -n "Adding user/group nagios..."
47 chroot $1/ addgroup -S distcc
48 chroot $1/ adduser -S -D -H -G distcc distcc
49 status
50 fi
52 # Fix perms for files and directories
53 chroot $1/ chown -R distcc.distcc /var/log/distccd \
54 /var/run/distccd
56 cat <<EOF
57 ----
58 Now you can:
59 * Just run '/etc/init.d/distccd start' to start daemon.
60 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time.
61 * Allow cliets in /etc/distcc/clients.allow
62 ----
64 EOF
65 }