It would be better to replace the SUB_FILES line in the
Makefile with:
USE_RC_SUBR= ${PORTNAME}.sh
This provides several benefits in the short term. It would
obviate the need for the post-install target and the pkg-plist
entry, as the USE_RC_SUBR macro handles that stuff (as well
as the SUB_FILES stuff) for you automatically. In the long
term, we're going to add even more support for good things
in the USE_RC_SUBR code, so it's a good idea to move that
direction now.