wok annotate distcc/receipt @ rev 25632
Up gtklife (5.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 23 14:06:29 2023 +0000 (11 months ago) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
erjo@4825 | 1 # SliTaz package receipt. |
erjo@4825 | 2 |
erjo@4825 | 3 PACKAGE="distcc" |
Hans-G?nter@22647 | 4 VERSION="3.3.3" |
erjo@4825 | 5 CATEGORY="development" |
Hans-G?nter@22647 | 6 SHORT_DESC="Distributed compilation for C and C++." |
erjo@4825 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
Hans-G?nter@22647 | 9 WEB_SITE="https://distcc.github.io/" |
erjo@4825 | 10 |
Hans-G?nter@22647 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@22648 | 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL" |
Hans-G?nter@22647 | 13 |
Hans-G?nter@22647 | 14 DEPENDS="lzo popt" |
Hans-G?nter@22647 | 15 BUILD_DEPENDS="autoconf automake gtk+-dev libbonoboui-dev libgnome-dev |
Hans-G?nter@22647 | 16 libgnome-keyring-dev libgnomecanvas-dev libgnomeui-dev lzo-dev |
Hans-G?nter@22647 | 17 popt-dev py3k-dev" |
pascal@13850 | 18 |
pascal@25598 | 19 # What is the latest version available today? |
pascal@24055 | 20 current_version() |
pascal@24055 | 21 { |
pascal@24055 | 22 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@25598 | 23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 24 } |
pascal@24055 | 25 |
erjo@4825 | 26 # Rules to configure and make the package. |
erjo@4825 | 27 compile_rules() |
erjo@4825 | 28 { |
Hans-G?nter@22647 | 29 export CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=shadow" |
Hans-G?nter@22647 | 30 |
Hans-G?nter@22647 | 31 ./autogen.sh && |
Hans-G?nter@22647 | 32 ./configure \ |
Hans-G?nter@22647 | 33 --prefix=/usr \ |
Hans-G?nter@22647 | 34 --sysconfdir=/etc \ |
Hans-G?nter@22647 | 35 --mandir=/usr/share/man \ |
Hans-G?nter@22647 | 36 --with-gnome \ |
Hans-G?nter@22647 | 37 --with-gtk \ |
Hans-G?nter@22647 | 38 --without-libiberty \ |
erjo@4825 | 39 $CONFIGURE_ARGS && |
Hans-G?nter@22647 | 40 make && |
Hans-G?nter@22647 | 41 make DESTDIR=$DESTDIR install |
erjo@4825 | 42 } |
erjo@4825 | 43 |
erjo@4825 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@4825 | 45 genpkg_rules() |
erjo@4825 | 46 { |
Hans-G?nter@22647 | 47 mkdir -p $fs/usr |
Hans-G?nter@22647 | 48 mkdir -p $fs/var/log/distccd |
Hans-G?nter@22647 | 49 mkdir -p $fs/etc/init.d |
Hans-G?nter@22647 | 50 |
Hans-G?nter@22647 | 51 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22647 | 52 cp -a $install/etc/distcc $fs/etc |
erjo@9468 | 53 |
Hans-G?nter@22647 | 54 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow |
erjo@9468 | 55 |
Hans-G?nter@22647 | 56 install -o root -g root $stuff/distccd $fs/etc/init.d |
erjo@4825 | 57 } |
erjo@4825 | 58 |
erjo@9468 | 59 post_install() |
erjo@9468 | 60 { |
Hans-G?nter@22647 | 61 if ! grep -q nagios "$1/etc/passwd" |
Hans-G?nter@22647 | 62 then |
pascal@20319 | 63 echo |
erjo@9468 | 64 echo -n "Adding user/group nagios..." |
pascal@18730 | 65 chroot "$1/" addgroup -S distcc |
pascal@18730 | 66 chroot "$1/" adduser -S -D -H -G distcc distcc |
erjo@9468 | 67 status |
erjo@9468 | 68 fi |
Hans-G?nter@22647 | 69 |
Hans-G?nter@22647 | 70 # Fix permissions for files and directories |
Hans-G?nter@22647 | 71 chroot "$1/" chown -R distcc.distcc /var/log/distccd |
Hans-G?nter@22647 | 72 |
erjo@9468 | 73 cat <<EOF |
erjo@9468 | 74 ---- |
erjo@9468 | 75 Now you can: |
pascal@11694 | 76 * Just run '/etc/init.d/distccd start' to start daemon. |
pascal@11694 | 77 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time. |
erjo@9468 | 78 * Allow cliets in /etc/distcc/clients.allow |
erjo@9468 | 79 ---- |
erjo@9468 | 80 |
erjo@9468 | 81 EOF |
erjo@9468 | 82 } |