wok-next annotate distcc/receipt @ rev 20405

Follow BLFS Chapter 9 "General Libraries": up apr, apr-util, aspell, autoconf213 (for js), dbus-glib, enchant, exempi, fftw, glib, glibmm, gmime, gobject-introspection, gsl, js, libboost.

js is 39.7MB / 87.6MB now. Looks like it's proper time to kick off polkit (Hi, Xander! You was right.)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Dec 07 17:39:40 2017 +0200 (2017-12-07)
parents 9e01bc6321ea
children b19ddba309f9
rev   line source
pascal@20104 1 # SliTaz package receipt v2.
erjo@4825 2
erjo@4825 3 PACKAGE="distcc"
erjo@4825 4 VERSION="3.1"
erjo@4825 5 CATEGORY="development"
erjo@4825 6 SHORT_DESC="Distributed compilation for C/C++"
erjo@4825 7 MAINTAINER="erjo@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
erjo@4825 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@4825 10 WEB_SITE="http://distcc.org"
erjo@4825 11 WGET_URL="http://distcc.googlecode.com/files/$TARBALL"
erjo@4825 12
pascal@13850 13 DEPENDS="popt lzo"
pascal@13850 14 BUILD_DEPENDS="popt-dev lzo-dev python-dev gtk+-dev libgnome-dev \
pascal@13850 15 libgnomeui-dev libbonoboui-dev libgnomecanvas-dev libgnome-keyring-dev"
pascal@20104 16 SPLIT="distcc distccmon-gui"
pascal@13850 17
erjo@4825 18 # Rules to configure and make the package.
erjo@4825 19 compile_rules()
erjo@4825 20 {
pascal@20104 21 export CFLAGS="-Wno-error=unused-but-set-variable -Wno-unused-local-typedefs"
erjo@4825 22 ./configure \
erjo@4825 23 --prefix=/usr \
erjo@4825 24 --sysconfdir=/etc \
erjo@4825 25 --mandir=/usr/share/man \
pascal@13850 26 --with-gnome \
pascal@13850 27 --with-gtk \
erjo@4825 28 $CONFIGURE_ARGS &&
pascal@13850 29 make && make DESTDIR=$DESTDIR install
erjo@4825 30 }
erjo@4825 31
erjo@4825 32 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@4825 33 genpkg_rules()
erjo@4825 34 {
pascal@20104 35 case $PACKAGE in
pascal@20104 36 distcc)
pascal@20104 37 mkdir -p $fs/usr \
pascal@20104 38 $fs/var/log/distccd \
pascal@20104 39 $fs/etc/init.d
erjo@9468 40
pascal@20104 41 cp -a $install/usr/bin $fs/usr
pascal@20104 42 cp -a $install/etc/distcc $fs/etc
erjo@9468 43
pascal@20104 44 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
erjo@9468 45
pascal@20104 46 install -o root -g root $stuff/distccd $fs/etc/init.d
pascal@20104 47 ;;
pascal@20104 48 distccmon-gui)
pascal@20104 49 CAT="development|Distcc monitor GUI."
pascal@20104 50 DEPENDS="gtk+ distcc"
pascal@20104 51 mkdir -p $fs/usr/bin \
pascal@20104 52 $fs/usr/share/applications \
pascal@20104 53 $fs/usr/share/pixmaps
pascal@20104 54 cp -a $install/usr/bin/distccmon-gnome \
pascal@20104 55 $fs/usr/bin/distccmon-gui
pascal@20104 56 cp -a $install/usr/share/distcc/distccmon-gnome-icon.png \
pascal@20104 57 $fs/usr/share/pixmaps/distccmon-gui.png
pascal@20104 58 cp stuff/*.desktop $fs/usr/share/applications
pascal@20104 59 ;;
pascal@20104 60 esac
erjo@4825 61 }
erjo@4825 62
pascal@20104 63 post_install_distcc()
erjo@9468 64 {
pascal@18730 65 if ! grep -q nagios "$1/etc/passwd"; then
erjo@9468 66 echo -n "Adding user/group nagios..."
pascal@18730 67 chroot "$1/" addgroup -S distcc
pascal@18730 68 chroot "$1/" adduser -S -D -H -G distcc distcc
erjo@9468 69 status
erjo@9468 70 fi
erjo@9468 71
erjo@9468 72 # Fix perms for files and directories
pascal@18730 73 chroot "$1/" chown -R distcc.distcc /var/log/distccd
erjo@9468 74
erjo@9468 75 cat <<EOF
erjo@9468 76 ----
erjo@9468 77 Now you can:
pascal@11694 78 * Just run '/etc/init.d/distccd start' to start daemon.
pascal@11694 79 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time.
erjo@9468 80 * Allow cliets in /etc/distcc/clients.allow
erjo@9468 81 ----
erjo@9468 82
erjo@9468 83 EOF
erjo@9468 84 }