aboutsummaryrefslogtreecommitdiff
path: root/system/munin-node
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-26 00:14:23 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-29 10:30:54 -0400
commite6265d4d22e7d0873a83b41e1f7402705e7edf07 (patch)
treef1dab1096d9fd1fc56f779c509078d197f643aa1 /system/munin-node
parent492e55862b8a4e92b7aceb7fba9aee622de18216 (diff)
system/munin-node: Add doc directory.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system/munin-node')
-rw-r--r--system/munin-node/munin-node.SlackBuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/system/munin-node/munin-node.SlackBuild b/system/munin-node/munin-node.SlackBuild
index b0ba1a44c6bea..e22ed5cd90ceb 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