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:09:31 UTC 2005


On Fri, 09 Dec 2005 13:36:29 +0100
Pav Lucistnik <pav at FreeBSD.org> wrote:

> > > Synopsis: [MAINTAINER] mail/rabl_server: per sougb request, use
> > > "new style" RC script
> > > 
> > > State-Changed-From-To: open->feedback
> > > State-Changed-By: pav
> > > State-Changed-When: Fri Dec 9 09:22:05 GMT 2005
> > > State-Changed-Why: 
> > > Why would you want to do this? USE_RC_SUBR is somehow deficient
> > > with new rcNG infrastructure in recent -CURRENT?
> > 
> > Posted on ports@ (Subject: USE_RC_SUBR and local_startup scripts in
> > the base rcorder), waited a few days to be told if I'm a stupid or a
> > genius :), no replies, assumed I'm right, so start sending prs.
> > 
> > USE_RC_SUBR basically does 2 things:
> > - performs substitutions on ${USE_RC_SUBR}
> > - installs the files in ${USE_RC_SUBR} with .sh extension
> > So even if you have files/rc_script.in besides files/rc_script.sh.in
> > (so that the substitutions can be performed) it will be installed
> > with .sh extension.
> 
> 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.
 
> 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.)


-- 
IOnut - Unregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"

BOFH excuse #195:
We only support a 28000 bps connection





More information about the freebsd-ports-bugs mailing list