# fss-0002

main:
  if [[ $(grep -m 1 -o '^t_print:[^:]*:' /etc/passwd) == "" ]] ; then adduser -l /bin/false -t target -g t_print -n print ; fi
  ./configure $CONF --with-userid=t_print --with-groupid=t_print --with-lpd_conf_path=/home/targets/print/settings/lpd.conf --with-lpd_perms_path=/home/targets/print/settings/lpd.perms --with-printcap_path=/home/targets/print/settings/printcap --with-lpd_printcap_path=/home/targets/print/settings/lpd_printcap --with-spooldir=/home/targets/print/spool/
  make
  make install
  chgrp -R t_print /home/targets/print/
  chgrp -R t_print /sbin/{checkpc,lpc,lpd,lprng_certs,lprng_index_certs}
  chgrp -R e_print /bin/{cancel,lp,lpq,lpr,lprm,lpstat} /lib/filters
  rm -Rf /etc/lpd
