From e6265d4d22e7d0873a83b41e1f7402705e7edf07 Mon Sep 17 00:00:00 2001 From: B. Watson Date: Tue, 26 Apr 2022 00:14:23 -0400 Subject: system/munin-node: Add doc directory. Signed-off-by: B. Watson --- system/munin-node/munin-node.SlackBuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'system') diff --git a/system/munin-node/munin-node.SlackBuild b/system/munin-node/munin-node.SlackBuild index b0ba1a44c6..e22ed5cd90 100644 --- a/system/munin-node/munin-node.SlackBuild +++ b/system/munin-node/munin-node.SlackBuild @@ -9,6 +9,10 @@ # glitch@glitchwrks.com # All rights reserved. +# 20220212 bkw: Modified by SlackBuilds.org, BUILD=2: +# - add a documentation directory (/usr/doc/$PRGNAM-$VERSION). +# - add the SlackBuild to the doc dir. + # 20220212 bkw: Modified by SlackBuilds.org: # - fix download URL. # - add missing dependencies to REQUIRES. @@ -20,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=munin-node VERSION=${VERSION:-2.0.25} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} ARCH="noarch" @@ -71,6 +75,14 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mv $PKG/usr/local/share/ $PKG/usr/ rm -rf $PKG/usr/local +# 20220426 bkw: docs, please. +# TODO: maintainer, you should figure out to build the HTML docs using +# the RST source in the doc/ dir, and include those in the package. +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a COPYING ChangeLog HACKING.pod README UPGRADING* authors $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild + # move config files to .new cd $PKG/etc/munin for file in $(find . -type f); do -- cgit v1.2.3