There is a certain symmetry to being able to say make repackage reinstall restart on ports with rc.d files. There are probably cases this doesn't handle well - flavors/packages? Tested on straightforward ports with and without rc scripts. Thoughts/OKs?
Index: infrastructure/mk/bsd.port.mk =================================================================== RCS file: /cvs/ports/infrastructure/mk/bsd.port.mk,v retrieving revision 1.1080 diff -N -u -p infrastructure/mk/bsd.port.mk --- infrastructure/mk/bsd.port.mk 16 May 2011 23:40:24 -0000 1.1080 +++ infrastructure/mk/bsd.port.mk 26 May 2011 14:56:53 -0000 @@ -3290,6 +3290,14 @@ distclean: delete-package: @${_MAKE} clean=package + +restart: + @${_MAKE} install + @cd ${PKGDIR} && for i in *.rc; do \ + if test X"$$i" != "X*.rc"; then \ + ${SUDO} ${RCDIR}/$${i%.rc} restart; \ + fi; \ + done reinstall: @${_MAKE} clean='install force'