Don't just undefine USE_RC_SUBR, because it does define the list
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 8 Apr 2005 16:38:31 +0000 (16:38 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 8 Apr 2005 16:38:31 +0000 (16:38 +0000)
commitaca618a3d0308b6b34fa9ad5b87c22d257ba5764
treeb6faa1a531ca5ce47f279feb4576c6e36e23c9e6
parent5ab616691885f2dd353c32f107fe4a809d4afbea
Don't just undefine USE_RC_SUBR, because it does define the list
of rc scripts if it is defined and not YES. We didn't undefine USE_RCORDER,
which pulled the rc_subr port in.

Fix this by:
(a) save the old value or USE_RCORDER and USE_RC_SUBR to _DF_*.
(b) include the install-rc-script target from ports/Mk/bsd.port.mk,
but use _DF_* for the variables in the actual code.
(c) add _DF_* to the SUB_FILES list and add RC_SUBR to SUB_LIST.
(d) undefine USE_RC_SUBR and USE_RCORDER afterwards.

Problem-reported-by: Erik P. Skaalerud <erik@pentadon.com>
share/mk/bsd.port.mk