aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-14 16:20:35 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-14 17:01:44 +0200
commit7a29e24dbb6643018195f069d9a7249550dc4b47 (patch)
tree38ca82089af3a77659d0f7f2accec5903bafa91b
parent51ec51871fd57b80096baf76d6b21a2ae46e4748 (diff)
downloadupstream-7a29e24dbb6643018195f069d9a7249550dc4b47.tar.gz
upstream-7a29e24dbb6643018195f069d9a7249550dc4b47.tar.bz2
upstream-7a29e24dbb6643018195f069d9a7249550dc4b47.zip
build: dump effective user/group id mapping to file
This file can be subsequently used to resolve symbolic user or group names to their numeric IDs when packing ipk archives. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--include/toplevel.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index 589af94075..5d872098db 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -91,6 +91,7 @@ prepare-tmpinfo: FORCE
[ tmp/.config-feeds.in -nt tmp/.packageauxvars ] || ./scripts/feeds feed_config > tmp/.config-feeds.in
./scripts/package-metadata.pl mk tmp/.packageinfo > tmp/.packagedeps || { rm -f tmp/.packagedeps; false; }
./scripts/package-metadata.pl pkgaux tmp/.packageinfo > tmp/.packageauxvars || { rm -f tmp/.packageauxvars; false; }
+ ./scripts/package-metadata.pl usergroup tmp/.packageinfo > tmp/.packageusergroup || { rm -f tmp/.packageusergroup; false; }
touch $(TOPDIR)/tmp/.build
grep "Require-User" tmp/.packageinfo | cut -d ' ' -f 2- | sort -u | grep "=" > tmp/userids