wok-current view distcc/receipt @ rev 11030

Up: pyopenssl to 0.13.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Oct 16 07:13:13 2011 +0000 (2011-10-16)
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 }