wok annotate distcc/receipt @ rev 16059

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