From 6c8dae45c496325993fba19c5d435fc5d29e10da Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 5 Dec 2016 10:10:27 -0800 Subject: [PATCH] Install the core manpage(s) Signed-off-by: Tom Eastep --- Shorewall-core/install.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Shorewall-core/install.sh b/Shorewall-core/install.sh index 81a1cbd57..e09427944 100755 --- a/Shorewall-core/install.sh +++ b/Shorewall-core/install.sh @@ -392,6 +392,25 @@ if [ $SHAREDIR != /usr/share ]; then eval sed -i \'s\|/usr/share/\|${SHAREDIR}/\|\' ${DESTDIR}${SHAREDIR}/${PRODUCT}/lib.cli fi +# +# Install the Man Pages +# +if [ -n "$MANDIR" ]; then + cd manpages + + [ -n "$INSTALLD" ] || mkdir -p ${DESTDIR}${MANDIR}/man8/ + + for f in *.8; do + gzip -9c $f > $f.gz + install_file $f.gz ${DESTDIR}${MANDIR}/man8/$f.gz 644 + echo "Man page $f.gz installed to ${DESTDIR}${MANDIR}/man8/$f.gz" + done + + cd .. + + echo "Man Pages Installed" +fi + # # Symbolically link 'functions' to lib.base #