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

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