mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-24 15:18:53 +01:00
Correct install of section 5 manpages
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
987e54cd54
commit
c410459e27
@ -1150,26 +1150,31 @@ if [ -n "$MANDIR" ]; then
|
|||||||
|
|
||||||
cd manpages
|
cd manpages
|
||||||
|
|
||||||
[ -n "$INSTALLD" ] || make_parent_directory ${DESTDIR}${MANDIR}/man5 0755
|
if [ $PRODUCT = shorewall ]; then
|
||||||
|
[ -n "$INSTALLD" ] || make_parent_directory ${DESTDIR}${MANDIR}/man5 0755
|
||||||
|
|
||||||
for f in *.5; do
|
for f in *.5; do
|
||||||
gzip -9c $f > $f.gz
|
gzip -9c $f > $f.gz
|
||||||
run_install $INSTALLD -m 0644 $f.gz ${DESTDIR}${MANDIR}/man5/$f.gz
|
run_install $INSTALLD -m 0644 $f.gz ${DESTDIR}${MANDIR}/man5/$f.gz
|
||||||
echo "Man page $f.gz installed to ${DESTDIR}${MANDIR}/man5/$f.gz"
|
echo "Man page $f.gz installed to ${DESTDIR}${MANDIR}/man5/$f.gz"
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
[ -n "$INSTALLD" ] || make_parent_directory ${DESTDIR}${MANDIR}/man8 0755
|
|
||||||
|
|
||||||
for f in *.8; do
|
|
||||||
gzip -9c $f > $f.gz
|
|
||||||
run_install $INSTALLD -m 0644 $f.gz ${DESTDIR}${MANDIR}/man8/$f.gz
|
|
||||||
echo "Man page $f.gz installed to ${DESTDIR}${MANDIR}/man8/$f.gz"
|
|
||||||
done
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
if [ $PRODUCT = shorewall6 ]; then
|
if [ $PRODUCT = shorewall6 ]; then
|
||||||
for f in ${DESTDIR}${MANDIR}/man5/shorewall-*; do
|
make_parent_directory ${DESTDIR}${MANDIR}/man5 0755
|
||||||
|
|
||||||
|
for f in \
|
||||||
|
shorewall-accounting.5.gz shorewall-ipsets.5.gz shorewall-providers.5.gz shorewall-tcclasses.5.gz \
|
||||||
|
shorewall-actions.5.gz shorewall-maclist.5.gz shorewall-tcdevices.5.gz \
|
||||||
|
shorewall-mangle.5.gz shorewall-proxyndp.5.gz shorewall-tcfilters.5.gz \
|
||||||
|
shorewall-blacklist.5.gz shorewall-masq.5.gz shorewall-routes.5.gz shorewall-tcinterfaces.5.gz \
|
||||||
|
shorewall-blrules.5.gz shorewall-modules.5.gz shorewall-routestopped.5.gz shorewall-tcpri.5.gz \
|
||||||
|
shorewall-conntrack.5.gz shorewall-nat.5.gz shorewall-rtrules.5.gz shorewall-tcrules.5.gz \
|
||||||
|
shorewall-nesting.5.gz shorewall-rules.5.gz shorewall-tos.5.gz \
|
||||||
|
shorewall-exclusion.5.gz shorewall-netmap.5.gz shorewall-secmarks.5.gz shorewall-tunnels.5.gz \
|
||||||
|
shorewall-hosts.5.gz shorewall-params.5.gz shorewall-snat.5.gz shorewall-vardir.5.gz \
|
||||||
|
shorewall-interfaces.5.gz shorewall-policy.5.gz shorewall-stoppedrules.5.gz shorewall-zones.5.gz
|
||||||
|
do
|
||||||
base=$(basename $f);
|
base=$(basename $f);
|
||||||
|
|
||||||
case $base in
|
case $base in
|
||||||
@ -1182,9 +1187,19 @@ if [ $PRODUCT = shorewall6 ]; then
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
ln -sf ${MANDIR}/man5/shorewall.conf ${DESTDIR}${MANDIR}/man5/shorewall6.conf
|
ln -sf ${MANDIR}/man5/shorewall.conf.5.gz ${DESTDIR}${MANDIR}/man5/shorewall6.conf.5.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ -n "$INSTALLD" ] || make_parent_directory ${DESTDIR}${MANDIR}/man8 0755
|
||||||
|
|
||||||
|
for f in *.8; do
|
||||||
|
gzip -9c $f > $f.gz
|
||||||
|
run_install $INSTALLD -m 0644 $f.gz ${DESTDIR}${MANDIR}/man8/$f.gz
|
||||||
|
echo "Man page $f.gz installed to ${DESTDIR}${MANDIR}/man8/$f.gz"
|
||||||
|
done
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
echo "Man Pages Installed"
|
echo "Man Pages Installed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user