wok-6.x annotate distcc/receipt @ rev 14203
linux-libre: fix check_modules.sh
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 14 10:38:19 2013 +0100 (2013-03-14) |
parents | 6d3b0683b624 |
children | 380ffe05937a |
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 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
erjo@4825 | 9 WEB_SITE="http://distcc.org" |
erjo@4825 | 10 WGET_URL="http://distcc.googlecode.com/files/$TARBALL" |
erjo@4825 | 11 |
pascal@13850 | 12 DEPENDS="popt lzo" |
pascal@13850 | 13 BUILD_DEPENDS="popt-dev lzo-dev python-dev gtk+-dev libgnome-dev \ |
pascal@13850 | 14 libgnomeui-dev libbonoboui-dev libgnomecanvas-dev libgnome-keyring-dev" |
pascal@13850 | 15 |
erjo@4825 | 16 # Rules to configure and make the package. |
erjo@4825 | 17 compile_rules() |
erjo@4825 | 18 { |
pascal@13832 | 19 export CFLAGS="-Wno-error=unused-but-set-variable" |
erjo@4825 | 20 cd $src |
erjo@4825 | 21 ./configure \ |
erjo@4825 | 22 --prefix=/usr \ |
erjo@4825 | 23 --sysconfdir=/etc \ |
erjo@4825 | 24 --mandir=/usr/share/man \ |
pascal@13850 | 25 --with-gnome \ |
pascal@13850 | 26 --with-gtk \ |
erjo@4825 | 27 $CONFIGURE_ARGS && |
pascal@13850 | 28 make && make DESTDIR=$DESTDIR install |
erjo@4825 | 29 } |
erjo@4825 | 30 |
erjo@4825 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@4825 | 32 genpkg_rules() |
erjo@4825 | 33 { |
erjo@9468 | 34 mkdir -p $fs/usr \ |
erjo@9468 | 35 $fs/var/log/distccd \ |
erjo@9468 | 36 $fs/var/run/distccd \ |
erjo@9468 | 37 $fs/etc/init.d |
erjo@9468 | 38 |
pascal@13850 | 39 cp -a $install/usr/bin $fs/usr |
pascal@13850 | 40 cp -a $install/etc/distcc $fs/etc |
erjo@9468 | 41 |
erjo@9468 | 42 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow |
erjo@9468 | 43 |
erjo@9468 | 44 install -o root -g root $stuff/distccd $fs/etc/init.d |
erjo@4825 | 45 } |
erjo@4825 | 46 |
erjo@9468 | 47 post_install() |
erjo@9468 | 48 { |
erjo@9468 | 49 if ! grep -q nagios $1/etc/passwd; then |
erjo@9468 | 50 echo -n "Adding user/group nagios..." |
erjo@9468 | 51 chroot $1/ addgroup -S distcc |
erjo@9468 | 52 chroot $1/ adduser -S -D -H -G distcc distcc |
erjo@9468 | 53 status |
erjo@9468 | 54 fi |
erjo@9468 | 55 |
erjo@9468 | 56 # Fix perms for files and directories |
erjo@9468 | 57 chroot $1/ chown -R distcc.distcc /var/log/distccd \ |
erjo@9468 | 58 /var/run/distccd |
erjo@9468 | 59 |
erjo@9468 | 60 cat <<EOF |
erjo@9468 | 61 ---- |
erjo@9468 | 62 Now you can: |
pascal@11694 | 63 * Just run '/etc/init.d/distccd start' to start daemon. |
pascal@11694 | 64 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time. |
erjo@9468 | 65 * Allow cliets in /etc/distcc/clients.allow |
erjo@9468 | 66 ---- |
erjo@9468 | 67 |
erjo@9468 | 68 EOF |
erjo@9468 | 69 } |