From 07335072e2dc46cc50b49362e6da4f3854d68cd9 Mon Sep 17 00:00:00 2001
From: Kyle Evans <kevans@FreeBSD.org>
Date: Sun, 18 Oct 2020 23:58:40 +0000
Subject: [PATCH] libbe(3): install MLINKS for all of the functions provided

MFC after:	1 week
---
 lib/libbe/Makefile                       | 35 ++++++++++++++++++++++++
 tools/build/mk/OptionalObsoleteFiles.inc | 35 ++++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/lib/libbe/Makefile b/lib/libbe/Makefile
index d3d5beee293e..291e2438ee2a 100644
--- a/lib/libbe/Makefile
+++ b/lib/libbe/Makefile
@@ -11,6 +11,41 @@ SHLIB_MINOR=	0
 SRCS=		be.c be_access.c be_error.c be_info.c
 INCS=		be.h
 MAN=		libbe.3
+MLINKS+=	libbe.3 be_activate.3
+MLINKS+=	libbe.3 be_active_name.3
+MLINKS+=	libbe.3 be_active_path.3
+MLINKS+=	libbe.3 be_create_depth.3
+MLINKS+=	libbe.3 be_create_from_existing_snap.3
+MLINKS+=	libbe.3 be_create_from_existing.3
+MLINKS+=	libbe.3 be_create.3
+MLINKS+=	libbe.3 be_deactivate.3
+MLINKS+=	libbe.3 be_destroy.3
+MLINKS+=	libbe.3 be_exists.3
+MLINKS+=	libbe.3 be_export.3
+MLINKS+=	libbe.3 be_get_bootenv_props.3
+MLINKS+=	libbe.3 be_get_dataset_props.3
+MLINKS+=	libbe.3 be_get_dataset_snapshots.3
+MLINKS+=	libbe.3 be_import.3
+MLINKS+=	libbe.3 be_is_auto_snapshot_name.3
+MLINKS+=	libbe.3 be_mount.3
+MLINKS+=	libbe.3 be_mounted_at.3
+MLINKS+=	libbe.3 be_nextboot_name.3
+MLINKS+=	libbe.3 be_nextboot_path.3
+MLINKS+=	libbe.3 be_nicenum.3
+MLINKS+=	libbe.3 be_prop_list_alloc.3
+MLINKS+=	libbe.3 be_prop_list_free.3
+MLINKS+=	libbe.3 be_rename.3
+MLINKS+=	libbe.3 be_root_concat.3
+MLINKS+=	libbe.3 be_root_path.3
+MLINKS+=	libbe.3 be_snapshot.3
+MLINKS+=	libbe.3 be_unmount.3
+MLINKS+=	libbe.3 be_validate_name.3
+MLINKS+=	libbe.3 be_validate_snap.3
+MLINKS+=	libbe.3 libbe_close.3
+MLINKS+=	libbe.3 libbe_errno.3
+MLINKS+=	libbe.3 libbe_error_description.3
+MLINKS+=	libbe.3 libbe_init.3
+MLINKS+=	libbe.3 libbe_print_on_error.3
 
 LIBADD+= zfs
 LIBADD+= nvpair
diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc
index 7d759aa2fac7..bf90f552df36 100644
--- a/tools/build/mk/OptionalObsoleteFiles.inc
+++ b/tools/build/mk/OptionalObsoleteFiles.inc
@@ -1172,6 +1172,41 @@ OLD_LIBS+=usr/lib32/libzpool.so.2
 OLD_FILES+=usr/sbin/zfsd
 OLD_FILES+=usr/sbin/zhack
 OLD_FILES+=usr/sbin/zdb
+OLD_FILES+=usr/share/man/man3/be_activate.3.gz
+OLD_FILES+=usr/share/man/man3/be_active_name.3.gz
+OLD_FILES+=usr/share/man/man3/be_active_path.3.gz
+OLD_FILES+=usr/share/man/man3/be_create_depth.3.gz
+OLD_FILES+=usr/share/man/man3/be_create_from_existing_snap.3.gz
+OLD_FILES+=usr/share/man/man3/be_create_from_existing.3.gz
+OLD_FILES+=usr/share/man/man3/be_create.3.gz
+OLD_FILES+=usr/share/man/man3/be_deactivate.3.gz
+OLD_FILES+=usr/share/man/man3/be_destroy.3.gz
+OLD_FILES+=usr/share/man/man3/be_exists.3.gz
+OLD_FILES+=usr/share/man/man3/be_export.3.gz
+OLD_FILES+=usr/share/man/man3/be_get_bootenv_props.3.gz
+OLD_FILES+=usr/share/man/man3/be_get_dataset_props.3.gz
+OLD_FILES+=usr/share/man/man3/be_get_dataset_snapshots.3.gz
+OLD_FILES+=usr/share/man/man3/be_import.3.gz
+OLD_FILES+=usr/share/man/man3/be_is_auto_snapshot_name.3.gz
+OLD_FILES+=usr/share/man/man3/be_mount.3.gz
+OLD_FILES+=usr/share/man/man3/be_mounted_at.3.gz
+OLD_FILES+=usr/share/man/man3/be_nextboot_name.3.gz
+OLD_FILES+=usr/share/man/man3/be_nextboot_path.3.gz
+OLD_FILES+=usr/share/man/man3/be_nicenum.3.gz
+OLD_FILES+=usr/share/man/man3/be_prop_list_alloc.3.gz
+OLD_FILES+=usr/share/man/man3/be_prop_list_free.3.gz
+OLD_FILES+=usr/share/man/man3/be_rename.3.gz
+OLD_FILES+=usr/share/man/man3/be_root_concat.3.gz
+OLD_FILES+=usr/share/man/man3/be_root_path.3.gz
+OLD_FILES+=usr/share/man/man3/be_snapshot.3.gz
+OLD_FILES+=usr/share/man/man3/be_unmount.3.gz
+OLD_FILES+=usr/share/man/man3/be_validate_name.3.gz
+OLD_FILES+=usr/share/man/man3/be_validate_snap.3.gz
+OLD_FILES+=usr/share/man/man3/libbe_close.3.gz
+OLD_FILES+=usr/share/man/man3/libbe_errno.3.gz
+OLD_FILES+=usr/share/man/man3/libbe_error_description.3.gz
+OLD_FILES+=usr/share/man/man3/libbe_init.3.gz
+OLD_FILES+=usr/share/man/man3/libbe_print_on_error.3.gz
 OLD_FILES+=usr/share/man/man3/libbe.3.gz
 OLD_FILES+=usr/share/man/man5/zpool-features.5.gz
 OLD_FILES+=usr/share/man/man8/bectl.8.gz