Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177425697
D59045.1794351830.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
887 B
Referenced Files
None
Subscribers
None
D59045.1794351830.diff
View Options
diff --git a/tools/tools/nanobsd/_xxx_includes.subr b/tools/tools/nanobsd/_xxx_includes.subr
--- a/tools/tools/nanobsd/_xxx_includes.subr
+++ b/tools/tools/nanobsd/_xxx_includes.subr
@@ -221,6 +221,19 @@
_xxx_add_sys_symlink
}
+# Add /var/db/pkg to the METALOG
+_xxx_pkg_add_var_db_files_to_metalog() {
+ mtree -c -p ${NANO_WORLDDIR}/var/db/pkg |
+ mtree -C -K uname,gname -R nlink,size,time > "${NANO_METALOG}.pkgdb"
+ sed -i "" -e "s|^\.|./var/db/pkg|g" \
+ -e "s/ uname=[^ ]*/ uname=${NANO_DEF_UNAME}/g" \
+ -e "s/ gname=[^ ]*/ gname=${NANO_DEF_GNAME}/g" \
+ -e "s/ flags=uarch,schg$/ flags=schg/g" \
+ -e "s/ flags=uarch$//g" "${NANO_METALOG}.pkgdb"
+ cat "${NANO_METALOG}.pkgdb" >> "$NANO_METALOG"
+ rm -f "${NANO_METALOG}.pkgdb"
+}
+
#
# If we do "make distribution", this directory must be present.
# XXXJL Discuss adding this as a pkg script in base
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 10, 11:03 PM (9 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37031071
Default Alt Text
D59045.1794351830.diff (887 B)
Attached To
Mode
D59045: nanobsd: Add _xxx_pkg_add_var_db_files_to_metalog
Attached
Detach File
Event Timeline