ports/90070: [MAINTAINER] mail/rabl_server: per sougb request, use "new style" RC script
Ion-Mihai Tetcu
itetcu at people.tecnik93.com
Fri Dec 9 13:35:30 UTC 2005
On Fri, 09 Dec 2005 14:14:56 +0100
Pav Lucistnik <pav at FreeBSD.org> wrote:
> > > And with new dougb's rcNG, rc scripts in /usr/local/etc/rc.d now
> > > must be without .sh extension?
> >
> > In dougb's words:
> > >>> The rc.subr system treats scripts named foo.sh differently than
> > > scripts named foo. The former are actually sourced into the rc
> > > environment, which can cause problems if there are errors in the
> > > script, it overwrites a global variable used elsewhere, etc.
> > > Thus, it is better to install the script as foo instead of foo.sh.
> > And the example he provided install non .sh on HEAD; unfortunately
> > the port from his example doesn't USE_RC_SUBR macro.
>
> So when installed with .sh they will still work?
Yes, but w/o using dougb's new style.
>
> > > This is absolutely something that must be fixed in the
> > > infrastructure, not in every port over and over again.
> >
> > My point exactly. And, as I've said, I'm willing to work on this; I
> > could (manually) check the USE_RC_SUBR ports over the weekend to see
> > what kind of rc script they're using. But I need to know which way
> > to go: renaming non-RCng scripts to *.sh, etc., or I could try to
> > convert them to RCmng (but this should be done but maintainers, as
> > they know better what to REQUIRE, etc.)
>
> Is it a good thing to modify USE_RC_SUBR inside bsd.port.mk to install
> without .sh suffix if ${OSVERSION} > 7000xx and be done with it?
I think so, but we must check that (1) at least all ports that
USE_RC_SUBR have RCng scripts and (2) no port relies on .sh adding; 1
and 2 are somehow the same thing, as 2 hurts only if 1 is false.
In the end we should have only new-style RCng scripts
(files/rc_script.in) whit ports setting USE_RC_SUBR= rc_script.in,
installed as such on HEAD (and sometime on 6-STABLE) and .sh added for
older OSVERSIONs.
--
IOnut - Unregistered ;) FreeBSD "user"
"Intellectual Property" is nowhere near as valuable as "Intellect"
BOFH excuse #217:
The MGs ran out of gas
More information about the freebsd-ports-bugs
mailing list