# HG changeset patch # User Eric Joseph-Alexandre # Date 1301868119 -7200 # Node ID c2f84a816b96b2623324056cae6189e0ffb29ec5 # Parent 5d9a6e5f6f883dea11d62c6e223e603796e38b2a distcc: improve receipt diff -r 5d9a6e5f6f88 -r c2f84a816b96 distcc/receipt --- a/distcc/receipt Sun Apr 03 14:11:25 2011 +0000 +++ b/distcc/receipt Mon Apr 04 00:01:59 2011 +0200 @@ -26,7 +26,39 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr + mkdir -p $fs/usr \ + $fs/var/log/distccd \ + $fs/var/run/distccd \ + $fs/etc/init.d + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/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 -n "Adding user/group nagios..." + chroot $1/ addgroup -S distcc + chroot $1/ adduser -S -D -H -G distcc distcc + status + fi + + # Fix perms for files and directories + chroot $1/ chown -R distcc.distcc /var/log/distccd \ + /var/run/distccd + + cat <