]> granicus.if.org Git - sysstat/commitdiff
Compress manual pages by default when installed
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 20 Jun 2020 07:40:32 +0000 (09:40 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 20 Jun 2020 07:40:32 +0000 (09:40 +0200)
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 <sysstat@users.noreply.github.com>
Makefile.in
build/compress-manpg
configure
configure.in
iconfig

index c00c84462649cfcffe3598e45a978644be9cacfb..4fdbf2b42218166b69a22529d2e53ce686b1570b 100644 (file)
@@ -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
index aa77171ad157f34ba5f77709c992057f265e0ecd..4b78901dd309922705c6d9ac35a02179f1e818b4 100644 (file)
@@ -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).
 
index d66531218fd8d57b5cf378afa44e3b414d8a1d03..681ad1fe2c31adefff13184c015a08edab051c79 100755 (executable)
--- 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
index f6f3ee16262ef2a5b805c91f418f1cbf0c9aeaa9..6e5a8f51eebef77d811d651da836e038cff3e339 100644 (file)
@@ -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 82b49c27854d0b2d8e49485d727dcaefe95fda3e..52b71c949f1aa891ea0038f6244a6da3c3e0432b 100755 (executable)
--- 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