system/drbd-utils: Fixes for manpages.

This commit is contained in:
Mario Preksavec 2014-11-27 01:54:01 +01:00 committed by Willy Sudiarto Raharjo
parent 43ce728f35
commit 1369359e42
1 changed files with 8 additions and 1 deletions

View File

@ -24,7 +24,7 @@
PRGNAM=drbd-utils
VERSION=${VERSION:-8.9.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -95,6 +95,13 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Remove dead symlink
unlink $PKG/usr/man/man8/drbd-overview.8 || true
# Unbreak manpage symlinks after gzip (above)
find $PKG/usr/man -type l ! -name '*.gz' \
-exec bash -c 'ln -s $(readlink $1).gz $1.gz && unlink $1' doh {} \;
# Relocate udev rules
mkdir $PKG/lib/udev/rules.d
mv $PKG/lib/udev/65-drbd.rules $PKG/lib/udev/rules.d