HEADS UP: Triage of rcNG related problem reports/USE_RC_SUBR
Scot Hetzel
swhetzel at gmail.com
Wed Apr 26 22:16:31 UTC 2006
On 4/26/06, Doug Barton <dougb at freebsd.org> wrote:
> Matthias Andree wrote:
>
> > It is a bit unfortunate that there is no accompanying security branch
> > for ports, because then this inconsistency WRT etc/rc.d/* scripts
> > wouldn't have bitten users.
>
> This is a period of change, which unfortunately necessitates some small
> amount of pain in the short term. Sorry to hear that this aspect of the
> change is causing you difficulty.
>
Could we have bsd.port.mk add the following (or similar code) to
pkg-plist for the ports that are built on systems that install the
startup script without a .sh extension?
install-rc-script:
:
.if (${OSVERSION} >= 700007 || (${OSVERSION} < 700000 && ${OSVERSION}
>= 600101))
@for i in ${USE_RC_SUBR}; do \
${INSTALL_SCRIPT} ${WRKDIR}/$${i} ${PREFIX}/etc/rc.d/$${i%.sh}; \
+ ${ECHO_CMD} "@exec set
OSVERSION=\`/sbin/sysctl -n kern.osreldate\` ; if ! (${OSVERSION} >=
700007 || (${OSVERSION} < 700000 && ${OSVERSION} >= 600101)) ; then
echo \"This package requires a minimum of %%OSVERSION%%. You need to
compile %%PKGNAME%% on your system from /usr/ports/%%PKGORIGIN%%\" ;
false ; endif" >> ${TMPPLIST}
${ECHO_CMD} "etc/rc.d/$${i%.sh}" >> ${TMPPLIST}; \
done
.else
:
Scot
--
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
More information about the freebsd-ports-bugs
mailing list