# fss-0002
# This package supplies a disable rpc option, but ignores it.

main:
  sed -i -e 's|$(RPCGEN)|# &|' Makefile.in
  sed -i -e 's|rquota_xdr.c ||g' Makefile.in
  sed -i -e 's|rquota.h ||g' Makefile.in
  sed -i -e "s| rquota.h||g" Makefile.in
  sed -i -e "s| rquota.x||g" Makefile.in
  sed -i -e "s| rpc.rquotad||g" Makefile.in
  sed -i -e "s| quotaio_rpc.c||g" Makefile.in
  sed -i -e "s|rquota_client.c rquota_server.c rquota_svc.c||g" Makefile.in
  ./configure $CONF  --disable-rpc
  make RPCCLNTOBJS="" LDFLAGS="-lintl"
  make RPCCLNTOBJS="" install
  cp -v ${PR}quota{tab,grpadmins} /etc/
  sed -i -e "s|REPLACE_ROOT_USER_NAME|$root_user_name|g" /etc/quotagrpadmins
  chgrp e_quota /bin/quota /sbin/{convertquota,edquota,quot,quotacheck,quotaon,quotastats,repquota,setquota,warnquota,xqmstats} /etc/{quotagrpadmins,quotatab,warnquota.conf}
  chmod o-rx /bin/quota /sbin/{convertquota,edquota,quot,quotacheck,quotaon,quotastats,repquota,setquota,warnquota,xqmstats} /etc/{quotagrpadmins,quotatab,warnquota.conf}
  rm -Rf /share/locale /include
