diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2023-06-20 22:53:23 +0200 |
---|---|---|
committer | Sören Tempel <soeren+alpine@soeren-tempel.net> | 2023-06-20 17:00:08 +0000 |
commit | 85eaa116dbedfad3a70ad6da0cf5dbf05dacfba1 (patch) | |
tree | dde1f06e73ec87bf5f7a91bd8070db0d7ac62fea /main/cryptsetup | |
parent | 05c86ce520c77e1e907763e031736fe1f6130edd (diff) | |
download | aports-85eaa116dbedfad3a70ad6da0cf5dbf05dacfba1.zip |
main/cryptsetup: fixup man pages which use the .so directive
The crpytsetup-doc package ships several man page which just consist
of an `.so` directive for referring to another man page. This directive
is not supported by mandoc [1]. As such, opening man pages such as
`cryptsetup-create(8)` does not work presently.
The recommended solution by upstream is to replace such man pages with
a symlink. This commits adds a shell oneliner which does exactly that.
[1]: https://inbox.vuxu.org/mandoc-tech/20101024194129.GJ20876@iris.usta.de/#r
Diffstat (limited to 'main/cryptsetup')
-rw-r--r-- | main/cryptsetup/APKBUILD | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/main/cryptsetup/APKBUILD b/main/cryptsetup/APKBUILD index 1c830643869..17f7f1612be 100644 --- a/main/cryptsetup/APKBUILD +++ b/main/cryptsetup/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=cryptsetup pkgver=2.6.1 -pkgrel=6 +pkgrel=7 pkgdesc="Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi" url="https://gitlab.com/cryptsetup/cryptsetup" arch="all" @@ -66,6 +66,15 @@ package() { mkdir -p "$pkgdir"/usr/share/doc/$pkgname/ install -m644 README.md FAQ.md docs/v$pkgver-ReleaseNotes \ -t "$pkgdir"/usr/share/doc/$pkgname/ + + # mandoc does not support the .so directive which replace the + # content of a man page with that of another. cryptsetup uses + # several man pages which just contain an .so directive. Replace + # these with symlinks to make them work by default in mandoc. + # + # See https://inbox.vuxu.org/mandoc-tech/20101024194129.GJ20876@iris.usta.de/#r + grep -l -R '^\.so ' "$pkgdir"/usr/share/man | \ + xargs awk '/^\.so/ { system("ln -fs " $2 " " FILENAME) }' } libs() { |