From 4202910a24d2e81fab2ccdf2e523746ffca2d8a9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 15 May 2013 11:28:07 +0200 Subject: [PATCH] systemd: fix manpage links. --- srcpkgs/systemd/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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