From 736e854308075330ac7371bde3c0d8416d6ab889 Mon Sep 17 00:00:00 2001 From: Matthew Cengia Date: Wed, 18 Sep 2024 17:21:49 +1000 Subject: [PATCH] Add manpath.d entry OpenZFS on OSX installs a `paths.d` entry (ref etc/paths.d/zfs.in) for binaries, but not an `/etc/manpaths.d/` pointing to the appropriate man pages. This commit intends to rectify that missing entry. Signed-off-by: Matthew Cengia --- etc/manpaths.d/Makefile.am | 14 ++++++++++++++ etc/manpaths.d/zfs.in | 1 + 2 files changed, 15 insertions(+) create mode 100644 etc/manpaths.d/Makefile.am create mode 100644 etc/manpaths.d/zfs.in diff --git a/etc/manpaths.d/Makefile.am b/etc/manpaths.d/Makefile.am new file mode 100644 index 000000000..98ef39f15 --- /dev/null +++ b/etc/manpaths.d/Makefile.am @@ -0,0 +1,14 @@ +pathsddir = $(sysconfdir)/manpaths.d +pathsd_DATA = zfs + +EXTRA_DIST = \ + zfs + +zfs: zfs.in + +$(pathsd_DATA): + -$(SED) -e 's,@mandir\@,$(mandir),g' \ + '$@.in' >'$@' + +distclean-local:: + -$(RM) $(pathsd_DATA) diff --git a/etc/manpaths.d/zfs.in b/etc/manpaths.d/zfs.in new file mode 100644 index 000000000..ec8b5df15 --- /dev/null +++ b/etc/manpaths.d/zfs.in @@ -0,0 +1 @@ +@mandir@