wok-6.x rev 9468
distcc: improve receipt
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon Apr 04 00:01:59 2011 +0200 (2011-04-04) |
parents | 5d9a6e5f6f88 |
children | 51e71ca42f12 02bbaa9d12ba |
files | distcc/receipt |
line diff
1.1 --- a/distcc/receipt Sun Apr 03 14:11:25 2011 +0000 1.2 +++ b/distcc/receipt Mon Apr 04 00:01:59 2011 +0200 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 +}