ext: pkgsrc recipes for splinter, junction, wikid, skilld, memoryd, tasksd (pins moved); ext-dist.sh archives a submodule from its own repository
The recipes live in the project repositories (committed there, not pushed yet). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f731d1291b
commit
9570e48bdc
8 files changed
+29
-13
No files matched your search
+4
-3
@@ -16,9 +16,10 @@ its recipe in `pkgsrc-<part>/` and becomes `<category>/<name>-<part>`
|
||||
`src/tasksd/` -- Makronix's own projects (git.kropa.tech/hiddenbox), each its
|
||||
own repository, here as a git submodule (`.gitmodules`; `git submodule update
|
||||
--init`). Changes are committed in the project's repository, and this tree
|
||||
moves the pin. They carry no `pkgsrc/` recipe or `IMPORT` yet (splinter's
|
||||
recipe was dropped from the tree with the move; `pkgsrc/misc/splinter` is only
|
||||
an untracked copy).
|
||||
moves the pin. Each keeps its recipe in its own `pkgsrc/` (misc/<name>,
|
||||
PKGNAME <name>-0.1) and an `IMPORT`; `tools/ext-sync.sh` copies the recipe
|
||||
into pkgsrc and `tools/ext-dist.sh` archives the submodule's commit. They are
|
||||
built when `packages.list` names them (misc/splinter does; the others not yet).
|
||||
- `src/glibc/` -- glibc 2.44 for Makronix/Linux; no `pkgsrc/`: its recipe is
|
||||
`mx/`, a NetBSD-style Makefile run by the Makronix/Linux build (LFS-style,
|
||||
from upstream; `mobile/docs/NETBSD-USERLAND.md`).
|
||||
|
||||
+1
-1
Submodule ext/src/junction updated: 7c78ce1a7c...0a6373e954.
+1
-1
Submodule ext/src/memoryd updated: ec8c00c09a...c724d5668d.
+1
-1
Submodule ext/src/skilld updated: de8dab44f5...e9608d6d52.
+1
-1
Submodule ext/src/splinter updated: f6211362cb...11c3db109c.
+1
-1
Submodule ext/src/tasksd updated: 84d39a19cd...92c0d4f63c.
+1
-1
Submodule ext/src/wikid updated: ec3087b43b...d5d772bd68.
+19
-4
@@ -5,6 +5,7 @@
|
||||
#
|
||||
# usage: tools/ext-dist.sh NAME [-r REV]
|
||||
#
|
||||
# (A git submodule of ext/ is archived from its own repository.)
|
||||
# The same as tools/mcde-dist.sh (which see for why) for any fork
|
||||
# ext/src/NAME with a recipe ext/src/NAME/pkgsrc whose DISTNAME= is NAME-VERSION:
|
||||
# DISTDIR/NAME-VERSION.tar.gz from `git archive' of REV (default HEAD), the
|
||||
@@ -82,10 +83,24 @@ fi
|
||||
|
||||
mkdir -p "$DISTDIR"
|
||||
OUT=$DISTDIR/$NAME.tar.gz
|
||||
MTIME=$(git -C "$TOP" log -1 --format=%ct "$REV" -- "ext/src/$SRC" \
|
||||
":(exclude)ext/src/$SRC/pkgsrc" ":(exclude)ext/src/$SRC/pkgsrc-*")
|
||||
git -C "$TOP" archive --format=tar --mtime="@$MTIME" --prefix="$NAME/" \
|
||||
"$REV:ext/src/$SRC" ':(exclude)pkgsrc' ':(exclude)pkgsrc-*' > "$OUT.tar.tmp"
|
||||
# A project that is a git submodule (ext/AGENTS.md: splinter, junction, wikid,
|
||||
# ...) is archived from its own repository, at its own root; a tree that is
|
||||
# part of this repository from ext/src/NAME here. Either way the recipes
|
||||
# (pkgsrc, pkgsrc-*) are left out, so a commit that only changes a recipe or
|
||||
# its distinfo does not change the archive.
|
||||
if [ -e "$TOP/ext/src/$SRC/.git" ]; then
|
||||
G="$TOP/ext/src/$SRC"
|
||||
TREE=$REV
|
||||
PFX=.
|
||||
else
|
||||
G=$TOP
|
||||
TREE=$REV:ext/src/$SRC
|
||||
PFX=ext/src/$SRC
|
||||
fi
|
||||
MTIME=$(git -C "$G" log -1 --format=%ct "$REV" -- "$PFX" \
|
||||
":(exclude)$PFX/pkgsrc" ":(exclude)$PFX/pkgsrc-*")
|
||||
git -C "$G" archive --format=tar --mtime="@$MTIME" --prefix="$NAME/" \
|
||||
"$TREE" ':(exclude)pkgsrc' ':(exclude)pkgsrc-*' > "$OUT.tar.tmp"
|
||||
gzip -n -9 < "$OUT.tar.tmp" > "$OUT.tmp"
|
||||
rm -f "$OUT.tar.tmp"
|
||||
mv "$OUT.tmp" "$OUT"
|
||||
|
||||
Reference in new issue
Block a user