wok annotate distcc/receipt @ rev 23778
updated xorg-xkbcomp (1.4.2 -> 1.4.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed May 20 17:26:45 2020 +0100 (2020-05-20) |
parents | d261bdbf9116 |
children | 5ea0ce1cecc0 |
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 |
erjo@4825 | 19 # Rules to configure and make the package. |
erjo@4825 | 20 compile_rules() |
erjo@4825 | 21 { |
Hans-G?nter@22647 | 22 export CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=shadow" |
Hans-G?nter@22647 | 23 |
Hans-G?nter@22647 | 24 ./autogen.sh && |
Hans-G?nter@22647 | 25 ./configure \ |
Hans-G?nter@22647 | 26 --prefix=/usr \ |
Hans-G?nter@22647 | 27 --sysconfdir=/etc \ |
Hans-G?nter@22647 | 28 --mandir=/usr/share/man \ |
Hans-G?nter@22647 | 29 --with-gnome \ |
Hans-G?nter@22647 | 30 --with-gtk \ |
Hans-G?nter@22647 | 31 --without-libiberty \ |
erjo@4825 | 32 $CONFIGURE_ARGS && |
Hans-G?nter@22647 | 33 make && |
Hans-G?nter@22647 | 34 make DESTDIR=$DESTDIR install |
erjo@4825 | 35 } |
erjo@4825 | 36 |
erjo@4825 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@4825 | 38 genpkg_rules() |
erjo@4825 | 39 { |
Hans-G?nter@22647 | 40 mkdir -p $fs/usr |
Hans-G?nter@22647 | 41 mkdir -p $fs/var/log/distccd |
Hans-G?nter@22647 | 42 mkdir -p $fs/etc/init.d |
Hans-G?nter@22647 | 43 |
Hans-G?nter@22647 | 44 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22647 | 45 cp -a $install/etc/distcc $fs/etc |
erjo@9468 | 46 |
Hans-G?nter@22647 | 47 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow |
erjo@9468 | 48 |
Hans-G?nter@22647 | 49 install -o root -g root $stuff/distccd $fs/etc/init.d |
erjo@4825 | 50 } |
erjo@4825 | 51 |
erjo@9468 | 52 post_install() |
erjo@9468 | 53 { |
Hans-G?nter@22647 | 54 if ! grep -q nagios "$1/etc/passwd" |
Hans-G?nter@22647 | 55 then |
pascal@20319 | 56 echo |
erjo@9468 | 57 echo -n "Adding user/group nagios..." |
pascal@18730 | 58 chroot "$1/" addgroup -S distcc |
pascal@18730 | 59 chroot "$1/" adduser -S -D -H -G distcc distcc |
erjo@9468 | 60 status |
erjo@9468 | 61 fi |
Hans-G?nter@22647 | 62 |
Hans-G?nter@22647 | 63 # Fix permissions for files and directories |
Hans-G?nter@22647 | 64 chroot "$1/" chown -R distcc.distcc /var/log/distccd |
Hans-G?nter@22647 | 65 |
erjo@9468 | 66 cat <<EOF |
erjo@9468 | 67 ---- |
erjo@9468 | 68 Now you can: |
pascal@11694 | 69 * Just run '/etc/init.d/distccd start' to start daemon. |
pascal@11694 | 70 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time. |
erjo@9468 | 71 * Allow cliets in /etc/distcc/clients.allow |
erjo@9468 | 72 ---- |
erjo@9468 | 73 |
erjo@9468 | 74 EOF |
erjo@9468 | 75 } |