wok annotate distcc/receipt @ rev 20645

updated hostapd (2.6 -> 2.7)
author Hans-G?nter Theisgen
date Fri Jan 11 16:39:21 2019 +0100 (13 months ago)
parents 9e01bc6321ea
children d261bdbf9116
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
pascal@20319 50 echo
erjo@9468 51 echo -n "Adding user/group nagios..."
pascal@18730 52 chroot "$1/" addgroup -S distcc
pascal@18730 53 chroot "$1/" adduser -S -D -H -G distcc distcc
erjo@9468 54 status
erjo@9468 55 fi
erjo@9468 56
erjo@9468 57 # Fix perms for files and directories
pascal@18730 58 chroot "$1/" chown -R distcc.distcc /var/log/distccd
erjo@9468 59
erjo@9468 60 cat <<EOF
erjo@9468 61 ----
erjo@9468 62 Now you can:
pascal@11694 63 * Just run '/etc/init.d/distccd start' to start daemon.
pascal@11694 64 * Add distccd to RUN_DAEMONS in /etc/rcS.conf to run distccd àat boot time.
erjo@9468 65 * Allow cliets in /etc/distcc/clients.allow
erjo@9468 66 ----
erjo@9468 67
erjo@9468 68 EOF
erjo@9468 69 }