Blame SOURCES/autofs-5.1.4-Makefiles.rules-remove-samples-from-SUBDIRS.patch

135b98
autofs-5.1.4 - Makefiles.rules: remove 'samples' from SUBDIRS
135b98
135b98
From: NeilBrown <neilb@suse.com>
135b98
135b98
The rules in Makefile make it quite clear that
135b98
'samples' is not expected to be part of SUBDIRS.
135b98
e.g.
135b98
 - The rule for "clean" handles both $(SUBDIRS) *and* samples.
135b98
 - There are separate "install" and "install_samples" targets.
135b98
135b98
However SUBDIRS does contain 'samples'.  This means that
135b98
a simple "make; make install" will over-write your configuration files.
135b98
135b98
So remove 'samples' from SUBDIRS.  Note that it has been removed in
135b98
the past, but then got added back again.
135b98
135b98
Signed-off-by: NeilBrown <neilb@suse.com>
135b98
Signed-off-by: Ian Kent <raven@themaw.net>
135b98
---
135b98
 CHANGELOG      |    1 +
135b98
 Makefile.rules |    2 +-
135b98
 autofs.spec    |    6 ++++++
135b98
 3 files changed, 8 insertions(+), 1 deletion(-)
135b98
135b98
diff --git a/CHANGELOG b/CHANGELOG
135b98
index 313730b1..1e5ec15b 100644
135b98
--- a/CHANGELOG
135b98
+++ b/CHANGELOG
135b98
@@ -11,6 +11,7 @@ xx/xx/2018 autofs-5.1.5
135b98
 - account for recent libnsl changes.
135b98
 - use_hostname_for_mounts shouldn't prevent selection among replicas.
135b98
 - fix monotonic_elapsed.
135b98
+- Makefiles.rules: remove 'samples' from SUBDIRS.
135b98
 
135b98
 19/12/2017 autofs-5.1.4
135b98
 - fix spec file url.
135b98
diff --git a/Makefile.rules b/Makefile.rules
135b98
index 2bfa043c..4deab3b9 100644
135b98
--- a/Makefile.rules
135b98
+++ b/Makefile.rules
135b98
@@ -3,7 +3,7 @@
135b98
 #
135b98
 
135b98
 # Root directory contents
135b98
-SUBDIRS = lib daemon modules man samples
135b98
+SUBDIRS = lib daemon modules man
135b98
 INCDIRS = include
135b98
 INCFILES = COPYING COPYRIGHT NEWS README* TODO Makefile Makefile.rules \
135b98
 	   Makefile.conf.in .version .autofs-* configure.in aclocal.m4 \
135b98
diff --git a/autofs.spec b/autofs.spec
135b98
index 6da0655d..57d8db46 100644
135b98
--- a/autofs.spec
135b98
+++ b/autofs.spec
135b98
@@ -121,6 +121,12 @@ install -m 755 redhat/autofs.init $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs
135b98
 install -m 644 redhat/autofs.conf $RPM_BUILD_ROOT/etc/autofs.conf
135b98
 install -m 644 redhat/autofs.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/autofs
135b98
 
135b98
+install -m 644 samples/auto.master $RPM_BUILD_ROOT/etc/auto.master
135b98
+install -m 644 samples/auto.misc $RPM_BUILD_ROOT/etc/auto.misc
135b98
+install -m 644 samples/auto.net $RPM_BUILD_ROOT/etc/auto.net
135b98
+install -m 644 samples/auto.smb $RPM_BUILD_ROOT/etc/auto.smb
135b98
+install -m 600 samples/autofs_ldap_auth.conf $RPM_BUILD_ROOT/etc/autofs_ldap_auth.conf
135b98
+
135b98
 %clean
135b98
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
135b98