PORTNAME=exim PORTDIR=/usr/ports/mail/${PORTNAME}/ CONFDIR=/usr/local/etc/exim STARTUP_SCRIPT=/usr/local/etc/rc.d/exim* include ../make.conf-default -include ../make.conf include Makefile.inc -include Makefile.local #_PORTUPGRADE_TOOL_=`/bin/sh -c 'if [ -z "${PORTUPGRADE_TOOL}" ] ; then if [ -f /usr/local/sbin/portupgrade ] ; then echo "portupgrade" ; elif [ -f /usr/local/sbin/portmaster ] ; then echo "portmaster" ; fi ; else echo ${PORTUPGRADE_TOOL} ; fi'` _PORTUPGRADE_TOOL_:=$(shell if [ -z "${PORTUPGRADE_TOOL}" ] ; then if [ -f /usr/local/sbin/portupgrade ] ; then echo "portupgrade" ; elif [ -f /usr/local/sbin/portmaster ] ; then echo "portmaster" ; fi ; else echo ${PORTUPGRADE_TOOL} ; fi) replace : replace_port replace_port : rsync -avz --delete core/ ${PORTDIR} patch_port : /bin/sh -c ' \ if [ -d ${CURDIR}/files ] ; then \ cp -p ${CURDIR}/files/* ${PORTDIR}/files/ ; \ fi ; \ if [ -d ${CURDIR}/files-port ] ; then \ cp -p ${CURDIR}/files-port/* ${PORTDIR}/ ; \ fi ; \ cd ${PORTDIR} ; \ if [ -d ${CURDIR}/patches-port ] ; then \ for patch in ${CURDIR}/patches-port/*.patch ; do \ echo "patch < $${patch}" ; \ patch < $${patch} ; \ done ; \ fi ; \ ' config : /bin/sh -c 'cd ${PORTDIR} ; ${PORT_OPTIONS} make config' clean : /bin/sh -c 'cd ${PORTDIR} ; ${PORT_OPTIONS} make clean' fetch : /bin/sh -c 'cd ${PORTDIR} ; ${PORT_OPTIONS} make fetch' build : patch if [ ! -z "${DISABLE_NO_MACRO_REDEFINED_FLAG}" ] && [ ! -z "`cat ${PORTDIR}/Makefile | grep ^EXIM_WARN_FLAGS | grep -e -Wno-macro-redefined`" ] ; then \ [ -f ${PORTDIR}/Makefile.orig ] || cp -p ${PORTDIR}/Makefile ${PORTDIR}/Makefile.orig ; \ perl -pi -e 's|^((EXIM_WARN_FLAGS.+)-Wno-macro-redefined(.+))|\#$$1\n$$2$$3|' ${PORTDIR}/Makefile ; \ fi ; \ /bin/sh -c 'cd ${PORTDIR} ; ${PORT_OPTIONS} make build' install : /bin/sh -c 'cd ${PORTDIR} ; ${PORT_OPTIONS} make install' deinstall : /bin/sh -c 'cd ${PORTDIR} ; ${PORT_OPTIONS} make deinstall' portupgrade : patch if [ "${_PORTUPGRADE_TOOL_}" = "portupgrade" ] ; then \ portupgrade ${PORTUPGRADE_OPTIONS} ${PORTNAME} ; \ elif [ "${_PORTUPGRADE_TOOL_}" = "portmaster" ] ; then \ PAGER=/bin/cat portmaster ${PORTMASTER_OPTIONS} ${PORTNAME} ; \ fi force_portupgrade : portupgrade_force portupgrade_force : patch if [ "${_PORTUPGRADE_TOOL_}" = "portupgrade" ] ; then \ portupgrade -f ${PORTUPGRADE_OPTIONS} ${PORTNAME} ; \ elif [ "${_PORTUPGRADE_TOOL_}" = "portmaster" ] ; then \ PAGER=/bin/cat portmaster -f ${PORTMASTER_OPTIONS} ${PORTNAME} ; \ fi stop : [ -z "${STARTUP_SCRIPT}" ] || ${STARTUP_SCRIPT} stop start : [ -z "${STARTUP_SCRIPT}" ] || ${STARTUP_SCRIPT} start restart : [ -z "${STARTUP_SCRIPT}" ] || ${STARTUP_SCRIPT} restart reload : [ -z "${STARTUP_SCRIPT}" ] || ${STARTUP_SCRIPT} reload