From: Sebastien GODARD Date: Sat, 20 Jun 2020 07:40:32 +0000 (+0200) Subject: Compress manual pages by default when installed X-Git-Tag: v12.4.0~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e35d560d48049cf7eb1307a147b724d6ccab5d9;p=sysstat Compress manual pages by default when installed Compress manual pages (using xz, bzip2 or gzip) by default when they are installed. Replace option --enable-compress-manpg with --disable-compress-manpg in configure script. Signed-off-by: Sebastien GODARD --- diff --git a/Makefile.in b/Makefile.in index c00c844..4fdbf2b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -383,7 +383,7 @@ ifeq ($(INSTALL_DOC),y) $(INSTALL_DATA) $(MANGRPARG) man/pidstat.1 $(DESTDIR)$(MAN1_DIR) rm -f $(DESTDIR)$(MAN1_DIR)/cifsiostat.1* $(INSTALL_DATA) $(MANGRPARG) man/cifsiostat.1 $(DESTDIR)$(MAN1_DIR) -ifeq ($(COMPRESS_MANPG),y) +ifeq ($(COMPRESS_MANPG),n) $(ZIP) $(DESTDIR)$(MAN8_DIR)/sa1.8 $(ZIP) $(DESTDIR)$(MAN8_DIR)/sa2.8 $(ZIP) $(DESTDIR)$(MAN8_DIR)/sadc.8 diff --git a/build/compress-manpg b/build/compress-manpg index aa77171..4b78901 100644 --- a/build/compress-manpg +++ b/build/compress-manpg @@ -1,5 +1,6 @@ -Answer y if you want sysstat manual pages to be compressed (using bzip2 or -gzip) when they are installed. -Default answer is n here. +Sysstat manual pages are compressed by default (using xz, bzip2 or gzip program) +when they are installed. +Answer y if you don't want them to be compressed. +Default answer is n here (manual pages will be compressed). diff --git a/configure b/configure index d665312..681ad1f 100755 --- a/configure +++ b/configure @@ -1400,7 +1400,8 @@ Optional Features: --disable-largefile omit support for large files --disable-nls disable National Language Support --disable-file-attr do not set attributes on files being installed - --enable-compress-manpg compress sysstat manual pages + --disable-compress-manpg + do not compress sysstat manual pages --enable-clean-sa-dir clean system activity directory --enable-install-cron install a crontab to start sar --enable-use-crond use standard cron daemon @@ -4975,22 +4976,22 @@ echo . # Check arguments used # # Optional Features: -# --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) -# --enable-FEATURE[=ARG] include FEATURE [ARG=yes] -# --disable-largefile omit support for large files -# --disable-nls disable National Language Support -# --disable-file-attr don't set attributes on files being installed -# --enable-install-cron tell sysstat to install cron scripts -# --collect-all tell sadc to collect all possible data -# --enable-clean-sa-dir clean system activity directory -# --enable-compress-manpg compress manual pages -# --enable-debuginfo enable debug output (--debuginfo option) -# --disable-documentation do not install documentation (man pages...) -# --disable-sensors do not link against libsensors even if available -# --disable-pcp do not link against PCP libraries even if available -# --disable-stripping do not strip object files -# --enable-copy-only only copy files when installing sysstat -# --enable-use-crond use standard cron daemon +# --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) +# --enable-FEATURE[=ARG] include FEATURE [ARG=yes] +# --disable-largefile omit support for large files +# --disable-nls disable National Language Support +# --disable-file-attr don't set attributes on files being installed +# --enable-install-cron tell sysstat to install cron scripts +# --collect-all tell sadc to collect all possible data +# --enable-clean-sa-dir clean system activity directory +# --disable-compress-manpg do not compress manual pages when installed +# --enable-debuginfo enable debug output (--debuginfo option) +# --disable-documentation do not install documentation (man pages...) +# --disable-sensors do not link against libsensors even if available +# --disable-pcp do not link against PCP libraries even if available +# --disable-stripping do not strip object files +# --enable-copy-only only copy files when installing sysstat +# --enable-use-crond use standard cron daemon # # Some influential environment variables: # rcdir directory where startup scripts are installed @@ -5345,8 +5346,8 @@ $as_echo "$AUX_IMG" >&6; } # Compress manual pages? -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether manual pages should be compressed" >&5 -$as_echo_n "checking whether manual pages should be compressed... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether manual pages should not be compressed" >&5 +$as_echo_n "checking whether manual pages should not be compressed... " >&6; } # Check whether --enable-compress-manpg was given. if test "${enable_compress_manpg+set}" = set; then : enableval=$enable_compress_manpg; AUX_MPG=$enableval diff --git a/configure.in b/configure.in index f6f3ee1..6e5a8f5 100644 --- a/configure.in +++ b/configure.in @@ -193,22 +193,22 @@ echo . # Check arguments used # # Optional Features: -# --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) -# --enable-FEATURE[=ARG] include FEATURE [ARG=yes] -# --disable-largefile omit support for large files -# --disable-nls disable National Language Support -# --disable-file-attr don't set attributes on files being installed -# --enable-install-cron tell sysstat to install cron scripts -# --collect-all tell sadc to collect all possible data -# --enable-clean-sa-dir clean system activity directory -# --enable-compress-manpg compress manual pages -# --enable-debuginfo enable debug output (--debuginfo option) -# --disable-documentation do not install documentation (man pages...) -# --disable-sensors do not link against libsensors even if available -# --disable-pcp do not link against PCP libraries even if available -# --disable-stripping do not strip object files -# --enable-copy-only only copy files when installing sysstat -# --enable-use-crond use standard cron daemon +# --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) +# --enable-FEATURE[=ARG] include FEATURE [ARG=yes] +# --disable-largefile omit support for large files +# --disable-nls disable National Language Support +# --disable-file-attr don't set attributes on files being installed +# --enable-install-cron tell sysstat to install cron scripts +# --collect-all tell sadc to collect all possible data +# --enable-clean-sa-dir clean system activity directory +# --disable-compress-manpg do not compress manual pages when installed +# --enable-debuginfo enable debug output (--debuginfo option) +# --disable-documentation do not install documentation (man pages...) +# --disable-sensors do not link against libsensors even if available +# --disable-pcp do not link against PCP libraries even if available +# --disable-stripping do not strip object files +# --enable-copy-only only copy files when installing sysstat +# --enable-use-crond use standard cron daemon # # Some influential environment variables: # rcdir directory where startup scripts are installed @@ -492,10 +492,10 @@ AC_MSG_RESULT($AUX_IMG) AC_SUBST(IGNORE_FILE_ATTRIBUTES) # Compress manual pages? -AC_MSG_CHECKING(whether manual pages should be compressed) +AC_MSG_CHECKING(whether manual pages should not be compressed) AC_ARG_ENABLE(compress-manpg, - AC_HELP_STRING([--enable-compress-manpg], - [compress sysstat manual pages]), + AC_HELP_STRING([--disable-compress-manpg], + [do not compress sysstat manual pages]), AUX_MPG=$enableval,AUX_MPG=no) if test $AUX_MPG != "yes"; then COMPRESS_MANPG=n diff --git a/iconfig b/iconfig index 82b49c2..52b71c9 100755 --- a/iconfig +++ b/iconfig @@ -191,12 +191,12 @@ then fi # Compress manual pages -COMPRESSMANPG=`${ASK} 'Compress manual pages? (y/n)' "--enable-compress-manpg" "compress-manpg"` +COMPRESSMANPG=`${ASK} 'Do not compress manual pages? (y/n)' "--disable-compress-manpg" "compress-manpg"` if [ "${COMPRESSMANPG}" = "y" ]; then - COMPRESSMANPG="--enable-compress-manpg " + COMPRESSMANPG="--disable-compress-manpg " else COMPRESSMANPG="" - echo "Parameter --enable-compress-manpg is NOT set" + echo "Parameter --disable-compress-manpg is NOT set" fi # Install documentation