# 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
  make pkgconfigdir=${TC}lib/pkgconfig/
  make pkgconfigdir=${TC}lib/pkgconfig/ install
  rm -Rf /etc/init.d/
  rm -vf /bin/ocspd-genreq.sh
  rm -vf /bin/test.sh
  chgrp e_authority /sbin/ocspd
  chmod o-rx /sbin/ocspd
