wok view distcc/receipt @ rev 25306

sip-4.19.25: last version for Python 2
author Hans-G?nter Theisgen
date Wed Jul 20 10:39:41 2022 +0100 (2022-07-20)
parents 8e41c082cb01
children fe1b5660fdd1
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 current_version()
20 {
21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=shadow"
30 ./autogen.sh &&
31 ./configure \
32 --prefix=/usr \
33 --sysconfdir=/etc \
34 --mandir=/usr/share/man \
35 --with-gnome \
36 --with-gtk \
37 --without-libiberty \
38 $CONFIGURE_ARGS &&
39 make &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr
47 mkdir -p $fs/var/log/distccd
48 mkdir -p $fs/etc/init.d
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/etc/distcc $fs/etc
53 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
55 install -o root -g root $stuff/distccd $fs/etc/init.d
56 }
58 post_install()
59 {
60 if ! grep -q nagios "$1/etc/passwd"
61 then
62 echo
63 echo -n "Adding user/group nagios..."
64 chroot "$1/" addgroup -S distcc
65 chroot "$1/" adduser -S -D -H -G distcc distcc
66 status
67 fi
69 # Fix permissions for files and directories
70 chroot "$1/" chown -R distcc.distcc /var/log/distccd
72 cat <<EOF
73 ----
74 Now you can:
75 * Just run '/etc/init.d/distccd start' to start daemon.
76 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time.
77 * Allow cliets in /etc/distcc/clients.allow
78 ----
80 EOF
81 }