Date: Wed, 26 Apr 2006 17:16:29 -0500 From: "Scot Hetzel" <swhetzel@gmail.com> To: "Doug Barton" <dougb@freebsd.org> Cc: ports@freebsd.org, portmgr@freebsd.org, ports-bugs@freebsd.org Subject: Re: HEADS UP: Triage of rcNG related problem reports/USE_RC_SUBR Message-ID: <790a9fff0604261516o2757af09vdb8adfbf2343114a@mail.gmail.com> In-Reply-To: <444FE8F6.2040903@FreeBSD.org> References: <20060426203500.GB1433@merlin.emma.line.org> <444FE8F6.2040903@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/26/06, Doug Barton <dougb@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} >=3D 700007 || (${OSVERSION} < 700000 && ${OSVERSION} >=3D 600101)) =09@for i in ${USE_RC_SUBR}; do \ =09=09${INSTALL_SCRIPT} ${WRKDIR}/$${i} ${PREFIX}/etc/rc.d/$${i%.sh}; \ + ${ECHO_CMD} "@exec set OSVERSION=3D\`/sbin/sysctl -n kern.osreldate\` ; if ! (${OSVERSION} >=3D 700007 || (${OSVERSION} < 700000 && ${OSVERSION} >=3D 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} =09=09${ECHO_CMD} "etc/rc.d/$${i%.sh}" >> ${TMPPLIST}; \ =09done .else : Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0604261516o2757af09vdb8adfbf2343114a>