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

From: Scot Hetzel <swhetzel_at_gmail.com>
Date: Thu, 29 Jul 2004 09:17:52 -0500
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
Received on Sat Jul 31 2004 - 00:22:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:04 UTC