udev: Install man pages from systemd man pages tarball

This commit is contained in:
Xi Ruoyao 2023-07-16 11:58:01 +08:00
parent 13288b9165
commit cce6c92463
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
2 changed files with 15 additions and 1 deletions

View File

@ -698,7 +698,7 @@
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry revision="systemd"> <varlistentry>
<term>Systemd Man Pages(&systemd-version;) - <token>&systemd-man-size;</token>:</term> <term>Systemd Man Pages(&systemd-version;) - <token>&systemd-man-size;</token>:</term>
<listitem> <listitem>
<para>Home page: <ulink url="&systemd-home;"/></para> <para>Home page: <ulink url="&systemd-home;"/></para>

View File

@ -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 <screen><userinput remap="install">tar -xvf ../../&udev-lfs-version;.tar.xz
make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen> 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>
<sect2 id="conf-udev" role="configuration"> <sect2 id="conf-udev" role="configuration">