wok view distcc/receipt @ rev 25598

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 12:03:07 2023 +0000 (9 months ago)
parents 5ea0ce1cecc0
children
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 export CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=shadow"
31 ./autogen.sh &&
32 ./configure \
33 --prefix=/usr \
34 --sysconfdir=/etc \
35 --mandir=/usr/share/man \
36 --with-gnome \
37 --with-gtk \
38 --without-libiberty \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 mkdir -p $fs/var/log/distccd
49 mkdir -p $fs/etc/init.d
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/etc/distcc $fs/etc
54 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
56 install -o root -g root $stuff/distccd $fs/etc/init.d
57 }
59 post_install()
60 {
61 if ! grep -q nagios "$1/etc/passwd"
62 then
63 echo
64 echo -n "Adding user/group nagios..."
65 chroot "$1/" addgroup -S distcc
66 chroot "$1/" adduser -S -D -H -G distcc distcc
67 status
68 fi
70 # Fix permissions for files and directories
71 chroot "$1/" chown -R distcc.distcc /var/log/distccd
73 cat <<EOF
74 ----
75 Now you can:
76 * Just run '/etc/init.d/distccd start' to start daemon.
77 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time.
78 * Allow cliets in /etc/distcc/clients.allow
79 ----
81 EOF
82 }