wok annotate distcc/receipt @ rev 19198

Add gucharmap3
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 09 00:17:44 2016 +0300 (2016-06-09)
parents 0d8a1a3edc72
children 970c5ec9a60a
rev   line source
erjo@4825 1 # SliTaz package receipt.
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@13850 16
erjo@4825 17 # Rules to configure and make the package.
erjo@4825 18 compile_rules()
erjo@4825 19 {
pascal@13832 20 export CFLAGS="-Wno-error=unused-but-set-variable"
erjo@4825 21 cd $src
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 {
erjo@9468 35 mkdir -p $fs/usr \
erjo@9468 36 $fs/var/log/distccd \
erjo@9468 37 $fs/etc/init.d
erjo@9468 38
pascal@13850 39 cp -a $install/usr/bin $fs/usr
pascal@13850 40 cp -a $install/etc/distcc $fs/etc
erjo@9468 41
erjo@9468 42 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
erjo@9468 43
erjo@9468 44 install -o root -g root $stuff/distccd $fs/etc/init.d
erjo@4825 45 }
erjo@4825 46
erjo@9468 47 post_install()
erjo@9468 48 {
pascal@18730 49 if ! grep -q nagios "$1/etc/passwd"; then
erjo@9468 50 echo -n "Adding user/group nagios..."
pascal@18730 51 chroot "$1/" addgroup -S distcc
pascal@18730 52 chroot "$1/" adduser -S -D -H -G distcc distcc
erjo@9468 53 status
erjo@9468 54 fi
erjo@9468 55
erjo@9468 56 # Fix perms for files and directories
pascal@18730 57 chroot "$1/" chown -R distcc.distcc /var/log/distccd
erjo@9468 58
erjo@9468 59 cat <<EOF
erjo@9468 60 ----
erjo@9468 61 Now you can:
pascal@11694 62 * Just run '/etc/init.d/distccd start' to start daemon.
pascal@11694 63 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time.
erjo@9468 64 * Allow cliets in /etc/distcc/clients.allow
erjo@9468 65 ----
erjo@9468 66
erjo@9468 67 EOF
erjo@9468 68 }