wok-current annotate distcc/receipt @ rev 11359

Up: polkit to 0.103.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Dec 06 18:46:25 2011 +0000 (2011-12-06)
parents 6e90579538d6
children 6cf4a602d2f2
rev   line source
erjo@4825 1 # SliTaz package receipt.
erjo@4825 2
erjo@4825 3 PACKAGE="distcc"
erjo@4825 4 VERSION="3.1"
erjo@4825 5 CATEGORY="development"
erjo@4825 6 SHORT_DESC="Distributed compilation for C/C++"
erjo@4825 7 MAINTAINER="erjo@slitaz.org"
erjo@4825 8 DEPENDS="popt lzo"
pascal@5000 9 BUILD_DEPENDS="popt-dev lzo-dev"
erjo@4825 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@4825 11 WEB_SITE="http://distcc.org"
erjo@4825 12 WGET_URL="http://distcc.googlecode.com/files/$TARBALL"
erjo@4825 13
erjo@4825 14 # Rules to configure and make the package.
erjo@4825 15 compile_rules()
erjo@4825 16 {
erjo@4825 17 cd $src
erjo@4825 18 ./configure \
erjo@4825 19 --prefix=/usr \
erjo@4825 20 --sysconfdir=/etc \
erjo@4825 21 --mandir=/usr/share/man \
erjo@4825 22 $CONFIGURE_ARGS &&
erjo@4825 23 make && make DESTDIR=$PWD/_pkg install
erjo@4825 24 }
erjo@4825 25
erjo@4825 26 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@4825 27 genpkg_rules()
erjo@4825 28 {
erjo@9468 29 mkdir -p $fs/usr \
erjo@9468 30 $fs/var/log/distccd \
erjo@9468 31 $fs/var/run/distccd \
erjo@9468 32 $fs/etc/init.d
erjo@9468 33
erjo@4825 34 cp -a $_pkg/usr/bin $fs/usr
erjo@9468 35 cp -a $_pkg/etc/distcc $fs/etc
erjo@9468 36
erjo@9468 37 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
erjo@9468 38
erjo@9468 39 install -o root -g root $stuff/distccd $fs/etc/init.d
erjo@4825 40 }
erjo@4825 41
erjo@9468 42 post_install()
erjo@9468 43 {
erjo@9468 44 if ! grep -q nagios $1/etc/passwd; then
erjo@9468 45 echo -n "Adding user/group nagios..."
erjo@9468 46 chroot $1/ addgroup -S distcc
erjo@9468 47 chroot $1/ adduser -S -D -H -G distcc distcc
erjo@9468 48 status
erjo@9468 49 fi
erjo@9468 50
erjo@9468 51 # Fix perms for files and directories
erjo@9468 52 chroot $1/ chown -R distcc.distcc /var/log/distccd \
erjo@9468 53 /var/run/distccd
erjo@9468 54
erjo@9468 55 cat <<EOF
erjo@9468 56 ----
erjo@9468 57 Now you can:
erjo@9468 58 * Just run '/etc/init.d/$PACKAGE start' to start daemon.
erjo@9468 59 * Add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf to run $PACKAGE àat boot time.
erjo@9468 60 * Allow cliets in /etc/distcc/clients.allow
erjo@9468 61 ----
erjo@9468 62
erjo@9468 63 EOF
erjo@9468 64 }