File modernize-build-files.patch of Package vhostmd.8333

From 573e933aff34003998a78002745319ccbc561524 Mon Sep 17 00:00:00 2001
From: Jim Fehlig <jfehlig@suse.com>
Date: Thu, 27 Apr 2017 09:36:28 -0600
Subject: [PATCH 1/2] Modernize build files

Some of the constructs used in the configure script and Makefiles
are a bit outdated, e.g. use of '$(mkinstalldirs)' instead of
'$(MKDIR_P)'. Change these old constructs to their modern counterparts.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
---
 Makefile.am  | 15 +++++++--------
 configure.ac |  2 +-
 2 files changed, 8 insertions(+), 9 deletions(-)

Index: vhostmd-0.4/Makefile.am
===================================================================
--- vhostmd-0.4.orig/Makefile.am
+++ vhostmd-0.4/Makefile.am
@@ -8,11 +8,10 @@ EXTRA_DIST = $(doc_DATA) vhostmd.init vh
 AUTOMAKE_OPTIONS=dist-bzip2
 
 install-data-local:
-	$(mkinstalldirs) $(DESTDIR)/etc/vhostmd
-	$(mkinstalldirs) $(DESTDIR)/etc/init.d
-	$(mkinstalldirs) $(DESTDIR)/usr/sbin
-	-@INSTALL@ -m 0644 $(srcdir)/vhostmd.xml $(DESTDIR)/etc/vhostmd/vhostmd.conf
-	-@INSTALL@ -m 0644 $(srcdir)/vhostmd.dtd $(DESTDIR)/etc/vhostmd
-	-@INSTALL@ -m 0644 $(srcdir)/metric.dtd $(DESTDIR)/etc/vhostmd
-	-@INSTALL@ -m 0755 $(srcdir)/vhostmd.init $(DESTDIR)/etc/init.d/vhostmd
-
+	$(MKDIR_P) $(DESTDIR)/etc/vhostmd
+	$(MKDIR_P) $(DESTDIR)/etc/init.d
+	$(MKDIR_P) $(DESTDIR)/usr/sbin
+	$(INSTALL_DATA) $(srcdir)/vhostmd.xml $(DESTDIR)/etc/vhostmd/vhostmd.conf
+	$(INSTALL_DATA) $(srcdir)/vhostmd.dtd $(DESTDIR)/etc/vhostmd
+	$(INSTALL_DATA) $(srcdir)/metric.dtd $(DESTDIR)/etc/vhostmd
+	$(INSTALL_SCRIPT) $(srcdir)/vhostmd.init $(DESTDIR)/etc/init.d/vhostmd
Index: vhostmd-0.4/configure.ac
===================================================================
--- vhostmd-0.4.orig/configure.ac
+++ vhostmd-0.4/configure.ac
@@ -4,6 +4,7 @@ AC_CONFIG_SRCDIR(vhostmd/vhostmd.c)
 AC_CONFIG_HEADERS([config.h])
 
 AC_GNU_SOURCE
+AM_INIT_AUTOMAKE
 
 AC_PROG_LIBTOOL
 
@@ -21,7 +22,6 @@ AC_SUBST(topdir)
 
 AC_CONFIG_FILES([Makefile])
 
-AM_INIT_AUTOMAKE
 
 # Checks for programs.
 AM_PROG_CC_C_O