Bug 77385

Summary: Mk/bsd.port.mk - add support for early rcNG startup scripts
Product: Ports & Packages Reporter: Florent Thoumie <flz>
Component: Individual Port(s)Assignee: Port Management Team <portmgr>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
rcorder-bpm-v2.diff none

Description Florent Thoumie 2005-02-11 12:00:31 UTC
Support for rcNG scripts has been added recently in bsd.port.mk.
This handles expansion of %%RC_SUBR%% in these scripts, installs
them and adds them to the packing list (by setting USE_RC_SUBR to
a list of files).

This new patch works almost exactly the same way, except it changes
the directory where scripts are installed and their extension
(commonly handled with RC_DIR and RC_SUFX).

Setting USE_RCORDER to a list of files will add the dependency on
sysutils/rc_subr (if needed) and set RC_SUBR.

Notes:

x The port can install rcorder(8) startup scripts and/or "classic"
rcNG startup scripts. If both are to be installed, USE_RC_SUBR and
USE_RCORDER must be exclusive lists of scripts (or bad things will
happen).
x USE_RC_SUBR can be unset (or not set) if USE_RCORDER is set.
x This makes use of @cwd which is almost broken with pkg_add -p
(bin/77212). There can be extra @cwd commands, but trying not to put
these extras would make the code less readable.

The patch should be harmless.
Comment 1 Erwin Lansing freebsd_committer freebsd_triage 2005-02-11 12:21:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

Portmgr territory
Comment 2 Kirill Ponomarev freebsd_committer freebsd_triage 2005-02-28 21:12:53 UTC
State Changed
From-To: open->closed

Committed, thanks!