build: dump effective user/group id mapping to file
authorJo-Philipp Wich <jo@mein.io>
Mon, 14 Sep 2020 14:20:35 +0000 (16:20 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 14 Sep 2020 15:01:44 +0000 (17:01 +0200)
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>
include/toplevel.mk

index 589af9407512a8b74f21b720a9a52ba48d113773..5d872098db006222e0adf0bbb1cba119673f651d 100644 (file)
@@ -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