# fss-0002

main:
  if [[ $(grep -m 1 -o '^t_rsync:[^:]*:' /etc/passwd) == "" ]] ; then adduser -l /bin/false -t target -g t_rsync -n rsync ; fi
  ./configure $CONF $DOCDIR --with-rsyncd-conf=/home/target/rsync/settings/rsyncd.conf --with-nobody-group=p_nobody
  make
  make install
  cp -v ${PR}rsyncd.conf /home/targets/rsync/settings/
  chgrp e_network /bin/rsync
  chmod o-rx /bin/rsync
