PATH=/usr/bin:/local/usr/bin:/usr/local/bin:/usr/sbin:/sbin export PATH if [ -z "$PKG_INSTALL_ROOT" -o "$PKG_INSTALL_ROOT" = "/" ]; then PARAM="" else PARAM="-R $PKG_INSTALL_ROOT" fi pkginfo -q $PARAM LNFdb4 DIR="" if [ $? -eq 0 ]; then DIR=`pkgparam $PARAM LNFdb4 BASEDIR` if [ "$DIR" = "/usr" ]; then DIR="" else DIR="${DIR}/lib/64" fi fi echo "DB4LIBDIR=${DIR}" >>$1 ETCDIR=${PKG_INSTALL_ROOT}/etc # check, whether a user dkim exists egrep -s '^dkim:' ${ETCDIR}/passwd 2>/dev/null if [ $? -ne 0 ]; then echo " WARNING: This package requires a local user named 'dkim' in the group 'daemon'! This user is not part of your ${ETCDIR}/passwd ! Please setup such an account! E.g.: useradd -c 'DKIM Milter' -d /var/milter/dkim \\ -u 88 -g daemon -s '/bin/true' dkim " exit 3 fi exit 0