Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 2004 09:17:52 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Oliver Eikemeier <eikemeier@fillmore-labs.com>
Cc:        current@freebsd.org
Subject:   Re: RFC: Alternate patch to have true new-style rc.d ports scripts(without touching localpkg)
Message-ID:  <790a9fff040729071745b541d3@mail.gmail.com>
In-Reply-To: <4108B7C5.5000802@fillmore-labs.com>
References:  <4108B7C5.5000802@fillmore-labs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 29 Jul 2004 10:39:33 +0200, Oliver Eikemeier
<eikemeier@fillmore-labs.com> wrote:
> The bsd.port.mk integration might be something like
> 
> RC_SCRIPTS=     apache
> 
> which will install `apache' or `apache.sh' depending on OSVERSION. A
> variable RC_SUFX is set that could be used in pkg-message or other
> places when necessary.
> 
You read my bsd.port.mk :-).

I have already created the above in my bsd.port.mk in the begining of
the year.  Except that I have it setup as:

RC_SCRIPTS= script1 script2:0000 script3:0001

Then depending on OSVERSION the scripts are installed as:

   etc/rc.d/script1.sh
   etc/rc.d/0000.script2.sh
   etc/rc.d/0001.script3.sh

or on FreeBSD 5.x +

  etc/rc.d/script1{.sh,}
  etc/rc.d/script2{.sh,}
  etc/rc.d/script3{.sh,}

Currently, I have the removal of ".sh" set for FreeBSD 6.x in my bsd.port.mk.

Scot



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff040729071745b541d3>