wok-next annotate distcc/receipt @ rev 20770
ghostscript: typo
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 17:44:23 2018 +0300 (2018-06-06) |
parents | b19ddba309f9 |
children | f48456621a9d |
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++" |
erjo@4825 | 7 MAINTAINER="erjo@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 |
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@20104 | 16 SPLIT="distcc 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@20534 | 25 make DESTDIR=$DESTDIR 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@20519 | 46 DEPENDS="gtk+ 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@20519 | 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 |
erjo@9468 | 68 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 } |