# fss-0002

main:
  if [[ $(grep -m 1 -o '^t_authority:[^:]*:' /etc/passwd) == "" ]] ; then adduser -l /bin/bash -t target -g t_authority -n authority ; fi
  ./configure $CONF $DOCDIR --with-ocspd-user=t_authority --with-ocspd-group=t_authority --with-openca-prefix=/home/targets/authority --enable-engine
  make pkgconfigdir=${TC}lib/pkgconfig/
  make pkgconfigdir=${TC}lib/pkgconfig/ install
  chgrp e_authority /bin/openca-{crmf,scep,sv}
  chmod o-rx /bin/openca-{crmf,scep,sv}
