aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-07-16 11:58:01 +0800
committerXi Ruoyao <xry111@xry111.site>2023-07-16 12:06:37 +0800
commitcce6c924637464556f437bb9eb417967966c5be1 (patch)
tree5bc571c2f69ea3d024d012c9f1d71a918b5dd637
parent13288b9165e60ff8537091d8dbd49cdf91485efa (diff)
udev: Install man pages from systemd man pages tarball
-rw-r--r--chapter03/packages.xml2
-rw-r--r--chapter08/udev.xml14
2 files changed, 15 insertions, 1 deletions
diff --git a/chapter03/packages.xml b/chapter03/packages.xml
index 3e8277b37..4db7bb5a1 100644
--- a/chapter03/packages.xml
+++ b/chapter03/packages.xml
@@ -698,7 +698,7 @@
</listitem>
</varlistentry>
- <varlistentry revision="systemd">
+ <varlistentry>
<term>Systemd Man Pages(&systemd-version;) - <token>&systemd-man-size;</token>:</term>
<listitem>
<para>Home page: <ulink url="&systemd-home;"/></para>
diff --git a/chapter08/udev.xml b/chapter08/udev.xml
index c1e2af312..4e79ef899 100644
--- a/chapter08/udev.xml
+++ b/chapter08/udev.xml
@@ -133,6 +133,20 @@ install -vm755 $(find src/udev -type f | grep -F -v ".") /usr/lib/udev</userinpu
<screen><userinput remap="install">tar -xvf ../../&udev-lfs-version;.tar.xz
make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
+ <para>Install the man pages:</para>
+
+ <!-- Please make sure systemd man pages tarball has a common leading
+ component in the path. -->
+<screen><userinput remap="install">tar -xf ../../systemd-man-pages-253.tar.xz --strip-components=1 \
+ -C /usr/share/man --wildcards '*/udev*' '*/libudev*' \
+ '*/systemd-'{hwdb,udevd.service}.8
+sed 's/systemd\(\\\?-\)/udev-/' /usr/share/man/man8/systemd-hwdb.8 \
+ > /usr/share/man/man8/udev-hwdb.8
+sed 's|lib.*udevd|sbin/udevd|' \
+ /usr/share/man/man8/systemd-udevd.service.8 \
+ > /usr/share/man/man8/udevd.8
+rm /usr/share/man/man8/systemd-*.8</userinput></screen>
+
</sect2>
<sect2 id="conf-udev" role="configuration">