diff --git a/srcpkgs/systemd/template b/srcpkgs/systemd/template index fd71818b7f1..73a64362f33 100644 --- a/srcpkgs/systemd/template +++ b/srcpkgs/systemd/template @@ -1,7 +1,7 @@ # Template file for 'systemd' pkgname=systemd version=204 -revision=2 +revision=3 short_desc="A system and service manager for Linux" maintainer="Juan RP " homepage="http://www.freedesktop.org/wiki/Software/systemd" @@ -118,6 +118,10 @@ post_install() { # Required dirs at run time. vinstall ${FILESDIR}/systemd-dirs.tmpfiles 644 \ usr/lib/tmpfiles.d systemd-dirs.conf + + # fix .so links in manpage stubs + find ${DESTDIR}/usr/share/man -type f -name '*.[[:digit:]]' \ + -exec sed -ri '1s|^\.so (.*)\.([0-9]+)|.so man\2/\1.\2|' {} + } if [ -z "$CROSS_BUILD" ]; then