Bug 77385 - Mk/bsd.port.mk - add support for early rcNG startup scripts
Summary: Mk/bsd.port.mk - add support for early rcNG startup scripts
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-11 12:00 UTC by Florent Thoumie
Modified: 2005-02-28 21:13 UTC (History)
0 users

See Also:


Attachments
rcorder-bpm-v2.diff (2.68 KB, patch)
2005-02-11 12:00 UTC, Florent Thoumie
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!