aboutsummaryrefslogtreecommitdiff
path: root/system/commons-daemon
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2021-11-21 16:43:30 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-11-22 09:10:20 +0700
commit79b75a01a456b7a9e6ba1b87860316e8df7aae87 (patch)
treecd92fab4113e699219fa7f3313df7006a9ced600 /system/commons-daemon
parent05897744b6a8cf0f10b26bc85a8b7c55c21dbc77 (diff)
system/commons-daemon: Build and install manpage
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/commons-daemon')
-rw-r--r--system/commons-daemon/commons-daemon.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/system/commons-daemon/commons-daemon.SlackBuild b/system/commons-daemon/commons-daemon.SlackBuild
index c0cdea698239..fa10a328af13 100644
--- a/system/commons-daemon/commons-daemon.SlackBuild
+++ b/system/commons-daemon/commons-daemon.SlackBuild
@@ -97,7 +97,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-mkdir -p $PKG/usr/bin
+mkdir -p $PKG/usr/{bin,man/man1}
cd src/native/unix/
CFLAGS="$SLKCFLAGS" \
@@ -114,11 +114,18 @@ cd src/native/unix/
make
install -m 0755 jsvc $PKG/usr/bin/jsvc
+
+ cd man
+ docbook2x-man jsvc.1.xml
+ install -m 644 JSVC.1 $PKG/usr/man/man1/jsvc.1
+ cd ..
cd ../../../
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/jsvc
cp -a src/docs LICENSE.txt NOTICE.txt RELEASE-NOTES.txt \
$PKG/usr/doc/$PRGNAM-$VERSION