pkgsrc/mail/yatsvrs/INSTALL
taca 1f09a256bd - Utilize bsd.pkg.install.mk framework.
- Add fallback sendmail path, should fix some buld build problem.
- Add -x option which enable XTND command support to yatd(8).

Bump PKGREVISION.
2004-12-15 13:18:02 +00:00

20 lines
536 B
Text

#!/bin/sh
# $Id: INSTALL,v 1.4 2004/12/15 13:18:02 taca Exp $
YAT_CONF_DIR="@PKG_SYSCONFDIR@"
DEFAULT_ADMIN="@DEFAULT_ADMIN@"
MIN="@YATSVR_MINGID@"
MAX="@YATSVR_MAXGID@"
case ${STAGE} in
POST-INSTALL)
if [ ! -f ${YAT_CONF_DIR}/.admin ]; then
echo ${DEFAULT_ADMIN} > ${YAT_CONF_DIR}/.admin
${CHMOD} 0600 ${YAT_CONF_DIR}/.admin
fi
# hack for restrict groups
${AWK} -F: '$1 !~ /^no/ { if ($3 < '$MIN' || $3 > '$MAX') print $1}' \
/etc/group > ${YAT_CONF_DIR}/.hidden-group
${CHMOD} 0600 ${YAT_CONF_DIR}/.hidden-group
;;
esac