#!/bin/sh # $FreeBSD$ # PKG_PREFIX=${PKG_PREFIX:-%%PREFIX%%} if [ "$2" = "POST-INSTALL" ];then if [ -f ${PKG_PREFIX}/etc/rc.d/dnscheck-dispatcher ]; then echo '***Please add dns_dispatcher_enable="YES" to /etc/rc.conf to enable dnscheck-se-dispatcher to run at startup.***' chmod +x ${PKG_PREFIX}/etc/rc.d/dnscheck-dispatcher fi # install a link to put the dnscheck engine into the regular $PATH for more users ln -s ${PKG_PREFIX}/libexec/dnscheck/dnscheck ${PKG_PREFIX}/bin/dnscheckengine fi exit 0