wok-next annotate distcc/receipt @ rev 21226

updated chocolate-doom (1.4.0 -> 3.0.0)
author Hans-G?nter Theisgen
date Tue Dec 03 16:21:36 2019 +0100 (2019-12-03)
parents f48456621a9d
children
rev   line source
pascal@20104 1 # SliTaz package receipt v2.
erjo@4825 2
erjo@4825 3 PACKAGE="distcc"
al@20519 4 VERSION="3.3"
erjo@4825 5 CATEGORY="development"
erjo@4825 6 SHORT_DESC="Distributed compilation for C/C++"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@20519 9 WEB_SITE="https://github.com/distcc/distcc"
erjo@4825 10
al@20519 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@20519 12 WGET_URL="https://github.com/distcc/distcc/releases/download/v$VERSION/$TARBALL"
al@20519 13
al@21017 14 BUILD_DEPENDS="popt-dev lzo-dev python-dev gtk2-dev libgnome-dev \
pascal@13850 15 libgnomeui-dev libbonoboui-dev libgnomecanvas-dev libgnome-keyring-dev"
al@21020 16 SPLIT="distccmon-gui"
pascal@13850 17
al@20519 18 compile_rules() {
pascal@20104 19 export CFLAGS="-Wno-error=unused-but-set-variable -Wno-unused-local-typedefs"
erjo@4825 20 ./configure \
pascal@13850 21 --with-gnome \
pascal@13850 22 --with-gtk \
erjo@4825 23 $CONFIGURE_ARGS &&
al@20534 24 make &&
al@21020 25 make DESTDIR=$install install
erjo@4825 26 }
erjo@4825 27
al@20519 28 genpkg_rules() {
pascal@20104 29 case $PACKAGE in
al@20519 30 distcc)
al@20534 31 mkdir -p \
al@20534 32 $fs/usr \
al@20519 33 $fs/var/log/distccd \
al@20519 34 $fs/etc/init.d
al@20519 35
al@20519 36 cp -a $install/usr/bin $fs/usr
al@20519 37 cp -a $install/etc/distcc $fs/etc
al@20519 38
al@20519 39 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
al@20519 40
al@20519 41 install -o root -g root $stuff/distccd $fs/etc/init.d
al@20519 42 DEPENDS="popt lzo"
al@20519 43 ;;
al@20519 44 distccmon-gui)
al@20519 45 CAT="development|GUI monitor"
al@21017 46 DEPENDS="gtk2 distcc"
al@20519 47 mkdir -p $fs/usr/bin \
al@20519 48 $fs/usr/share/applications \
al@20519 49 $fs/usr/share/pixmaps
al@20519 50 cp -a $install/usr/bin/distccmon-gnome \
al@20519 51 $fs/usr/bin/distccmon-gui
al@20519 52 cp -a $install/usr/share/distcc/distccmon-gnome-icon.png \
al@20519 53 $fs/usr/share/pixmaps/distccmon-gui.png
al@21020 54 cp $stuff/*.desktop $fs/usr/share/applications
al@20519 55 ;;
pascal@20104 56 esac
erjo@4825 57 }
erjo@4825 58
al@20519 59 post_install_distcc() {
al@20519 60 if ! grep -q distcc "$1/etc/passwd"; then
pascal@18730 61 chroot "$1/" addgroup -S distcc
pascal@18730 62 chroot "$1/" adduser -S -D -H -G distcc distcc
erjo@9468 63 fi
al@20519 64
erjo@9468 65 # Fix perms for files and directories
pascal@18730 66 chroot "$1/" chown -R distcc.distcc /var/log/distccd
al@20519 67
al@21020 68 [ -n "$quiet" ] || cat <<EOF
al@20519 69
al@20519 70 .---------------------------------------------------------.
al@20519 71 | Now you can: |
al@20519 72 | |
al@20519 73 | * Just run '/etc/init.d/distccd start' to start daemon. |
al@20519 74 | * Add distccd to RUN_DAEMONS in /etc/rcS.conf |
al@20519 75 | to run distccd at boot time. |
al@20519 76 | * Allow cliets in /etc/distcc/clients.allow |
al@20519 77 '---------------------------------------------------------'
erjo@9468 78
erjo@9468 79 EOF
erjo@9468 80 }