# SliTaz package receipt. PACKAGE="distcc" VERSION="3.3.3" CATEGORY="development" SHORT_DESC="Distributed compilation for C and C++." MAINTAINER="erjo@slitaz.org" LICENSE="GPL2" WEB_SITE="https://distcc.github.io/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL" DEPENDS="lzo popt" BUILD_DEPENDS="autoconf automake gtk+-dev libbonoboui-dev libgnome-dev libgnome-keyring-dev libgnomecanvas-dev libgnomeui-dev lzo-dev popt-dev py3k-dev" current_version() { wget -O - ${WGET_URL%/down*} 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { export CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=shadow" ./autogen.sh && ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --with-gnome \ --with-gtk \ --without-libiberty \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr mkdir -p $fs/var/log/distccd mkdir -p $fs/etc/init.d cp -a $install/usr/bin $fs/usr cp -a $install/etc/distcc $fs/etc echo '127.0.0.1' >> $fs/etc/distcc/clients.allow install -o root -g root $stuff/distccd $fs/etc/init.d } post_install() { if ! grep -q nagios "$1/etc/passwd" then echo echo -n "Adding user/group nagios..." chroot "$1/" addgroup -S distcc chroot "$1/" adduser -S -D -H -G distcc distcc status fi # Fix permissions for files and directories chroot "$1/" chown -R distcc.distcc /var/log/distccd cat <