Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168271026
D59045.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
886 B
Referenced Files
None
Subscribers
None
D59045.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
@@ -211,6 +211,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.
# XXX: Discuss adding this as a pkg script in base
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 28, 7:40 AM (19 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37277481
Default Alt Text
D59045.diff (886 B)
Attached To
Mode
D59045: nanobsd: Add _xxx_pkg_add_var_db_files_to_metalog
Attached
Detach File
Event Timeline
Log In to Comment