wok-next diff distcc/receipt @ rev 20488

palemoon: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 12 11:00:54 2018 +0100 (2018-03-12)
parents 9e01bc6321ea
children b19ddba309f9
line diff
     1.1 --- a/distcc/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/distcc/receipt	Mon Mar 12 11:00:54 2018 +0100
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="distcc"
     1.8  VERSION="3.1"
     1.9 @@ -13,12 +13,12 @@
    1.10  DEPENDS="popt lzo"
    1.11  BUILD_DEPENDS="popt-dev lzo-dev python-dev gtk+-dev libgnome-dev \
    1.12  libgnomeui-dev libbonoboui-dev libgnomecanvas-dev libgnome-keyring-dev"
    1.13 +SPLIT="distcc distccmon-gui"
    1.14  
    1.15  # Rules to configure and make the package.
    1.16  compile_rules()
    1.17  {
    1.18 -	export CFLAGS="-Wno-error=unused-but-set-variable"
    1.19 -	cd $src
    1.20 +	export CFLAGS="-Wno-error=unused-but-set-variable -Wno-unused-local-typedefs"
    1.21  	./configure \
    1.22  		--prefix=/usr \
    1.23  		--sysconfdir=/etc \
    1.24 @@ -32,19 +32,35 @@
    1.25  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.26  genpkg_rules()
    1.27  {
    1.28 -	mkdir -p $fs/usr \
    1.29 -		$fs/var/log/distccd \
    1.30 -		$fs/etc/init.d
    1.31 +	case $PACKAGE in
    1.32 +	distcc)
    1.33 +		mkdir -p $fs/usr \
    1.34 +			$fs/var/log/distccd \
    1.35 +			$fs/etc/init.d
    1.36  		
    1.37 -	cp -a $install/usr/bin $fs/usr
    1.38 -	cp -a $install/etc/distcc $fs/etc
    1.39 +		cp -a $install/usr/bin $fs/usr
    1.40 +		cp -a $install/etc/distcc $fs/etc
    1.41  	
    1.42 -	echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
    1.43 +		echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
    1.44  	
    1.45 -	install -o root -g root $stuff/distccd $fs/etc/init.d
    1.46 +		install -o root -g root $stuff/distccd $fs/etc/init.d
    1.47 +		;;
    1.48 +	distccmon-gui)
    1.49 +		CAT="development|Distcc monitor GUI."
    1.50 +		DEPENDS="gtk+ distcc"
    1.51 +		mkdir -p $fs/usr/bin \
    1.52 +			$fs/usr/share/applications \
    1.53 +			$fs/usr/share/pixmaps
    1.54 +		cp -a $install/usr/bin/distccmon-gnome \
    1.55 +			$fs/usr/bin/distccmon-gui
    1.56 +		cp -a $install/usr/share/distcc/distccmon-gnome-icon.png \
    1.57 +			$fs/usr/share/pixmaps/distccmon-gui.png
    1.58 +		cp stuff/*.desktop $fs/usr/share/applications
    1.59 +		;;
    1.60 +	esac
    1.61  }
    1.62  
    1.63 -post_install()
    1.64 +post_install_distcc()
    1.65  {
    1.66  	if ! grep -q nagios "$1/etc/passwd"; then
    1.67  		echo -n "Adding user/group nagios..."