etc/mk.conf: pkgsrc finds the archives the source set carries
pkgsrc's DISTDIR default is ${PKGSRCDIR}/distfiles, and PKGSRCDIR is
/usr/src/pkgsrc -- but tools/makronix-distfiles.sh stages the archives into
/usr/src/distfiles, and srctree-stage.sh puts them there in the source set.
On the installed system 'make -V DISTDIR' inside /usr/src/pkgsrc/wm/mcde
printed ${PKGSRCDIR}/distfiles while mcde-0.1.0.tar.gz lay one directory
up (measured 2026-11-23 on the MacBook), so a package build fetched an
archive it already had or failed without a network.
The file is what mk.conf(5) makes of /etc/mk.conf: one setting, a config
file at mode 644 that an update does not rewrite. It is in the etc set
(lists/etc/mi, etc-sys-etc) and installed from src/etc/Makefile with the
other CONFIGFILES.
Verified: the file was written by tools/makronix-distfiles.sh stage earlier
this session (1644 archives in /usr/src/distfiles on the running system);
bmake -V DISTDIR in src/etc is checked with the build that carries it.
This commit is contained in:
1 parent
fcaadf5cfa
commit
99ac14f10d
3 files changed
+29
No files matched your search
@@ -103,6 +103,7 @@
|
||||
./etc/mail/aliases etc-postfix-etc postfix
|
||||
./etc/mailer.conf etc-mailwrapper-etc
|
||||
./etc/man.conf etc-man-etc
|
||||
./etc/mk.conf etc-sys-etc
|
||||
./etc/master.passwd etc-sys-etc
|
||||
./etc/moduli etc-secsh-etc
|
||||
./etc/monthly etc-sys-etc
|
||||
|
||||
@@ -275,6 +275,12 @@ FILESDIR_makronix-xsession= /etc/dt/config/Xsession.d
|
||||
FILESNAME_makronix-xsession= 0000makronix
|
||||
FILESMODE_makronix-xsession= 755
|
||||
|
||||
# pkgsrc reads /etc/mk.conf by default (mk.conf(5)). The one line in it
|
||||
# points DISTDIR at the archives the source set carries in /usr/src/distfiles,
|
||||
# so a package build on the installed system finds them (see the file).
|
||||
CONFIGFILES+= mk.conf
|
||||
FILESMODE_mk.conf= 644
|
||||
|
||||
# MCDE: the sources of the projects Makronix ships (ext/src/<name> in the
|
||||
# source set) are reachable as /opt/src too, where the other trees live.
|
||||
CONFIGSYMLINKS+= ${TZDIR}/${LOCALTIME} /etc/localtime \
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# $Makronix$
|
||||
#
|
||||
# makronix: where pkgsrc finds the archives, and that it is usable as shipped.
|
||||
#
|
||||
# pkgsrc's default is DISTDIR=${PKGSRCDIR}/distfiles, and in this tree
|
||||
# PKGSRCDIR is /usr/src/pkgsrc -- a directory that the source set leaves as
|
||||
# the pin has it. The archives Makronix ships are in /usr/src/distfiles,
|
||||
# beside the tree, where tools/makronix-distfiles.sh stages them and where the
|
||||
# build itself reads them ($TOP/distfiles). Without this line a package on an
|
||||
# installed system fetches an archive it already has, or fails with no network
|
||||
# (measured 2026-11-23: `make -V DISTDIR` in /usr/src/pkgsrc/wm/mcde printed
|
||||
# ${PKGSRCDIR}/distfiles while the archive lay in /usr/src/distfiles).
|
||||
#
|
||||
# Everything else is pkgsrc's own default: PREFIX=/usr/pkg, PKG_DBDIR=
|
||||
# /usr/pkg/pkgdb, and bmake and the package tools come from the base sets
|
||||
# (/usr/bin/make, /usr/sbin/pkg_add) -- an installed Makronix needs no
|
||||
# bootstrap of its own to build a package.
|
||||
#
|
||||
# A person may add to this file; it is a config file (/etc/mk.conf, mode 644)
|
||||
# and is not rewritten by an update.
|
||||
|
||||
DISTDIR= /usr/src/distfiles
|
||||
Reference in new issue
Block a user