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