wok-current diff distcc/receipt @ rev 11359

Up: polkit to 0.103.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Dec 06 18:46:25 2011 +0000 (2011-12-06)
parents 6e90579538d6
children 6cf4a602d2f2
line diff
     1.1 --- a/distcc/receipt	Sun Feb 28 14:11:33 2010 +0100
     1.2 +++ b/distcc/receipt	Tue Dec 06 18:46:25 2011 +0000
     1.3 @@ -26,7 +26,39 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -	mkdir -p $fs/usr
     1.8 +	mkdir -p $fs/usr \
     1.9 +		$fs/var/log/distccd \
    1.10 +		$fs/var/run/distccd \
    1.11 +		$fs/etc/init.d
    1.12 +		
    1.13  	cp -a $_pkg/usr/bin $fs/usr
    1.14 +	cp -a $_pkg/etc/distcc $fs/etc
    1.15 +	
    1.16 +	echo '127.0.0.1' >> $fs/etc/distcc/clients.allow
    1.17 +	
    1.18 +	install -o root -g root $stuff/distccd $fs/etc/init.d
    1.19  }
    1.20  
    1.21 +post_install()
    1.22 +{
    1.23 +	if ! grep -q nagios $1/etc/passwd; then
    1.24 +		echo -n "Adding user/group nagios..."
    1.25 +		chroot $1/ addgroup -S distcc
    1.26 +		chroot $1/ adduser -S -D -H -G distcc distcc
    1.27 +		status
    1.28 +	fi
    1.29 +	
    1.30 +	# Fix perms for files and directories
    1.31 +	chroot $1/ chown -R distcc.distcc /var/log/distccd \
    1.32 +	  /var/run/distccd 
    1.33 +	  
    1.34 +	cat <<EOF
    1.35 +----
    1.36 +Now you can:
    1.37 +* Just run '/etc/init.d/$PACKAGE start' to start daemon.
    1.38 +* Add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf to run $PACKAGE àat boot time.
    1.39 +* Allow cliets in /etc/distcc/clients.allow
    1.40 +----
    1.41 +
    1.42 +EOF
    1.43 +}