wok view distcc/receipt @ rev 10024
glibc: dont build with -Os and better use default CFLAGS also need --build and --host
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 19 18:19:46 2011 +0200 (2011-05-19) |
parents | 6e90579538d6 |
children | 6cf4a602d2f2 |
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"
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 cd $src
18 ./configure \
19 --prefix=/usr \
20 --sysconfdir=/etc \
21 --mandir=/usr/share/man \
22 $CONFIGURE_ARGS &&
23 make && make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr \
30 $fs/var/log/distccd \
31 $fs/var/run/distccd \
32 $fs/etc/init.d
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/etc/distcc $fs/etc
37 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
39 install -o root -g root $stuff/distccd $fs/etc/init.d
40 }
42 post_install()
43 {
44 if ! grep -q nagios $1/etc/passwd; then
45 echo -n "Adding user/group nagios..."
46 chroot $1/ addgroup -S distcc
47 chroot $1/ adduser -S -D -H -G distcc distcc
48 status
49 fi
51 # Fix perms for files and directories
52 chroot $1/ chown -R distcc.distcc /var/log/distccd \
53 /var/run/distccd
55 cat <<EOF
56 ----
57 Now you can:
58 * Just run '/etc/init.d/$PACKAGE start' to start daemon.
59 * Add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf to run $PACKAGE àat boot time.
60 * Allow cliets in /etc/distcc/clients.allow
61 ----
63 EOF
64 }