The NetBSD Project

CVS log for pkgsrc/pkgtools/rc.subr/Makefile

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / rc.subr

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Mon Aug 30 21:45:02 2021 UTC (2 years, 6 months ago) by khorben
Branch: MAIN
CVS Tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

rc.subr: update to version 20210830

This introduces the function load_rc_config_var(), as provided by NetBSD's own
rc.subr.

Tested on NetBSD/amd64 (unprivileged).

Revision 1.35 / (download) - annotate - [select for diffs], Sun May 30 23:46:26 2021 UTC (2 years, 9 months ago) by khorben
Branch: MAIN
CVS Tags: pkgsrc-2021Q2-base, pkgsrc-2021Q2
Changes since 1.34: +15 -8 lines
Diff to previous 1.34 (colored)

rc.subr: update to version 20210517

This is part 2 to support additional platforms with the RC scripts provided in
pkgsrc, in privileged as well as in unprivileged mode, including on NetBSD.

These changes:
- install rc.subr to PKG_SYSCONFDIR if SYSCONFBASE is not /etc
- let RC scripts source rc.subr in PKG_SYSCONFDIR
- effectively allow unprivileged setups to run RC scripts easily
- in addition, give a chance for more platforms to run RC scripts

Tested in privileged and unprivileged modes on NetBSD/amd64, and unprivileged
mode on Darwin/amd64; submitted for review on tech-pkg@.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Mar 22 13:21:05 2020 UTC (3 years, 11 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

rc.subr: mark as not for unprivileged, because of PREFIX:=/ abuse

Revision 1.33 / (download) - annotate - [select for diffs], Sat Jan 18 23:33:27 2020 UTC (4 years, 1 month ago) by rillig
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

all: migrate several HOMEPAGEs to https

pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Dec 26 00:29:07 2018 UTC (5 years, 2 months ago) by schmonz
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4
Changes since 1.31: +3 -4 lines
Diff to previous 1.31 (colored)

Add OpenBSD support. Mostly just works, except that we disagree on the
meaning of "rc.conf" (it's their "defaults/rc.conf", not to be edited).
If we're on OpenBSD and there's an /etc/rc.conf.local, source it.

Bump version.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Oct 24 14:07:59 2017 UTC (6 years, 4 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

rc.subr: Fix SERVERS rc.d script to not REQUIRE mountcritremote.

The distributed rc.d scripts are "barrier" scripts that are used
by other rc.d scripts to hook into different points of the startup
process by either using REQUIRE or BEFORE.  The barrier scripts
should not depend on other, non-barrier scripts.  This change makes
the distributed scripts usable by a simple "rcorder /etc/rc.d/*",
whereas it was failing before due to lack of "mountcritremote".

Bump the package version to 20171024.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Oct 17 01:11:30 2016 UTC (7 years, 4 months ago) by dholland
Branch: MAIN
CVS Tags: pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Add IRIX support from Stuart Shelton in PR 38656.

Revision 1.29 / (download) - annotate - [select for diffs], Sun May 10 19:20:09 2015 UTC (8 years, 9 months ago) by bsiegert
Branch: MAIN
CVS Tags: pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Use /bin/echo on Darwin, as the builtin does not have the -n option.
Bump version.
Patch from Jason White in PR pkg/49724.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jun 4 14:16:00 2014 UTC (9 years, 8 months ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Update to 20140604

* Enable for CentOS/RHEL, fix su(1) path.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Mar 3 05:12:35 2014 UTC (10 years ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2014Q1-base, pkgsrc-2014Q1
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

LICENSE=original-bsd

Revision 1.26 / (download) - annotate - [select for diffs], Mon Mar 3 03:30:55 2014 UTC (10 years ago) by obache
Branch: MAIN
Changes since 1.25: +2 -4 lines
Diff to previous 1.25 (colored)

Just define PKGNAME and use it.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Sep 11 23:19:39 2012 UTC (11 years, 5 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3
Changes since 1.24: +1 -3 lines
Diff to previous 1.24 (colored)

"user-destdir" is default these days

Revision 1.24 / (download) - annotate - [select for diffs], Tue Mar 23 00:27:11 2010 UTC (13 years, 11 months ago) by sbd
Branch: MAIN
CVS Tags: pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Takeover maintainership.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Mar 21 16:29:42 2010 UTC (13 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Reset maintainer, developer lost his commit bit.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Dec 13 07:49:55 2009 UTC (14 years, 2 months ago) by martti
Branch: MAIN
CVS Tags: pkgsrc-2009Q4-base, pkgsrc-2009Q4
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored)

Fix problems detected in my Slackware installation.

http://mail-index.netbsd.org/pkgsrc-users/2009/09/09/msg010660.html
http://mail-index.netbsd.org/pkgsrc-users/2009/09/09/msg010664.html

Revision 1.21 / (download) - annotate - [select for diffs], Tue Feb 10 00:26:26 2009 UTC (15 years ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

Restore ONLY_FOR_*.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Feb 10 00:25:00 2009 UTC (15 years ago) by joerg
Branch: MAIN
Changes since 1.19: +13 -14 lines
Diff to previous 1.19 (colored)

DESTDIR support.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jan 18 22:35:35 2009 UTC (15 years, 1 month ago) by shattered
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

On some operating systems (Linux, FreeBSD -- see their problem report
82430) ps might list process names in square brackets.  Fix regex in
_find_processes() accordingly.

OK by wiz@.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 21 00:03:32 2008 UTC (15 years, 2 months ago) by adrianp
Branch: MAIN
CVS Tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Make this work on OpenSolaris

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jun 4 13:34:46 2008 UTC (15 years, 8 months ago) by sketch
Branch: MAIN
CVS Tags: pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, cwrapper-base, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored)

Support alternate ${PREFIX}.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Apr 23 11:54:53 2008 UTC (15 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

rc.subr-20080423: Add QNX support.
From Christian Leutloff on tech-pkg.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jun 2 07:49:18 2007 UTC (16 years, 9 months ago) by schmonz
Branch: MAIN
CVS Tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

Permit installation on "FreeBSD-[0-4].*-*".

Revision 1.14 / (download) - annotate - [select for diffs], Thu Oct 5 08:51:59 2006 UTC (17 years, 4 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored)

This package cannot use CHECK_FILES because it is one of the two that
sets PREFIX=/.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Dec 29 06:22:06 2005 UTC (18 years, 2 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2, pkgsrc-2006Q1-base, pkgsrc-2006Q1
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored)

Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Sep 28 20:52:25 2005 UTC (18 years, 5 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2005Q4-base, pkgsrc-2005Q4
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

Replaced "# defined" with "yes" in Makefile variables like GNU_CONFIGURE,
NO_BUILD, USE_LIBTOOL.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 17 03:50:30 2005 UTC (18 years, 8 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2005Q3-base, pkgsrc-2005Q3, pkgsrc-2005Q2-base, pkgsrc-2005Q2
Changes since 1.10: +3 -1 lines
Diff to previous 1.10 (colored)

Create directories before installing files into them.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 6 05:32:30 2005 UTC (19 years, 1 month ago) by tv
Branch: MAIN
CVS Tags: pkgsrc-2005Q1-base, pkgsrc-2005Q1
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Don't "cp -p" for *source* files.  Builds are usually done as an unprivileged
user, so it's not nice to try to use an option that will try to chown if
the repository isn't owned by the builder.

(Some OS's do in fact cause an error when the chown in "cp -p" fails.)

Revision 1.9 / (download) - annotate - [select for diffs], Tue Dec 28 02:47:48 2004 UTC (19 years, 2 months ago) by reed
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 11 19:32:14 2004 UTC (19 years, 4 months ago) by tv
Branch: MAIN
CVS Tags: pkgsrc-2004Q4-base, pkgsrc-2004Q4
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Add real Interix support for _RC*_* variables; bump datestamp to today.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Oct 11 18:52:56 2004 UTC (19 years, 4 months ago) by tv
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Enable on Interix.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Aug 1 08:56:10 2004 UTC (19 years, 7 months ago) by schmonz
Branch: MAIN
CVS Tags: pkgsrc-2004Q3-base, pkgsrc-2004Q3
Changes since 1.5: +9 -7 lines
Diff to previous 1.5 (colored)

This appears to work on Darwin as well. Respect RCD_SCRIPTS_DIR.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jul 6 20:40:35 2003 UTC (20 years, 7 months ago) by grant
Branch: MAIN
CVS Tags: pkgsrc-2004Q2-base, pkgsrc-2004Q2, pkgsrc-2004Q1-base, pkgsrc-2004Q1, pkgsrc-2003Q4-base, pkgsrc-2003Q4
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

update to 20030706. sync with -current:


Revision 1.59 / (download) - annotate - [select for diffs], Fri Jul 4 14:14:10 2003 UTC (20 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: HEAD
Changes since 1.58: +1 -7 lines
Diff to previous 1.58 (colored)

Revert previous; the "return" if rc.subr had already loaded had issues
in some circumstances where run_rc_script()'s sourcing of an rc.d file
which then sourced rc.subr, the `optimisation' in rc.subr to "return as
we're already loaded" would finish more than just the inner-most sourcing.
I haven't tracked down the exact issue, but removing the `optimisation'
fixes the problem I noticed in starting up certain rc.d scripts, and
may fix [bin/22053] as well.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jun 28 07:15:27 2003 UTC (20 years, 8 months ago) by grant
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

update to 20030627. sync with -current:


Revision 1.58 / (download) - annotate - [select for diffs], Fri Jun 27 05:01:21 2003 UTC (20 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.57: +7 -1 lines
Diff to previous 1.57 (colored)

If _rc_subr_loaded=true, "return" immediately, otherwise set that var
and continue as normal.
Gains ~ 2 seconds on 110 runs of ". rc.subr" on a shark.
Suggested by Andrew Cagney in [bin/18400]

Revision 1.57 / (download) - annotate - [select for diffs], Fri Jun 27 04:06:01 2003 UTC (20 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

run_rc_command(): when checking if ${command} exists before executing it,
be sure to check under ${name_chroot} (if set).
Fix from Ed Ravin in [bin/18523]

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 23 07:03:49 2003 UTC (20 years, 8 months ago) by grant
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

Allow this to work on Linux (at least Slackware 8.1).

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 23 07:02:16 2003 UTC (20 years, 8 months ago) by grant
Branch: MAIN
Changes since 1.1: +4 -7 lines
Diff to previous 1.1 (colored)

no need for defaults/rc.conf.
minor whitespace fix.

bump to 20030622.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Thu Jun 19 16:07:10 2003 UTC (20 years, 8 months ago) by grant
Branch: TNF
CVS Tags: pkgsrc-base
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Initial import of rc.subr into The NetBSD Packages Collection.

This package allows you to use rc.subr-style rc scripts (such as
those included in pkgsrc) on other operating systems.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jun 19 16:07:10 2003 UTC (20 years, 8 months ago) by grant
Branch: MAIN

Initial revision

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jun 3 14:00:45 2003 UTC (20 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

Use more concise shell syntax:
1. for i in $* -> for i
2. foo=$* -> foo="$@"

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>