RFC: Alternate patch to have true new-style rc.d ports scripts(without touching localpkg)

Scot Hetzel swhetzel at gmail.com
Fri Jul 30 19:22:23 PDT 2004


On Thu, 29 Jul 2004 10:39:33 +0200, Oliver Eikemeier
<eikemeier at 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


More information about the freebsd-current mailing list