wok diff distcc/receipt @ rev 22647

updated distcc and distccmon-gui (3.1 -> 3.3.3)
author Hans-G?nter Theisgen
date Tue Jan 14 10:56:35 2020 +0100 (2020-01-14)
parents 970c5ec9a60a
children 8e41c082cb01
line diff
     1.1 --- a/distcc/receipt	Sun May 20 13:28:18 2018 +0200
     1.2 +++ b/distcc/receipt	Tue Jan 14 10:56:35 2020 +0100
     1.3 @@ -1,62 +1,68 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="distcc"
     1.7 -VERSION="3.1"
     1.8 +VERSION="3.3.3"
     1.9  CATEGORY="development"
    1.10 -SHORT_DESC="Distributed compilation for C/C++"
    1.11 +SHORT_DESC="Distributed compilation for C and C++."
    1.12  MAINTAINER="erjo@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15 -WEB_SITE="http://distcc.org"
    1.16 -WGET_URL="http://distcc.googlecode.com/files/$TARBALL"
    1.17 +WEB_SITE="https://distcc.github.io/"
    1.18  
    1.19 -DEPENDS="popt lzo"
    1.20 -BUILD_DEPENDS="popt-dev lzo-dev python-dev gtk+-dev libgnome-dev \
    1.21 -libgnomeui-dev libbonoboui-dev libgnomecanvas-dev libgnome-keyring-dev"
    1.22 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.23 +WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releasses/download/v$VERSION/$TARBALL"
    1.24 +
    1.25 +DEPENDS="lzo popt"
    1.26 +BUILD_DEPENDS="autoconf automake gtk+-dev libbonoboui-dev libgnome-dev 
    1.27 +	libgnome-keyring-dev libgnomecanvas-dev libgnomeui-dev lzo-dev 
    1.28 +	popt-dev py3k-dev"
    1.29  
    1.30  # Rules to configure and make the package.
    1.31  compile_rules()
    1.32  {
    1.33 -	export CFLAGS="-Wno-error=unused-but-set-variable"
    1.34 -	cd $src
    1.35 -	./configure \
    1.36 -		--prefix=/usr \
    1.37 -		--sysconfdir=/etc \
    1.38 -		--mandir=/usr/share/man \
    1.39 -		--with-gnome \
    1.40 -		--with-gtk \
    1.41 +	export CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=shadow"
    1.42 +
    1.43 +	./autogen.sh &&
    1.44 +	./configure			\
    1.45 +		--prefix=/usr		\
    1.46 +		--sysconfdir=/etc	\
    1.47 +		--mandir=/usr/share/man	\
    1.48 +		--with-gnome		\
    1.49 +		--with-gtk		\
    1.50 +		--without-libiberty	\
    1.51  		$CONFIGURE_ARGS &&
    1.52 -	make && make DESTDIR=$DESTDIR install
    1.53 +	make &&
    1.54 +	make DESTDIR=$DESTDIR install
    1.55  }
    1.56  
    1.57  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.58  genpkg_rules()
    1.59  {
    1.60 -	mkdir -p $fs/usr \
    1.61 -		$fs/var/log/distccd \
    1.62 -		$fs/etc/init.d
    1.63 -		
    1.64 -	cp -a $install/usr/bin $fs/usr
    1.65 -	cp -a $install/etc/distcc $fs/etc
    1.66 +	mkdir -p $fs/usr
    1.67 +	mkdir -p $fs/var/log/distccd
    1.68 +	mkdir -p $fs/etc/init.d
    1.69 +
    1.70 +	cp -a $install/usr/bin			$fs/usr
    1.71 +	cp -a $install/etc/distcc		$fs/etc
    1.72  	
    1.73 -	echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
    1.74 +	echo '127.0.0.1' >>			$fs/etc/distcc/clients.allow
    1.75  	
    1.76 -	install -o root -g root $stuff/distccd $fs/etc/init.d
    1.77 +	install -o root -g root $stuff/distccd	$fs/etc/init.d
    1.78  }
    1.79  
    1.80  post_install()
    1.81  {
    1.82 -	if ! grep -q nagios "$1/etc/passwd"; then
    1.83 +	if ! grep -q nagios "$1/etc/passwd"
    1.84 +	  then
    1.85  		echo
    1.86  		echo -n "Adding user/group nagios..."
    1.87  		chroot "$1/" addgroup -S distcc
    1.88  		chroot "$1/" adduser -S -D -H -G distcc distcc
    1.89  		status
    1.90  	fi
    1.91 -	
    1.92 -	# Fix perms for files and directories
    1.93 -	chroot "$1/" chown -R distcc.distcc /var/log/distccd
    1.94 -	  
    1.95 +
    1.96 +	# Fix permissions for files and directories
    1.97 +	chroot "$1/" chown -R distcc.distcc	/var/log/distccd
    1.98 +
    1.99  	cat <<EOF
   1.100  ----
   1.101  Now you can: