wok-current view distcc/receipt @ rev 20982

updated goaccess (0.6.1 -> 1.3)
author Hans-G?nter Theisgen
date Wed Mar 06 17:22:58 2019 +0100 (2019-03-06)
parents 9e01bc6321ea
children d261bdbf9116
line source
1 # SliTaz package receipt.
3 PACKAGE="distcc"
4 VERSION="3.1"
5 CATEGORY="development"
6 SHORT_DESC="Distributed compilation for C/C++"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://distcc.org"
11 WGET_URL="http://distcc.googlecode.com/files/$TARBALL"
13 DEPENDS="popt lzo"
14 BUILD_DEPENDS="popt-dev lzo-dev python-dev gtk+-dev libgnome-dev \
15 libgnomeui-dev libbonoboui-dev libgnomecanvas-dev libgnome-keyring-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export CFLAGS="-Wno-error=unused-but-set-variable"
21 cd $src
22 ./configure \
23 --prefix=/usr \
24 --sysconfdir=/etc \
25 --mandir=/usr/share/man \
26 --with-gnome \
27 --with-gtk \
28 $CONFIGURE_ARGS &&
29 make && make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr \
36 $fs/var/log/distccd \
37 $fs/etc/init.d
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/etc/distcc $fs/etc
42 echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
44 install -o root -g root $stuff/distccd $fs/etc/init.d
45 }
47 post_install()
48 {
49 if ! grep -q nagios "$1/etc/passwd"; then
50 echo
51 echo -n "Adding user/group nagios..."
52 chroot "$1/" addgroup -S distcc
53 chroot "$1/" adduser -S -D -H -G distcc distcc
54 status
55 fi
57 # Fix perms for files and directories
58 chroot "$1/" chown -R distcc.distcc /var/log/distccd
60 cat <<EOF
61 ----
62 Now you can:
63 * Just run '/etc/init.d/distccd start' to start daemon.
64 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time.
65 * Allow cliets in /etc/distcc/clients.allow
66 ----
68 EOF
69 }