components/smartmontools/patches/normalize-man-pages.patch
changeset 7917 39eb760cd391
equal deleted inserted replaced
7916:3bd9c0f784c7 7917:39eb760cd391
       
     1 Solaris man pages are now normalized, so no need to do anything special.
       
     2 
       
     3 These changes should be sent upstream.
       
     4 
       
     5 --- smartmontools-6.5/Makefile.am.orig	2017-01-12 07:39:27.376645290 +0000
       
     6 +++ smartmontools-6.5/Makefile.am	2017-01-12 07:43:54.526791076 +0000
       
     7 @@ -249,47 +249,6 @@
       
     8  
       
     9  endif
       
    10  
       
    11 -if OS_SOLARIS
       
    12 -# This block is required because Solaris uses manual page section 1m
       
    13 -# for administrative command (linux/freebsd use section 8) and Solaris
       
    14 -# uses manual page section 4 for file formats (linux/freebsd use
       
    15 -# section 5).  Automake can deal cleanly with man page sections 1-8
       
    16 -# and n, but NOT with sections of the form 1m.
       
    17 -extra_MANS =      smartd.conf.4 \
       
    18 -                  smartctl.1m   \
       
    19 -                  smartd.1m
       
    20 -if ENABLE_UPDATE_SMART_DRIVEDB
       
    21 -extra_MANS += update-smart-drivedb.1m
       
    22 -endif
       
    23 -
       
    24 -all-local: $(extra_MANS)
       
    25 -install-man: $(extra_MANS)
       
    26 -	@$(NORMAL_INSTALL)
       
    27 -	$(MKDIR_P) '$(DESTDIR)$(mandir)/man4'
       
    28 -	$(MKDIR_P) '$(DESTDIR)$(mandir)/man1m'
       
    29 -	for i in $(extra_MANS); do \
       
    30 -	  if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
       
    31 -	  else file=$$i; fi; \
       
    32 -	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
       
    33 -	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
       
    34 -	  inst=`echo $$inst | sed -e 's/^.*\///'`; \
       
    35 -	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
       
    36 -	  echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(mandir)/man$$ext/$$inst'"; \
       
    37 -	  $(INSTALL_DATA) "$$file" "$(DESTDIR)$(mandir)/man$$ext/$$inst"; \
       
    38 -	done
       
    39 -uninstall-man:
       
    40 -	@$(NORMAL_UNINSTALL)
       
    41 -	for i in $(extra_MANS); do \
       
    42 -	  if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
       
    43 -	  else file=$$i; fi; \
       
    44 -	  ext=`echo $$i | sed -e 's/^.*\\.//'`; \
       
    45 -	  inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
       
    46 -	  inst=`echo $$inst | sed -e 's/^.*\///'`; \
       
    47 -	  inst=`echo $$inst | sed '$(transform)'`.$$ext; \
       
    48 -	  echo " rm -f '$(DESTDIR)$(mandir)/man$$ext/$$inst'"; \
       
    49 -	  rm -f "$(DESTDIR)$(mandir)/man$$ext/$$inst"; \
       
    50 -	done
       
    51 -else
       
    52  # For systems that adopts traditional manner
       
    53  
       
    54  man_MANS =        smartd.conf.5 \
       
    55 @@ -300,8 +259,6 @@
       
    56  man_MANS += update-smart-drivedb.8
       
    57  endif
       
    58  
       
    59 -endif
       
    60 -
       
    61  docsdir=$(docdir)
       
    62  docs_DATA = \
       
    63          AUTHORS \