Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171039312
D59045.id184510.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
887 B
Referenced Files
None
Subscribers
None
D59045.id184510.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
Wed, Sep 9, 8:25 AM (4 h, 40 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37031071
Default Alt Text
D59045.id184510.diff (887 B)
Attached To
Mode
D59045: nanobsd: Add _xxx_pkg_add_var_db_files_to_metalog
Attached
Detach File
Event Timeline
Log In to Comment