wok view distcc/receipt @ rev 23950

syslinux/taziso: fix tazbootkey
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 20 21:21:51 2020 +0000 (2020-09-20)
parents d261bdbf9116
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="distcc"
4 VERSION="3.3.3"
5 CATEGORY="development"
6 SHORT_DESC="Distributed compilation for C and C++."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://distcc.github.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 DEPENDS="lzo popt"
15 BUILD_DEPENDS="autoconf automake gtk+-dev libbonoboui-dev libgnome-dev
16 libgnome-keyring-dev libgnomecanvas-dev libgnomeui-dev lzo-dev
17 popt-dev py3k-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 export CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=shadow"
24 ./autogen.sh &&
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --mandir=/usr/share/man \
29 --with-gnome \
30 --with-gtk \
31 --without-libiberty \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 mkdir -p $fs/var/log/distccd
42 mkdir -p $fs/etc/init.d
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/etc/distcc $fs/etc
47 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
49 install -o root -g root $stuff/distccd $fs/etc/init.d
50 }
52 post_install()
53 {
54 if ! grep -q nagios "$1/etc/passwd"
55 then
56 echo
57 echo -n "Adding user/group nagios..."
58 chroot "$1/" addgroup -S distcc
59 chroot "$1/" adduser -S -D -H -G distcc distcc
60 status
61 fi
63 # Fix permissions for files and directories
64 chroot "$1/" chown -R distcc.distcc /var/log/distccd
66 cat <<EOF
67 ----
68 Now you can:
69 * Just run '/etc/init.d/distccd start' to start daemon.
70 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time.
71 * Allow cliets in /etc/distcc/clients.allow
72 ----
74 EOF
75 }