pkgsrc/mk
khorben 727ba708e4 Introduce a new SYSCONFBASE variable (defaults to /etc)
This is part 1 to support additional platforms with the RC scripts provided in
pkgsrc, in privileged as well as in unprivileged mode, including on NetBSD
(with part 2 in pkgtools/rc.subr).

This variable is meant to point to the configuration directory of the base
system (as opposed to pkgsrc's own prefix) when it should be used by pkgsrc in
special cases (e.g. installing RC scripts), or to point to the existing
PKG_SYSCONFBASE directory otherwise (e.g. for any unprivileged bootstrap).
This teaches pkgsrc where the RC scripts should be installed, and more
importantly, where the local copy of rc.subr can be expected. Part 3 will
progressively update each and every RC script to substitute this path as
expected.

No functional changes are intended in privileged mode without a bootstrap. The
only variable affected by this change directly is RCD_SCRIPTS_DIR, which
currently remains with the same default of /etc/rc.d, and can be overridden as
before.

When bootstrapping, SYSCONFBASE also remains with the existing default when no
prefix is set or is "/usr/pkg" or "/usr"; it is set to $prefix/etc otherwise. It
can be specified specifically with --sysconfbase if necessary.

Existing installations or bootstraps are not affected, as this change needs
setting SYSCONFBASE in the corresponding $sysconfdir/mk.conf to have an impact.

Tested in privileged and unprivileged modes on NetBSD/amd64, and unprivileged
mode on Darwin/amd64; submitted for review on tech-pkg@.
2021-05-30 23:41:05 +00:00
..
build bsd.build-vars.mk: describe MAKE_FLAGS in details, rewrite and reformat 2020-09-12 06:51:15 +00:00
buildlink3 (buildlink3/find-headers.mk) correct typo 2021-01-02 12:08:03 +00:00
check mk: Use "_PKGSRC_USE_RELRO" instead of "PKGSRC_USE_RELRO" 2021-02-01 16:03:49 +00:00
checksum checksum.awk: Avoid warnings with newer gawk. 2020-10-07 18:09:52 +00:00
cmake-Modules/Platform
compiler various fixes for arm64 big endian support. 2021-04-25 07:51:24 +00:00
configure Add CMAKE_INSTALL_NAME_DIR, a package-settable variable containing the 2020-08-12 14:10:11 +00:00
defaults Introduce a new SYSCONFBASE variable (defaults to /etc) 2021-05-30 23:41:05 +00:00
depends mk: allow "bmake clean depends" as shortcut 2019-05-07 19:36:43 +00:00
emulator Set SUSE_PREFER explicitly for recent FreeBSD releases. 2021-05-12 10:14:24 +00:00
extract mk: Introduce GITHUB_SUBMODULES to get and place Git submodules for GitHub 2021-03-30 16:47:03 +00:00
features mk: use a single form for headings in the documentation comments 2019-09-02 02:23:02 +00:00
fetch mk: master site xorg now prefers https 2021-04-28 09:54:24 +00:00
gnu-config Revert mk/gnu-config/missing 2021-01-03 11:15:21 +00:00
haskell Use tools framework for Haskell source preprocessors 2021-05-01 16:14:19 +00:00
help mk/help: fix help parser for variable names followed by comma 2020-08-04 21:46:44 +00:00
init
install mk: Skip unnecessary dirs for CTF/debug conversion. 2020-07-08 12:37:13 +00:00
misc developer.mk: improve a comment 2021-01-20 01:35:33 +00:00
package mk: allow "bmake clean depends" as shortcut 2019-05-07 19:36:43 +00:00
patch mk: allow "bmake clean depends" as shortcut 2019-05-07 19:36:43 +00:00
pbulk *: move default database directory from /var/db/pkg to ${PREFIX}/pkgdb 2020-12-02 10:22:39 +00:00
pkgformat Preserve stdin for the bootstrap and dependency handling like done for 2021-04-06 18:46:06 +00:00
pkginstall Introduce a new SYSCONFBASE variable (defaults to /etc) 2021-05-30 23:41:05 +00:00
pkgtasks
platform mk: Map macOS 11.4 to the 11.3 SDK. 2021-05-27 18:16:26 +00:00
plist mk/plist: fail fast on programming mistake 2020-09-12 06:55:08 +00:00
repro
scripts mkreadme: Rename generated files to index.html 2021-04-05 10:32:38 +00:00
tools mk/tools: gdbus-codegen is in devel category 2021-05-02 14:11:40 +00:00
wrapper mk/wrapper/transform-gcc: pass -Wno-* without warning 2020-05-02 19:32:59 +00:00
alternatives.mk
apache.mk apache.mk: update comment, apache22 is gone, so is the "ap22" prefix 2019-12-28 11:43:58 +00:00
apache.module.mk
atomic64.mk 64-bit atomic ops are lacking for m68k. 2021-05-07 11:32:01 +00:00
bdb.buildlink3.mk mk: Add db18 to Berkeley DB framework 2020-06-29 13:36:50 +00:00
blas.buildlink3.mk math/blas, math/lapack: Install interchangeable BLAS system 2020-10-12 21:51:57 +00:00
bsd.fast.prefs.mk
bsd.hacks.mk
bsd.makevars.mk
bsd.options.mk mk/bsd.options.mk: remove redundant assignment to PKG_OPTIONS 2020-06-06 19:09:37 +00:00
bsd.pkg.barrier.mk New target test-env, like build-env and configure-env. 2020-03-23 00:33:48 +00:00
bsd.pkg.clean.mk
bsd.pkg.debug.mk
bsd.pkg.error.mk mk/bsd.pkg.error.mk: fix alignment of the backslashes 2019-09-08 09:15:01 +00:00
bsd.pkg.mk mk: move locking.mk from internal to misc 2020-05-10 06:52:49 +00:00
bsd.pkg.readme.mk mk: use http. 2021-04-09 20:15:16 +00:00
bsd.pkg.subdir.mk mk, doc: remove obsolete bulk-install and bulk-package targets 2020-06-05 17:05:22 +00:00
bsd.pkg.update.mk mk/bsd.pkg.update.mk: fix indentation 2020-01-11 19:30:50 +00:00
bsd.pkg.use.mk mk/bsd.pkg.use.mk: add more keywords for "bmake help" 2020-03-12 00:12:23 +00:00
bsd.prefs.mk mk/bsd.prefs.mk: add PKG_DBDIR to show-all-dirs 2020-06-07 05:59:30 +00:00
bsd.utils.mk
compiler.mk mk/compiler.mk: check for too late GCC_REQD and USE_LANGUAGES 2020-06-02 06:58:13 +00:00
curses.buildlink3.mk mk: use a single form for headings in the documentation comments 2019-09-02 02:23:02 +00:00
curses.builtin.mk mk/curses.builtin.mk: add mouse function check 2019-06-17 18:19:55 +00:00
cwrappers.mk mk: allow "bmake clean depends" as shortcut 2019-05-07 19:36:43 +00:00
db1.builtin.mk
djbware.mk Run without errors when LICENSE is undefined. 2020-11-19 09:16:38 +00:00
dlopen.buildlink3.mk
dlopen.builtin.mk
endian.mk
fam.buildlink3.mk
fonts.mk mk/fonts.mk: don't add NO_CONFIGURE and NO_BUILD, have packages set it. 2020-11-06 18:04:24 +00:00
fuse.buildlink3.mk mk/fuse.buildlink3.mk: make patching of configure scripts optional 2020-05-01 21:12:05 +00:00
haskell.mk Support PKGSRC_USE_RELRO 2021-05-04 15:44:33 +00:00
java-env.mk
java-vm.mk mk/java-vm.mk: switch NetBSD-*-aarch64 to openjdk11 2021-04-09 12:47:24 +00:00
jpeg.buildlink3.mk mk/jpeg.buildlink3.mk: document allowed values 2021-03-21 08:02:27 +00:00
krb5.buildlink3.mk
Kyuafile
libusb.buildlink3.mk mk: use a single form for headings in the documentation comments 2019-09-02 02:23:02 +00:00
license.mk license.mk: Minor changes in comments 2021-04-03 15:30:39 +00:00
linux-pam.builtin.mk mk/linux-pam: replace obsolete _PKG_SILENT with RUN 2020-03-15 23:03:03 +00:00
love.mk
motif.buildlink3.mk
mpi.buildlink3.mk mk/mpi.buildlink3.mk: Add MPI_TYPE=native and diagnostics 2021-05-11 21:30:57 +00:00
mysql.buildlink3.mk mk: add mariadb105 2021-05-23 15:36:45 +00:00
ocaml.mk Use MAKE_ENV when calling dune in ocaml.mk 2020-04-21 11:23:29 +00:00
omf-scrollkeeper.mk
oss.buildlink3.mk mk/oss.buildlink3.mk: Simplify per-OS DEV* conditionals. Add MIDI. 2020-04-11 10:31:14 +00:00
oss.builtin.mk mk: use direct include paths 2019-06-30 21:28:28 +00:00
pam.buildlink3.mk
pax.mk
pf.buildlink3.mk
pgsql.buildlink3.mk postgresql95: removed; EOL 2021-05-24 07:42:01 +00:00
pkg-build-options.mk mk/pkg-build-options: fail immediately if pkgbase is not set 2020-03-15 10:33:42 +00:00
pthread.buildlink3.mk mk: use direct include paths 2019-06-30 21:28:28 +00:00
pthread.builtin.mk mk: use direct include paths 2019-06-30 21:28:28 +00:00
readline.buildlink3.mk mk: use a single form for headings in the documentation comments 2019-09-02 02:23:02 +00:00
readline.builtin.mk mk: Use .elif instead of .else if 2020-12-17 09:44:24 +00:00
resolv.buildlink3.mk
smf.mk
solaris-pam.builtin.mk
subst.mk subst.mk: Fix mk/scrips/subst-identity.awk for FreeBSD 2021-05-19 14:44:22 +00:00
termcap.buildlink3.mk mk: use a single form for headings in the documentation comments 2019-09-02 02:23:02 +00:00
termcap.builtin.mk
terminfo.buildlink3.mk mk: use a single form for headings in the documentation comments 2019-09-02 02:23:02 +00:00
terminfo.builtin.mk
unprivileged.mk mk: use a single form for headings in the documentation comments 2019-09-02 02:23:02 +00:00
x11.buildlink3.mk
x11.builtin.mk
x11.version.mk
xaw.buildlink3.mk